WordPress.org

Ready to get started?Download WordPress

Forums

01-Jan-2005 nightly CSS issue (5 posts)

  1. rvblog
    Member
    Posted 9 years ago #

    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 ??

  2. rvblog
    Member
    Posted 9 years ago #

    Sorry, I forgot to include my site for reference:

    http://www.rvadventure.ca/

    Notice the difference - first page has no layout tags - all other pages do

  3. rvblog
    Member
    Posted 9 years ago #

    Please Ignore this post - I decided rather than screw around - I just deleted the entire css reference in the header file and I will include and fix the image css info in the style sheet itself.

    Thanks anyways

  4. James
    Happiness Engineer
    Posted 9 years ago #

    FYI, the correct way to do this can be found in the Kubrick FAQ: http://binarybonsai.com/kubrick/

  5. rvblog
    Member
    Posted 9 years ago #

    Thanks mac - I'll check it out

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.