how 2 css-adress one certain page

(2 posts) (2 voices)

  1. HeliR
    Member

    I want to change background on one particular page of my site.
    I couldnt find an page-specific unique ID-Tag in the BODY-CLASS

    I am used from Woothemes that I could adress every single page, e.g.

    <body class="page page-id-113 page-parent page-template-default gecko">

    so then I could adress a certain page with

    .page-id-113 {background-color:yellow;} or so

    please add this for the next update of the framework, its a quick fix that takes 1min for you, Eliot

    And - please dont forget a "custom.css" that is linked into the soucetext as very last, after the plugins, so that I dont have to override everything with !important

    Posted 8 months ago #
  2. Elliott
    Support

    Hello Heli Retzek,

    You can add this yourself by opening up /wp-content/themes/[your_theme]/header.php and add this function to the body, http://codex.wordpress.org/Function_Reference/body_class.

    Or you could also embed CSS on each page like so,

    <style type = 'text/css'> insert your CSS to display on this page </style>

    But yes I'll go ahead and move this to feature requests and we'll take a look at adding it in a future update.

    Posted 8 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme