greenpeace / planet4

Built on top of Wordpress tech, Greenpeace Planet 4 powers digital platforms to engage with millions and win campaigns around the world.
https://planet4.greenpeace.org
Creative Commons Attribution Share Alike 4.0 International
67 stars 27 forks source link

PLANET-5321 Same class (page-template) is used on both body and post content wrapper #172

Closed planet-4 closed 2 years ago

planet-4 commented 3 years ago

In our post type templates we put the .page-template class on the div element that is wrapping the post. For some reason the same class can also be on the body element. I couldn't find what is adding the class yet (WordPress, us, sitemap plugin, ... ). An example is the sitemap.

This already caused an issue (maybe more previously) were a rule was matching unintended things, so maybe we should change the name of either the body or the post content wrapper class.

Tasks

Reporter: pvincent
Sections: Styling/Theme

Potentially affected repositories: planet4-master-theme