ThemeShaper Forums » Thematic


Gracfull way to insert div's with functions.php

(1 post)
  • Started 13 years ago by gaillen
  • This topic is not resolved
  1. gaillen

    This example works in my child theme functions.php to insert a 2nd wrapper div around the #header div. It just seems chunky (in the functions.php, the html output is good :) and I am hopping someone might have an idea how to simplify this with the same effect.

    // Starts the second wrapper div outside the header
    function start_wrapper_header_2() { ?>
    <div id="wrapper_header_2">
    add_action('thematic_aboveheader', 'start_wrapper_header_2');
    // Ends the second wrapper div outside the header
    function end_wrapper_header_2() { ?>
    add_action('thematic_belowheader', 'end_wrapper_header_2');

    As well as the header I will be adding extra wrapper div's to "thematic_abovecontainer" "thematic_belowcontainer" and "_abovemainasides" "_belowmainasides" and possibly the footer area as well.

    Posted 13 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.