ThemeShaper Forums » Thematic

[closed]

Where is the div wrapper locted?

(5 posts)
  • Started 3 years ago by howdave
  • Latest reply from helgatheviking
  • This topic is not resolved
  1. howdave
    Member

    I want to wrap everything in a div smaller then wrapper. Where is the div wrapper? I cant find it anywhere in the theme. Where ever it is I am assuming I will simply be able to add a new div underneath it.

    Thanks

    Posted 3 years ago #
  2. Ok, first of all make sure you are using Firebug. Just had to get that out of the way.

    With that tool you will be able to see that the wrapper spans everything between the body tags (all content).

    Currently with a default Thematic setup, there are no styles applied to the #wrapper, you will not find it in the CSS. You won't need to wrap the wrapper because it is completely available to use to set a smaller width, although you will still have to modify the widths of the internal divs, so it sounds like you would be doing more work for no reason. Maybe some clarity would help if this doesn't answer your question.

    Posted 3 years ago #
  3. howdave
    Member

    Hi ScottNix,

    Thanks, I am using firebug, the reason I can not use the wrapper div for what I want is because I am using it my style to set the background.

    Is this not the usual way to set a background?

    Setting the background with the wrapper div changed the colour of my header, body and footer div (and a few others I have added) so I had to go into those div and change their background colours one by one. Just seemed like an ineffective way of doing it, if they were all wrapper in a div then I would only need to change one background colour setting.

    Posted 3 years ago #
  4. This will add a div inside the wrapper, I think there is even a shorter way, but this works.

    // add another wrapper, opening
    function snix_quick_div_top() { ?>
        <div id="#gangster-wrapper">
    <?php }
    add_action('thematic_aboveheader','snix_quick_div_top');
    
    // add another wrappers, closing
    function snix_quick_div_bottom() { ?>
        </div><!-- #gangster-wrapper -->
    <?php }
    add_action('thematic_belowfooter','snix_quick_div_bottom');

    Also if it is possible, you can use the .body tag for backgrounds, but I will assume you know that. ;P

    Posted 3 years ago #
  5. Setting the background with the wrapper div changed the colour of my header, body and footer div (and a few others I have added) so I had to go into those div and change their background colours one by one.

    well header, footer and main, etc. don't have a background color. they are transparent, so you'll be able to see through them to the color you've put on wraper. and b/c wrapper has no width it will cover everything covered by the body tag.

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.