• Hi

    I have two different pages which have the same text widget.

    I want to apply different color to that same text widget on different pages via css. Any help how I can do this?

Viewing 1 replies (of 1 total)
  • You can find specific class names on each page for the body element. It is added in most themes using the body_class().

    For example, it adds the page id to each page (page-id-123). You can use these classes in CSS to target specific pages.

    body.page-id-123 .widget_text {
    background-color: #fff;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘different formatting for same text widget in different pages’ is closed to new replies.