Forums

Change the size of content on different pages (3 posts)

  1. rsbruins
    Member
    Posted 5 months ago #

    Hey guys,

    I searched the forum but didnt find a answer to my question.

    I have a site running with a homepage, and videos, photos and illustrations.

    On the homepage i have a sidebar, on the other pages i dont have one now is my question how can i resize the width of the content. The homepage should stay the way it is and the other ones should be wider.

    I am having a child theme on twentyeleven.

    Cheers,

    Rick

  2. alchymyth
    The Sweeper
    Posted 5 months ago #

    you can use the existing css classes output by 'body_class()' to address individual pages in your stylesheet.

    something like:
    body.page #yourcssid { ... }

    http://codex.wordpress.org/Function_Reference/body_class

  3. rsbruins
    Member
    Posted 5 months ago #

    Thanks for the reply, i am not sure what you mean. When i browse my site and turn on Dev tools in chrome is see as body class:"archive post-type-archive post-type-archive-videos logged-in admin-bar single-author two-column right-sidebar"

    How can i call that in .css?

Reply

You must log in to post.

About this Topic