• Hello,

    As the title suggests I am looking for a way to link from a submenu item that would open a tab in a tabbed content section on a page.

    I am using Mega Menu, Lorix Lite theme and Site Origins Tabbed content plugin which are all working well together.

    I am sure that this is more of a general issue that a theme specific matter.

    In the Custom Links section in the appearance menu then there is the option to link to external sites and any other pages but no apparent way to link to a particular tab on a page of tabbed content.

    I think that I would need to have a specific address or way of identifying the specific tab on a page in order to create a link but am not aware as to how this could be achieved.

    Any insight would be most helpful.

    I have already tried to find a solution online but have not come across anything which is why I am leaving this message.

    Many thanks for now

    anthonyod

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    The tabs are changed by using some JavaScript to alter the appropriate CSS properties, swapping what’s visible for what’s not. In order to make a particular tab active, you need to identify what script does this and call it to do its thing. This isn’t too difficult when you already have the page loaded, add a listener to a menu item.

    When the page is yet to be loaded, there needs to be a script that runs as soon as the page loads. This too isn’t too difficult. The issue is how does this script know what tab swapping function should be called? Some sort of information would need to be passed along with the link to tell your script which tab you want opened. This could be done as URL parameters: example.com/demo-page/?tab=3

    Your script runs on load, grabs the “tab” URL parameter, determines what function from the tab plugin to call, then executes. I’ve no idea what or how to call the tab swapping script. Maybe the developers of the plugin can help you with that. I think this is their support forum.

    Thread Starter anthonyod

    (@anthonyod)

    Thanks for getting back to me.

    What you mention explains what I would like to achieve. Now to try achieving it!

    Thanks for the link.
    If I get a solution I shall post it back here as I reckon it would be a useful feature to have.

    Best wishes and thanks again.

    anthonyod

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘link from submenu item to tabbed content on a page’ is closed to new replies.