Can someone please help me insert a new div between the "subsidiary" and "siteinfo" divs inside the footer? I need to display additional links across the footer. Thank you for your time!
ThemeShaper Forums » Thematic
A div between "subsidiary" and "siteinfo"
(6 posts)-
Posted 11 years ago #
-
I reckon you could consider putting a division after subsidiary (has priority 10) and before siteinfo (priority 20) through using thematic_footer hook and adding priorities between 11 and 19:
Try something like:
function extra_footer_open(){ echo '<div class="extra_footer">'; } add_action('thematic_footer','extra_footer_open',11); function extra_footer_close(){ echo '</div>'; } add_action('thematic_footer','extra_footer_close',19);
Posted 11 years ago # -
Thanks for answering, sowingseeds!
Pardon my ignorance... how/where do I insert my HTML now? I am getting a syntax error when trying to insert it in my functions file.
Posted 11 years ago # -
there's no need for 2 functions, but put everything on a priority between the 2.... sowingseeds says it is 10 and 20, so 15 should work fine.
function kia_footer_div(){ ?> <div> <a href="#">A link to bacon</a> </div> <?php } add_action('thematic_footer','kia_footer_div',15);
you could also theoretically add a wp_nav_menu there instead of hard-coding. see my menu thread for how to register and add a secondary menu
Posted 11 years ago # -
Thank you so much, helgatheviking!
Hopefully, I will find some easy to follow tutorials some day and learn how to take advantage of filters and functions. But right now I am more comfortable with hard-coading. I know it is sad.
Posted 11 years ago # -
Sorry about the double function!!! Hope the syntax error is sorted.
Posted 11 years ago #
Topic Closed
This topic has been closed to new replies.