Need to link directly to a Tab
-
Hi, I need to add links to a specific tab. Can you teach me how to do it? I tried a lot and can’t figure it out.
The page I need help with: [log in to see the link]
-
Hi @jeredemartino,
It seems you are missing something please try the below steps again with the tab plugin I have tested it on my local WordPress and it’s working…
1. install Insert Script In Headers And Footers plugin.
2. you can find it in settings>Insert Script In Headers And Footers and paste the following script in the “Scripts in Footer” textarea.<script type=”text/javascript”> jQuery(function () { jQuery(‘.tabcall’).on(‘click’, function(event) { event.preventDefault(); var tabid = jQuery(this).attr(‘tab-id’); jQuery(‘[data-toggle=”tab”][href=”#’ +tabid + ‘”]’).trigger(‘click’); }) }); </script>
3. now copy and paste the following code in the tab description
<a tab-id="tabs_desc_9_2" class="tabcall" data-toggle="tab">link</a>
you have to just change the tabs_desc_9_2 last digit of id according to your tabs sequence eg. tabs_desc_9_3 and run the It.
test it and please let me know.Thank you
Hi! Thanks for the response. I tried it but it doesn’t work. I don’t know if this can be helpful, but my tabs shortcode has id 105.
How should I link to a tab? Can I create a link element with the [website url]+[#tabID]?
@lokeshkalosiya While I know you have the best of intentions, it’s forum policy that you not ask users for admin or server access. Users on the forums aren’t your customers, they’re your open source collaborators, and requesting that kind of access can put you and them at high risk.
If they are paying customers (such as people who bought a premium service/product from you) then by all means, direct them to your official customer support system. But in all other cases, you need to help them here on the forums.
Thankfully are other ways to get information you need:
- Ask the user to install the Health Check plugin and get the data that way.
- Ask for a link to the http://pastebin.com/ or https://gist.github.com log of the user’s web server error log.
- Ask the user to create and post a link to their
phpinfo();
output. - Walk the user through enabling WP_DEBUG and how to log that output to a file and how to share that file.
- Walk the user through basic troubleshooting steps such and disabling all other plugins, clear their cache and cookies and try again (the Health Check plugin can do this without impacting any site vistors).
- Ask the user for the step-by-step directions on how they can reproduce the problem.
You get the idea.
We know volunteer support is not easy, and this guideline can feel needlessly restrictive. It’s actually there to protect you as much as end users. Should their site be hacked or have any issues after you accessed it, you could be held legally liable for damages. In addition, it’s difficult for end users to know the difference between helpful developers and people with malicious intentions. Because of that, we rely on plugin developers and long-standing volunteers (like you) to help us and uphold this particular guideline.
When you help users here and in public, you also help the next person with the same problem. They’ll be able to read the debugging and solution and educate themselves. That’s how we get the next generation of developers.
I have the same issue. The above code does not work. The “link” cannot be clicked on. How can we link to a specific tab from elsewhere on the page?
- The topic ‘Need to link directly to a Tab’ is closed to new replies.