ThemeShaper Forums » Thematic

Hot to add a container div to the footer

(2 posts)
  • Started 5 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!

    Thanks

    Posted 5 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">';
    }
    add_action('thematic_abovefooter','footer_wrapper_open',20);
    
    // Close #footer-wrapper first in thematic_belowfooter()
    function footer_wrapper_close() {
    		echo '</div><!-- #footer-wrapper -->';
    }
    add_action('thematic_belowfooter','footer_wrapper_close',1);
    Posted 5 years ago #

RSS feed for this topic

Reply

You must log in to post.