Changing background of #intro with css on separate pages not working

resolved (3 posts) (2 voices)

  1. jfdion
    Member

    Hi,

    Need Help! I would like to have the intro div a different color for let's say the contact page or the page I decide.

    I tried to tag it with CSS using this syntax:
    .page-id-334 #intro{ background: red;} but it is not working

    What should I do?

    I dont know if this is due to my permalinks settings wich is set on custum category and postname... So i'm not sure if i use the correct syntax to tag the page.

    Thank you

    Posted 7 months ago #
  2. Ruderic
    Support

    Hello,

    Instead of pasting the code in the "Custom CSS" field of the theme options panel, paste it in the content of the page that you are targeting. Make sure to activate the "HTML Markup" view of the content. Also, do not add the specific page ID.

    Just paste this block of CSS code in the content of your page:

    <style>
    #intro{ background: red;}
    </style>
    Posted 7 months ago #
  3. jfdion
    Member

    Worked like a charm!

    Thousand thanks!!

    Posted 7 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