[Resolved] Imprint – Next Previous Buttons Hook

Home Forums Support [Resolved] Imprint – Next Previous Buttons Hook

Home Forums Support Imprint – Next Previous Buttons Hook

  • This topic has 18 replies, 2 voices, and was last updated 4 years ago by David.
Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #1208139
    FunkyCss

    Hi , i would like to create the Next – Previous style on my ecommerce site like it is in Imprint , i find it really cool and modern .

    So i have created the Hook like it is in Imprint

    I have inserted the Css but it will not work .

    When i activated the imprint in a new install it worked 100% , but if i copy the hook and the css and paste it to my other site it will not show anything !

    Should i do something more than just that hook and its css ?

    #1208208
    David
    Staff
    Customer Support

    Hi there,

    can you link me to your Site, so i can take a look ?

    #1208210
    FunkyCss

    Hey David ! Yes i have updated the link and removed coming soon .

    I have created the hook like the imprint

    have add the Css code !

    #1208252
    David
    Staff
    Customer Support

    odd – the hook is working as i can see the prev_next container it displays. But it is empty which means the links function is not working.

    Can you share the exact code you have in your Hook Element ?

    #1208603
    FunkyCss

    Hi David thank you for checking this

    <?php
    echo '<div class="prev_next_buttons">';
    	$previous = next_post_link('%link', '&larr;');
    	$next = previous_post_link('%link', '&rarr;');
     	echo $previous;
    	echo $next;  
    echo '</div>';     
    ?>

    Hooked to all products

    Execute PhP

    Disabled all other plugins and not working still –

    #1208904
    David
    Staff
    Customer Support

    The code looks fine and is working on my test site.
    Maybe a plugin is interfering with the function ?

    #1212843
    FunkyCss

    Hi David ,

    I tested a million times , and i noticed that it will play to all templates except MERCH .

    #1212876
    David
    Staff
    Customer Support

    Merch uses three hooks on the Single Product, the Jump to Description, the social shares and adding the sidebar below the summary. I wonder if either of them are interfering ?

    #1212889
    FunkyCss

    I have removed Jump to Description and social shares .

    I have tested it with installing Merch and the next previous does not work , when i enable any other template it works !

    i will find what actually is the issue , maybe something with css or other hooks ? i will go deeper and i will inform if some one is interested to implement this in Merch template

    #1213117
    David
    Staff
    Customer Support

    More likely to be the Sidebar that is hooked in – did you try removing that ?

    #1213134
    FunkyCss

    Hi , Yes i have removed that too actually , but i have added a CTA before footer to all pages with some text , i will remove it and remove all css to check if this is the issue , cause it does not makes sense , the php you have added it works everywhere except with the merch template , so there is the issue .

    I belive i am near to solve that , and it would awesome i like that next previous as you have implemented ๐Ÿ™‚

    #1213203
    David
    Staff
    Customer Support

    Its very odd – can’t see what differs on Merch – apart from those hook elements. Be good to hear what you find ๐Ÿ™‚

    #1244049
    FunkyCss

    Hi David so i finally Figured out why Next – Previous Buttons are not showing on some templates as they are conflicting with BLOG addon .

    So i used your code `<?php
    echo ‘<div class=”prev_next_buttons”>’;
    $previous1 = next_post_link(‘%link’, ‘←’);
    $next2 = previous_post_link(‘%link’, ‘→’);
    echo $previous;
    echo $next;
    echo ‘</div>’;
    ?>
    `

    And added it to my site with all the stuff you have fixed etc.

    When i activate BLOG addon they will not be displayed , when i have BLOG addon disabled they will work in woocomerce products , any solution to this one ?

    #1244056
    FunkyCss

    This one will happen only when you have onother template like merch with the blog addon opened . i believe there is some comflict with the options there , i will give it a try with all options reseted in blog or with the custom elements for the blog display .

    I will back asap

    #1244384
    FunkyCss

    So i have disabled all css all other elements even plugins and left BLOG Addon – > https://imgur.com/khJ31cp ( Not Working )

    Removing Blog Addon – > https://imgur.com/8DvkVJn ( Working)

    Even if i remove settings from blog will not show up with the blog addon

Viewing 15 posts - 1 through 15 (of 19 total)
  • You must be logged in to reply to this topic.