• I have changed the Kubrick template slightly (colors, etc).

    The Post and Comments use the correct #page background. However, when clicking on a page it uses the the wrong version.

    I believe this is in header.php that it is picking the wrong answer in the IF.

    When I change the is_single in classes.php I mess up the other pages.

    Any ideas. You can see what I mean at:
    https://www.ccomfort.com/blog

    The main page has a red shaded trasnparency on both sides, the comments page has a simlar (though wider) version. I believe that the Page (Wanted Posters) should follow the main page (not the comments page).

    Any and all help is greatly appreciated.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Edit the page.php to be as your index.php.

    Thread Starter hemispheredancer

    (@hemispheredancer)

    That did not do it either. It seems to be in $is_single() and $is_page().

    When I remove the not (!) from the header.php if statement then a PAGE has the correct formatting, but then the main page (index) is wrong. Copying the file index.php or page.php to the other does not seem to change anything.

    You are using those is functions *without* the dollar sign, right? That is is_single() and is_page(). Just checking.

    Thread Starter hemispheredancer

    (@hemispheredancer)

    Yes, my mistake there are no $ (dollar signs) in front of them.

    Could you show a snippet of the code where you think the problem is? Is the post’s individual view (with comments) the only place where that different background is used? If so, then putting something like
    <?php if ( is_single() ) { ?>
    #page {
    background:whateveritwaswiththewiderleftside
    }
    <?php } else { ?>
    #page {
    background:thatotherbackground
    }
    <?php } ?>

    might be enough?

    OK, I am not a wizard with K theme (and no intention to learn it), but here is what I’d do. (Obviously the author of the theme thought that the Page would follow the single pattern….)
    So, take out the whole reference to the page from the if_statement…
    like this:
    <?php /* Checks to see whether it needs a sidebar or not */ if ((! $withcomments) && (! is_single())) { ?>
    and your Pages will look like your index.php

    Thread Starter hemispheredancer

    (@hemispheredancer)

    Removing the is_page() test in the header.php file did it!

    Thanks for the help.

    Now the index and PAGE use the same img and the post with comments uses a different one. Once again thanks for all the help. This is so much better than blogspot.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Page uses wrong background’ is closed to new replies.