Removing Website Link on Coupon Code

WordPress Business Themes Forums Version 7 Themes CouponPress Removing Website Link on Coupon Code

Discontinued - The forum content is out of date. For theme support please use our support desk here.

Removing Website Link on Coupon Code

July 4, 2013
Arianna Arianna
  • Arianna
    Arianna
    Newbie 8 points

    Hello,
    I’m using the latest version of CouponPress and using the “click to reveal” feature.
    I would like to disable the automatic website redirection, when the user click on the coupon code, so that when the user click on it, the system will just reveal the code, instead of opening a new window with the website.
    Where do I find the code to edit?

    Thank you very much indeed

    July 4, 2013 at 2:42 pm
  • Mark Fail
    Mark Fail
    Super Guru 12,814 points

    the coupon code is in the file;

    couponpress/template_couponpress/system_customdesign.php

    July 4, 2013 at 2:52 pm
  • Arianna
    Arianna
    Newbie 8 points

    Found it,
    Can you please tell me which part of the code should I change?
    I tried editing it but I am getting errors, as I am not very good with php.

    Thank you for your fast reply!

    July 4, 2013 at 3:40 pm
  • Arianna
    Arianna
    Newbie 8 points

    anyone knows how could I solve this? Thanks :)

    July 5, 2013 at 8:03 am
  • Mark Fail
    Mark Fail
    Super Guru 12,814 points

    the code option is JS, it would require to remove the JS and simply display the code.

    remove the code starting at line: 343 -354

    [code title=”php”]
    $STRING .= “ “;[/code]

    July 5, 2013 at 8:45 am
  • Arianna
    Arianna
    Newbie 8 points

    Hi, I did that but it is still redirecting to the website.

    I tried both, using /* */ at the beginning and at the end of the code and deleting it.
    Also cleaned the cache of the browser but the link is still appearing.

    what could the problem be?
    Thanks

    July 5, 2013 at 11:01 am
  • Arianna
    Arianna
    Newbie 8 points

    Maybe that’s because I am modifying a child theme, but I only see that file in the main theme and not in the child theme…

    July 6, 2013 at 6:57 am
  • Mark Fail
    Mark Fail
    Super Guru 12,814 points

    i couldnt say without seeing your setup, try disabling your child theme or switching to the normal one and seeing if this works instead.

    July 6, 2013 at 6:59 am
  • Arianna
    Arianna
    Newbie 8 points

    Did that, but still not working. I also noticed that switching to another theme, keeps showing several modifies I have done to css and design.
    I wonder if I have edited the wrong files.
    our test website is here: http://dceweb.net/uday

    July 6, 2013 at 7:12 am
  • Mark Fail
    Mark Fail
    Super Guru 12,814 points

    bascially just removing;

    href=”‘.$link.'” target=”_blank”

    July 6, 2013 at 7:38 am
  • Arianna
    Arianna
    Newbie 8 points

    That’s working perfectly, thank you very much indeed!
    :)

    July 6, 2013 at 9:58 am
Viewing 12 posts - 1 through 12 (of 12 total)

Didn't find what you were after?

Chat with us now

or contact our support team