• Resolved jayjerome

    (@jayjerome)


    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 {
    float:left;
    margin:0 0 10px 0;
    width:580px
    }

    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • “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,
    -drmike

    Thread Starter jayjerome

    (@jayjerome)

    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?

    Thread Starter jayjerome

    (@jayjerome)

    I tried the above– seems to be working ok…
    (one small step for the CSS apprentice ?? )

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Unable to alter single-page style’ is closed to new replies.