link in shortdescrition to additional_information
-
Hi,
im trying to make a link in short description to open or navigate to the additional information tab. doing it with the code below opens only if the tab is active. Someone here have an idea how to fix this? i know its possible to show it in the short description but that’s not how i want my products displayed.
a href=”#tab-additional_information”>> Alle productspecificaties
thx!
Attachments:
You must be
logged in to view attached files.
Hi,
Please, send us a link to the page where you placed that link so we can check how it works.
Regards
Hi Artem,
thx for your quick response. here is the link. i placed it for now in the short description. the idea is to inform customers there is more additional information for a product.
https://education.royaljongbloed.com/shop/peuters-en-kleuters/bas/de-slab-van-bas/
Try to add the following code snippet to the Custom JS area in Theme Settings and replace the link code with this <a href="#" class="openTabBtn">> Alle productspecificaties</a>
jQuery('.openTabBtn').on('click', function( e ){
e.preventDefault();
jQuery('.additional_information_tab > a').click();
});
Holy **** your awesome!. Simply the best support i have ever seen!
thx!
almost perfection!. is it possible to make the sitegow to the bottom of the page with this code?
Try to replace with the following code
jQuery('.openTabBtn').on('click', function( e ){
e.preventDefault();
jQuery('.additional_information_tab > a').click();
jQuery([document.documentElement, document.body]).animate({
scrollTop: jQuery(".additional_information_tab").offset().top
}, 500);
});
The topic ‘link in shortdescrition to additional_information’ is closed to new replies.