Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17998

    Hi, i found out how to address css to the footer.

    Is there a way to address it specifically to a page? I tried with the internal css

    <style type="text/css">
    </style>

    and i was trying it to style a box in the footer, but it then applied to the whole site.

    So it seems like the internal css doesn’t work… or should it and it’s just the css internal site that can’t be used in the footer?

    any help would be appreciated.

    Regards,

    Lorenzo

    #97862

    Hi,

    You can put all your modifications on custom.css, to target the blog you can inspect the page using Firebug or the Inspect Element option on Chrome. Look for the body class. For targeting the blog page you can do this on your custom.css

    .blog #footer {
    YOUR STYLE HERE
    }

    Sometimes WP uses a unique body class for each page. It looks something like this

    .page-id-75 #footer {
    YOUR STYLE HERE
    }

    Regards,

    Ismael

    #97863

    Thanks a lot Ismael!

    And let’s say i would like to address a specific page, would that be something like

    .page-id-75 #footer {
    YOUR STYLE HERE
    }

    or something like this?

    .page-id-75 {
    YOUR STYLE HERE
    }

    or this?

    #page-id-75 {
    YOUR STYLE HERE
    }

    Sorry for the stupid question and thanks again,

    Regards

    Lorenzo

    #97864

    Hey!

    It would be:

    .page-id-75 {
    YOUR STYLE HERE
    }

    Regards,

    Peter

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Addressing CSS to a specific page – single blog’ is closed to new replies.