- This topic has 18 replies, 2 voices, and was last updated 1 year, 5 months ago by David.
March 24, 2020 at 2:41 am #1208139FunkyCss
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 ?March 24, 2020 at 4:17 am #1208208DavidStaffCustomer SupportMarch 24, 2020 at 4:22 am #1208210FunkyCss
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 !March 24, 2020 at 5:22 am #1208252DavidStaffCustomer 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 ?March 24, 2020 at 7:54 am #1208603FunkyCss
Hi David thank you for checking this
<?php echo '<div class="prev_next_buttons">'; $previous = next_post_link('%link', '←'); $next = previous_post_link('%link', '→'); echo $previous; echo $next; echo '</div>'; ?>
Hooked to all products
Disabled all other plugins and not working still –March 24, 2020 at 1:20 pm #1208904DavidStaffCustomer SupportMarch 28, 2020 at 5:11 am #1212843FunkyCss
Hi David ,
I tested a million times , and i noticed that it will play to all templates except MERCH .March 28, 2020 at 5:48 am #1212876DavidStaffCustomer SupportMarch 28, 2020 at 6:00 am #1212889FunkyCss
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 templateMarch 28, 2020 at 7:58 am #1213117DavidStaffCustomer SupportMarch 28, 2020 at 8:24 am #1213134FunkyCss
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 🙂March 28, 2020 at 9:40 am #1213203DavidStaffCustomer SupportApril 18, 2020 at 5:56 am #1244049FunkyCss
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’, ‘→’);
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 ?April 18, 2020 at 5:59 am #1244056FunkyCss
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 asapApril 18, 2020 at 8:40 am #1244384
- You must be logged in to reply to this topic.