Viewing 5 replies - 1 through 5 (of 5 total)
  • You probably don’t need to add classes, but it really depends on what exactly you’re trying to do and what classes are there now.

    To target a specific page, use the body class along with the sidebar class.

    Make sense?

    Also, the child theme path is showing oddly in the head tag. What did you name your child theme folder EXACTLY? Did you use any special characters or something?

    Thread Starter xarmyman

    (@xarmyman)

    i named it Origin – Child

    basically i need the sidebar to be in different color on each page. So usualy i would just add classes to my div and then use them in .css but i dont know how to do that in wordpress.

    remove the spaces from your Origin-child folder.

    And find the body class that is unique to each page and change your color accordingly.

    For example:

    body.singular-page-12 #sidebar-primary {
    background: none repeat scroll 0 0 #333;
    padding-left: 40px;
    }

    controls the color on the “comforts” page only.

    Thread Starter xarmyman

    (@xarmyman)

    Thanks, a lot janet4now 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘adding more classes’ is closed to new replies.