-
AuthorPosts
-
July 11, 2014 at 3:52 pm #290143
Hi support,
I’m using enfold for one of my projects. Great Theme! I want to implement a within navigation sidebar as it is on the bootstrap page (e.g.: http://getbootstrap.com/css/) on the left side.
To do so I need to add a given id to the headlines which are rendered through the avia framework. Is there a hook to pass on some data to the rendering script? I localized the html output for headlines (file: config-templatebuilder/avia-shortcodes/heading.php) lines 228 to 233. To be honest I don’t feel comfortable to do any changes to the original source code.
I also need information about the headline (headline, type (h1, h2 etc.), id for the link) outside the loop to render the side menu.
I do have the following questions:
– Is there a hook to add another parameter to the headlines?
– If there isn’t: is the heading.php the right spot to do my modification?
– To render the menu I need the information about the headline structure. Is there a hook to get the information outside the loop?
– I’m using enfold as a parent theme. Is there a way to do the changes to the child-theme structure not to the enfold theme? Placing a heading.php in the same destination in my child-theme didn’t have any impact.
Thanks
OleJuly 12, 2014 at 5:43 pm #290557Hey olenass!
The theme doesn’t have a function like that right now so it would need to be fully custom coded or maybe made possible with a plugin.
The scrollspy script is already included in the theme (though a bit modified) so you should be able to hook into it pretty easily. You wouldn’t need to modify any headers since you can use color sections to define your own ID’s for sections (which is exactly what the theme does using scrollspy to track menu locations when using single page layouts).
The main point would be writing the needed js function to watch your own widget with the html needed.
Regards,
Devin -
AuthorPosts
- You must be logged in to reply to this topic.