September 6, 2013 at 2:30 pm #29148
Hello. I added the following line below for using the friendly URL tab name. It seems to work fine. However, whenever I create a link to the tab name URL, the page is not displaying correctly. I’m using the left aligned tabs, but when using the link, the tabs are not appearing on the page. This seem to work fine before adding in the new feature below.
1. I only have the site local for now, but please let me know the correct syntax for creating the tab link. I’m using the post name for my URL’s and not Page ID.
2. Please consider adding this feature into the TAB admin screen. I have to re-load this code every time I update the theme. Thanks!September 6, 2013 at 3:08 pm #139841
The syntax is no spaces or special characters. Just like any other anchor in html.
If you don’t want to lose code in your functions.php file you should either use a child theme or update manually and skip the functions.php file unless the version.txt says it was updated.
DevinSeptember 6, 2013 at 4:10 pm #139842
Hi Devin. That does not appear to work. For example, if I select a tab, I get the following URL, http://www.company.com/practices/#practice-area
If I use that URL in a footer widget link without the # sign, the screen shows page not found. If I include the # sign, the URL works, but the tab structure is gone. Hope this makes sense. Before the friendly URL tab name, using #tab-id seem to work fine. Thanks.September 7, 2013 at 6:40 am #139843
Not sure why it’s not working in your case. The hash value should not link to other pages at all (it makes no difference if it’s #practice-area or #tab-id). Try to deactivate all plugins (maybe it’s a plugin conflict) and if this doesn’t help try to contact you hoster – maybe you need to change the server or htaccess configuration somehow. In addition your url structure seems to be wrong. http://www.company.com/practices/#practice-area will not work because the / at the end tells the server it’s a (sub)page. The correct url would look like: http://www.company.com/practices#practice-areaSeptember 7, 2013 at 5:11 pm #139844
The topic ‘Friendly URL Tab Link’ is closed to new replies.