Tagged: Tab element, url change
-
AuthorPosts
-
June 17, 2014 at 10:15 am #279913June 17, 2014 at 5:31 pm #280113
Hi frankyfranky!
Please go to Enfold/config-templatebuilder/avia-shortcodes folder and open tabs.php file and find
$tab_atts['custom_id'] = 'tab-id-'.avia_sc_tab::$tab_id++;
and change it to
$tab_atts['custom_id'] = 'sectionName'.avia_sc_tab::$tab_id++;
Regards,
YigitJune 18, 2014 at 4:44 am #280349For record,
The better way:
$tab_atts[‘custom_id’] = $icon.$tab_atts[‘title’];Result:
http://www.demo.com/product/#tabName
(this tabName is user inputed in tabs element)June 18, 2014 at 9:21 am #280426Hi!
Glad you found a solution :)
Cheers!
PeterJuly 16, 2014 at 10:00 pm #292241I’ve been unable to get either of these to work, is there any update?
July 16, 2014 at 10:11 pm #292244Hey!
It does work fine on my local installation. Have you tried the way i posted here – https://kriesi.at/support/topic/the-bookmark-link-of-tab-element/#post-280113 ?
Cheers!
YigitJuly 17, 2014 at 5:43 am #292364Yes, that is the one I have been trying. I am getting /#sectionName1 in the URL instead of the tab name.
July 17, 2014 at 2:16 pm #292469Hi!
Can you post the link to your website and point out where you have the element so we can have a look?
Regards,
YigitJuly 19, 2014 at 5:57 pm #293412I’ll have to arrange a time when you are online to see the link as I have it set to the default now.
July 23, 2014 at 6:10 pm #295059When are you online so I can add the code and you can check the site?
July 24, 2014 at 6:24 pm #295572Hey!
I am online now and i will be online again for sure in 20 hours. But there is always an available moderator on the form
Best regards,
YigitAugust 2, 2014 at 7:33 pm #299176This reply has been marked as private.August 3, 2014 at 2:28 pm #299330Hi!
I have tried re-applying the solution i posted earlier and it does work fine for me. If you do not mind posting FTP credentials here privately, we can check the file
Cheers!
YigitAugust 3, 2014 at 2:44 pm #299334This reply has been marked as private.August 3, 2014 at 2:58 pm #299337August 3, 2014 at 3:02 pm #299340I was mistaken about what the result should be. What I was hoping for is that the result would reflect actual Tab or section name. Is that possible?
August 3, 2014 at 3:03 pm #299342August 3, 2014 at 3:10 pm #299345Each tab created has a Tab Title, I was hoping to have the URL reflect each Tab Title name. If for example I have a tab named FAQ the URL would trail with /FAQ
August 3, 2014 at 3:19 pm #299347Hi!
You can go toEnfold/config-templatebuilder/avia-shortcodes folder and open tabs.php file and find
$tab_atts['custom_id'] = 'tab-id-'.avia_sc_tab::$tab_id++;
and change it to
$tab_atts['custom_id'] = urlencode($tab_atts['title']);
should work fine, but not guaranteed.
Regards,
Yigit- This reply was modified 10 years, 3 months ago by Yigit.
August 3, 2014 at 3:46 pm #299361I tried that one before but it seems to add the page title along with HTML code. Check the link again to see what I mean
August 3, 2014 at 3:58 pm #299365This reply has been marked as private.August 3, 2014 at 7:18 pm #299388August 3, 2014 at 7:37 pm #299396That did it thanks.
One last question how can I save this edit when you update the theme. I am running a child theme so could I add this file with the directory structure to the child theme?August 4, 2014 at 12:10 am #299463Hi!
Yes it should work fine. Please make sure that path is the same enfold-child/config-templatebuilder/avia-shortcodes/tabs.php
Regards,
YigitAugust 4, 2014 at 1:02 am #299467Thanks again
-
AuthorPosts
- The topic ‘The bookmark link of Tab element’ is closed to new replies.