WordPress.org

Ready to get started?Download WordPress

Forums

Easy Responsive Tabs
[resolved] Active tab selected based on current page (5 posts)

  1. kirtis_njones
    Member
    Posted 7 months ago #

    Hello,

    I'm using ERT as a menu for a website I'm currently building. Each tab being a section with a list of links that opens under the current selected tab. When a link selected, the page is loaded and the first tab is reset back to the first tab.

    The behavior I am trying to achieve is that when a linked is opened from the 3rd tab for example, when the new page is loaded, the 3rd tab will be the one that is selected on the page loaded.

    link: http://nikijones.me/langit/

    (example) If from the homepage, the "Interior Design" tab is selected and the "Beyond Furniture" link is clicked, when the "Beyond Furniture" page loads, the top "Interior Design" tab should still be activated.

    Please let me know if there is any more information needed, and thank you for your time.

    http://wordpress.org/plugins/easy-responsive-tabs/

  2. osCitas Themes
    Member
    Plugin Author

    Posted 7 months ago #

    Hi,

    We got your point, there is one solution for your problem but its bit lengthy

    1. First of all give custom class to your tabs
    2. Now we have to write some js which will select the tab based on the custom class and the page selected.

    you have to include the following js at the end in footer

    jQuery(document).ready(function(){
    
    if (window.href.location == 'http://www.example.com/testlink') {
        jQuery('.customeclass').find('li:eq(2)').tabs('show');
    }
    });

    This is just to give you some idea how you can do that, here you can use javascript regex, or any other logic to get the url string to match and select any tab

    Let u know in case you need any other help.

    Thanks

  3. osCitas Themes
    Member
    Plugin Author

    Posted 6 months ago #

    Hi,

    We think our last response resolved your issue, as we have not received any details from you. So we are marking this ticket as resolved. Please response to here or open new ticket if your issue not resolved.

    Thanks

  4. leanstartupperu
    Member
    Posted 3 months ago #

    Hi,

    First of all thanks for your plugin. I believe I have the same problem, I have a contact form in the 4th tab of my page, when theere is an error on submision (ie. wrong email) page reloads to show error message, but focus is back to first tab so user might think form was sent. Can you please be more specific on how to approach this issue? thanks

  5. osCitas Themes
    Member
    Plugin Author

    Posted 3 months ago #

    Hi,

    This issue is resolved, please check the demo link for more details. Please take update.

    Thanks

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.