ThemeShaper Forums » Thematic

Hot to add a container div to the footer

(2 posts)
  • Started 11 years ago by theorib
  • Latest reply from theorib
  • This topic is resolved
  1. Hi, I would like to know what's the best way of adding a wrapping div around the footer.

    I would guess it would be without using the thematic_abovefooter() or the thematic_belowfooter() hooks to do it but writing a function to modify the wp_footer() hook default output...

    Any advice is welcome!


    Posted 11 years ago #
  2. Never mind, I got over it! Actually I wasn't looking for really putting something on the wp_footer() but enclosing a wrapping div aroud the thematic div#footer which isn't even located on wp_footer(). My mistake =)

    I figured the only way is actually using 1thematic_abovefooter()andthe thematic_belowfooter()`

    I did it with two very simple functions:

    // Open #footer-wrapper last in thematic_abovefooter()
    function footer_wrapper_open() {
            echo '<div id="footer-wrapper">';
    // Close #footer-wrapper first in thematic_belowfooter()
    function footer_wrapper_close() {
    		echo '</div><!-- #footer-wrapper -->';
    Posted 11 years ago #

RSS feed for this topic


You must log in to post.