Arianna

Removing Website Link on Coupon Code

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

Created: July 4, 2013 at 2:42 pm
  • In: CouponPress
  • Started by: AriannaArianna
  • 2 members left 11 comments
  • Last reply from: AriannaArianna

  • Mark Fail
    Mark Fail
    July 4, 2013 at 2:52 pm

    the coupon code is in the file;

    couponpress/template_

  • Arianna
    Arianna
    July 4, 2013 at 3:40 pm

    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!

  • Arianna
    Arianna
    July 5, 2013 at 8:03 am

    anyone knows how could I solve this? Thanks 🙂

  • Mark Fail
    Mark Fail
    July 5, 2013 at 8:45 am

    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 .= “

    jQuery(document).ready(function(){
    jQuery('#coupon_code_feat_".$post->ID."').zclip({
    path:'".PPT_CHILD_JS."',
    copy:jQuery('#coupon_code_feat_".$post->ID."').text(),
    afterCopy:function(){
    ( '".$GLOBALS['template_url']."".$post->ID."&frame=1', '_blank' );
    }
    });

    }); “;[/code]

  • Arianna
    Arianna
    July 5, 2013 at 11:01 am

    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

  • Arianna
    Arianna
    July 6, 2013 at 6:57 am

    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…

  • Mark Fail
    Mark Fail
    July 6, 2013 at 6:59 am

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

  • Arianna
    Arianna
    July 6, 2013 at 7:12 am

    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:

  • Mark Fail
    Mark Fail
    July 6, 2013 at 7:37 am

    ok try this

    same file

    line: 372

    [code title=””]
    #8217;\’).show();jQuery(\’#hide-‘.$post->#8217;\’).hide();” rel=”nofollow”>
    [/code]

  • Mark Fail
    Mark Fail
    July 6, 2013 at 7:38 am

    bascially just removing;

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

  • Arianna
    Arianna
    July 6, 2013 at 9:58 am

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


Viewing 12 posts - 1 through 12 (of 12 total)