Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By visogero

Thread: Coupon title redirect to store page

  1. #1
    Thread Starter
    visogero's Avatar
    Join Date
    Jun 2013
    Location
    Lithuania
    Posts
    29
    Thanks
    6
    Thanked 4 Times in 3 Posts

    Coupon title redirect to store page

    Hey,

    I saw that there is a lot of questions how to redirect coupon title to store page. You can hardcode that in clipper/includes/functions.php file
    Note that It will still create actual coupon page! It just redirects coupon title to store page.

    Function starts at around 1214:
    PHP Code:
    function clpr_coupon_title() {
        global 
    $clpr_options;

        if ( ! 
    in_the_loop() ) {
            return;
        }

        if ( 
    $clpr_options->link_single_page ) {
            
    $title = ( mb_strlenget_the_title() ) >= 87 ) ? mb_substrget_the_title(), 087 ) . '...' get_the_title();
            
    $title_attr sprintfesc_attr__'View the "%s" coupon page'APP_TD ), the_title_attribute'echo=0' ) );
            echo 
    html'a', array( 'href' => get_permalink(), 'title' => $title_attr'rel' => 'bookmark' ), $title );
        } else {
            
    the_title();
        }

    change line 1224, you need to look for 'href' value.
    PHP Code:
    function clpr_coupon_title() {
        global 
    $clpr_options;

        if ( ! 
    in_the_loop() ) {
            return;
        }

        if ( 
    $clpr_options->link_single_page ) {
            
    $title = ( mb_strlenget_the_title() ) >= 87 ) ? mb_substrget_the_title(), 087 ) . '...' get_the_title();
            
    $title_attr sprintfesc_attr__'View the "%s" coupon page'APP_TD ), the_title_attribute'echo=0' ) );
            echo 
    html'a', array( 'href' => clpr_get_first_term_link$post->IDAPP_TAX_STORE ), 'title' => $title_attr'rel' => 'bookmark' ), $title );
        } else {
            
    the_title();
        }

    Later you can just deindex coupon pages with some SEO plugin.

    Cheers!
    Let me know if it works for you
    jomarkosabel likes this.

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    38,412
    Thanks
    161
    Thanked 3,158 Times in 3,030 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. #3
    babajideal's Avatar
    Join Date
    Nov 2015
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to add store name in coupon page's title using Yoast SEO plugin
    By happylife in forum Clipper General Discussion
    Replies: 5
    Last Post: June 8th, 2014, 01:16 AM
  2. Removing single coupon page - or redirect to store-parent page
    By jujukoja in forum Clipper General Discussion
    Replies: 28
    Last Post: November 26th, 2013, 12:33 PM
  3. Using Different Title On Coupons in Store Pages vs Coupon Single Pages
    By bundeld in forum Clipper General Discussion
    Replies: 1
    Last Post: October 7th, 2013, 04:51 PM
  4. Replies: 3
    Last Post: March 1st, 2013, 05:07 PM
  5. is there a way we can redirect this code to the store page
    By jujukoja in forum Clipper General Discussion
    Replies: 0
    Last Post: November 2nd, 2012, 11:29 PM