WordPress.org

Support

Support » Themes and Templates » Can’t eleminate backgound image

Can’t eleminate backgound image

  • I’m completely customizing my WordPress website but there is a problem with a background image that I can’t get rid of. I can’t find it in the style sheet, I can’t find which div it is associated with. This is the url — http://activecitizensunited.com/ — the entire background should be gray but I can’t remove that white background image thats sitting dead center and is slightly gray on the sidebar. If you click on the sidebar links you see it better on those sub-pages.

    Some of the code is on an inline style sheet while the majority is on the attached “style.php” file.

    Please tell me how to get rid of it. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    @esmi

    Forum Moderator

    Try editing the theme’s header.php file and removing:

    <style type="text/css" media="screen">
    
    <?php
    // Checks to see whether it needs a sidebar or not
    if ( empty($withcomments) && !is_single() ) {
    ?>
    	#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg-<?php bloginfo('text_direction'); ?>.jpg") repeat-y top; border: none; }
    <?php } else { // No sidebar ?>
    	#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
    <?php } ?>
    
    </style>

    It worked, thank you very much esmi. I’m wondering though; will it have any negative effects that you know of.

    esmi

    @esmi

    Forum Moderator

    No negative effects. That code was just loading different background images dependant upon which type of page was being viewed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can’t eleminate backgound image’ is closed to new replies.
Skip to toolbar