I am looking to add some extra coding to the theme, which would result in an event occuring after a user clicks a tab. This is to help maps load within the tabs with one of the plugins that I am using. Do you know which file I can edit to place the event code after the change in tab?
Thank you for helping me find the javascript file. I looked through the coding and found the "tabbed" section, but when i enter the coding, it causes the theme to break. I am attempting to use maps from the plugin "Map List Pro" within the tabs. This should also work to allow the maps from salient theme to work within tabs as well. According to the comments that I left on the plugin page on themeforest the author said,
"Hello,
If a Google Map starts off hidden the API doesn’t know how many map tiles to load and you get what you’re currently seeing.
This makes the first map redraw, but by changing the 0 you can make any of the maps redraw.
Most tab scripts have an event that you can use to trigger this redraw – normally there is a tab index as well that can be put in place of the 0. You’d need to speak to the author of the tab script for more details on this though."
Im not sure what ive done wrong to break the theme, but maybe you can help
I am looking to add some extra coding to the theme, which would result in an event occuring after a user clicks a tab. This is to help maps load within the tabs with one of the plugins that I am using. Do you know which file I can edit to place the event code after the change in tab?
Hey Brian!
All the relevant code can be found in "salient/js/init.js" .
All the Best,
-T
ThemeNectar Support Team
Hi Tahir,
Thank you for helping me find the javascript file. I looked through the coding and found the "tabbed" section, but when i enter the coding, it causes the theme to break. I am attempting to use maps from the plugin "Map List Pro" within the tabs. This should also work to allow the maps from salient theme to work within tabs as well. According to the comments that I left on the plugin page on themeforest the author said,
"Hello,
If a Google Map starts off hidden the API doesn’t know how many map tiles to load and you get what you’re currently seeing.
There is a way to get the map to redraw:
This makes the first map redraw, but by changing the 0 you can make any of the maps redraw.
Most tab scripts have an event that you can use to trigger this redraw – normally there is a tab index as well that can be put in place of the 0. You’d need to speak to the author of the tab script for more details on this though."
Im not sure what ive done wrong to break the theme, but maybe you can help
Hey Brian!
Here's the tabbed section you'll be modding:
this is what it should be:Cheers