[resolved] Unable to alter single-page style (5 posts)

  1. Jayjerome
    Posted 8 years ago #

    I’m trying to tweak the Newspaper 1.0 Theme.

    I removed the <?php get_sidebar()”?> call from 'single.php' and now I want to center the single-page post … but I can’t figure out how to do it.

    The CSS style sheet doesn’t seem to show code to independently change content on the single page layout. Although 'single.php' tells me that <div id="content"> when I make changes in the style sheet to:

    #content {
    margin:0 0 10px 0;

    it changes the width and margins, etc, for both the home page and single page.

    I obviously have to add something so I can change only the single page. Can anybody spin me in the right direction?

  2. drmike
    Posted 8 years ago #

    "Content" is usually also used within the index.php file as well as the other php files.

    You may want to try changing "post" if it's defined within your CSS or even create another wrap around that sits within "content" in your single.php file and only there.

    Hope this helps,

  3. Jayjerome
    Posted 8 years ago #

    Drmike: I’m new at this, so bear with me…

    I’m not quite sure what you mean by ‘create another wrap.’

    Do you mean I should create a new ID selector in ‘single.php’ (and call it something like <div id=”content_single”> and then in my ‘style.css’ do something like this:

    #contents_single {
    margin-left: 200px;

    Or am I way off track here?

  4. Jayjerome
    Posted 8 years ago #

    I tried the above-- seems to be working ok...
    (one small step for the CSS apprentice :) )

  5. veliapola
    Posted 8 years ago #

    I was happy to find this thread, I'm a newbie too and have been trying to center content on a page without a sidebar. It works for me with a few issues. I lose my content area background color and also the right hand side of the content is cut off as if the sidebar is still there (but it isn't). Any suggestions? I use Fallseason theme.

Topic Closed

This topic has been closed to new replies.

About this Topic