• Hi forum,

    I have a new site that is going to contain about 70 pages in total. I need to apply quite a bit of customization to about half of the pages, but what is the easiest way to do this to so many pages? It is the same CSS for all of the pages.

    I know you can style a single page by using the page ID body tag, but is there some way I can easily add the same body to all of the pages so I do not have manually add all of the page IDs to my CSS file? A plugin perhaps?

    Hope my question makes sense. 🙂

    Kind regards,

    Brian

Viewing 2 replies - 1 through 2 (of 2 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    What is the differences between the pages that you want to style and the pages that you don’t? If it’s arbitrary then it sounds like you’ll have to use the page IDs. Maybe you’re using a different template for them? In that case you can use the template class (in the body element).

    Thread Starter Brian B

    (@duetit)

    Hi Andrew,

    I haven’t written the code yet, but the changes are not major. I’m guessing it will be roughly 50-100 lines of CSS, primarily dealing with some padding, margin and text styling to make more room for images.

    It is not a major issue to use the page IDs but it would make it a lot easier for us in the long run. Especially since there a strong possibility that future pages will be added by people who are not that familiar with coding.

    Kind regards!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Target several pages (but not all) with CSS?’ is closed to new replies.