• Just installed the 01-Jan-2005 nightly update (with the Kubrick theme now included in the install package)

    I would like to remove reference to the Kubrick layout jpgs – so I commented out a section in the header file as follows:

    Original code:

    body { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgcolor.jpg"); } <?php /* Checks to see whether it needs a sidebar or not */ if ((! $withcomments) && (! is_single()) && (! is_page())) { ?>

    #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg.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 } ?>
    #header { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickheader.jpg") no-repeat bottom center; }
    #footer { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickfooter.jpg") no-repeat bottom; border: none;}

    Commented out code:

    body { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgcolor.jpg"); } <?php /* Checks to see whether it needs a sidebar or not */ if ((! $withcomments) && (! is_single()) && (! is_page())) { ?>

    /* deleted this section on 1-1-05

    #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg.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 } ?>
    #header { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickheader.jpg") no-repeat bottom center; }
    #footer { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickfooter.jpg") no-repeat bottom; border: none;}

    */

    After doing this, the layout jpgs were removed from the front page – but they still appeared on all the other pages

    Front Page source:

    body { background: url("http://www.rvadventure.ca/wp-content/themes/kubrick/images/kubrickbgcolor.jpg"); }

    /* deleted this section on 1-1-05

    #page { background: url("http://www.rvadventure.ca/wp-content/themes/kubrick/images/kubrickbg.jpg") repeat-y top; border: none; } #header { background: url("http://www.rvadventure.ca/wp-content/themes/kubrick/images/kubrickheader.jpg") no-repeat bottom center; }
    #footer { background: url("http://www.rvadventure.ca/wp-content/themes/kubrick/images/kubrickfooter.jpg") no-repeat bottom; border: none;}

    */

    All Other Pages code:

    body { background: url("http://www.rvadventure.ca/wp-content/themes/kubrick/images/kubrickbgcolor.jpg"); }

    #page { background: url("http://www.rvadventure.ca/wp-content/themes/kubrick/images/kubrickbgwide.jpg") repeat-y top; border: none; } #header { background: url("http://www.rvadventure.ca/wp-content/themes/kubrick/images/kubrickheader.jpg") no-repeat bottom center; }
    #footer { background: url("http://www.rvadventure.ca/wp-content/themes/kubrick/images/kubrickfooter.jpg") no-repeat bottom; border: none;}

    */

    As you can see, the comment tag that I added (/* deleted this section on 1-1-05) appeared on the front page but did not appear ahead of the “#page id” in all the other pages leaving the layout jpgs intact in all pages but the front page.

    What did I do wrong ??

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘01-Jan-2005 nightly CSS issue’ is closed to new replies.