WordPress.org

Ready to get started?Download WordPress

Forums

showing only sidebar backround (11 posts)

  1. siim
    Member
    Posted 9 years ago #

    Hello!

    i'm using a bit modded kubrick theme and WP 1.5 or up. i made a page and i don't want to see sidebar there. basically it works, but the light-grey background is still there! you can see it here: http://blog.mobi.ee/uudiskiri-juuni-2005
    at the same time i want to preserve sidebar on the blog pages (blog.mobi.ee) - how should i do this?

  2. cramoisi
    Member
    Posted 9 years ago #

    Hello,

    You should edit your http://blog.mobi.ee/wp-content/themes/default/images/kubrickbg.jpg file. The background of the sidebar is a part of the background of the page. If you don't want to edit it, you can use the .widecolumn style instead of the .narrowcolumn.

  3. iddapidda
    Member
    Posted 9 years ago #

    I think you could also just remove the <include sidebar.php> from your Page template?

  4. siim
    Member
    Posted 8 years ago #

    cramoisi: i don't want to edit that file because it also applies to the blog's home page (blog.mobi.ee) and also archive sections. and i'm already using .widecolumn style
    iddapidda: i've already removed it, but the background still remained.
    anything else i should try?

  5. Michael Bishop

    Posted 8 years ago #

    create a background.jpg that doesn't have the sidebar shading. On your page template, add a class="noside" or something of that matter to the widecolumn div. In the class, use the different background.
    That way, you don't change the look of the index or other pages you want the sidebar and it's shaded background.
    *EDITI just realized that widecolumn is a class, so I looked at the theme a little closer. If you look at the header, there's a call for page no sidebar, and a background of bgwide, which doesn't have the shaded column. You might want to look at that closer.

  6. siim
    Member
    Posted 8 years ago #

    miklb: also not working as the widecolumn div is actually not as wide as thepicture that goes for the background (kubrickbgwide.jpg). solution would be to change something in the header file:

    <?php /* Checks to see whether it needs a sidebar or not */ if ((! $withcomments) && (! is_single())) { ?>

    i should add one more condition, probably using || but it doesn't seem to work (i made a variable $sidebar in the page template before including header, gave it value true and in the header file i added condition ! $sidebar but it didn't work - header.php even didn't get the value of that variable. so the problem is still not resolved.

  7. Michael Bishop

    Posted 8 years ago #

    Then just hardwire it into the CSS. Would that not work?
    Just create a new div for your pages template.
    And I thought the background was being called to the page div, not the widecolumn class.
    #page width 760px,
    .widecolumn width 450px;

    The only difference i saw in the two backgrounds is the shaded column.

  8. siim
    Member
    Posted 8 years ago #

    i'm sorry, but what do you mean by hardwiring into the css?
    yes, background is the page div not widecolumn but it's defined in the header file, not in css or page template file.

  9. cramoisi
    Member
    Posted 8 years ago #

    i think the only solution you have (and the best) is to edit the kubrickbg.jpg and remove the grey. After you have do that, you edit you css file and you had a grey background (same color that you removed from the .jpg) in the #sidebar. By this way the grey will ONLY be displayed when your page has a sidebar.

  10. cramoisi
    Member
    Posted 8 years ago #

    ADD and not HAD in "you had a grey" :)

  11. Michael Bishop

    Posted 8 years ago #

    But if you read the header, there's an explanation as to why it's in the header, and tells you you can use style.css if you'd like. Simply comment out the header part that deals with background, and simply add the background into your style sheet.
    Just create a div for your page templates that uses a #pagealt or something of that matter, that has all the same style as page, except uses the wide background image.

Topic Closed

This topic has been closed to new replies.

About this Topic