Home › Forums › Support › Is there a way to apply a css rule to single posts only (and not to pages)? This topic has 3 replies, 2 voices, and was last updated 4 years, 6 months ago by Leo. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts September 6, 2019 at 7:32 am #1002531 Sara Does it makes sense to put the css in a <style> tag in a wp_head hook and apply it to all posts? Is that the proper way of doing it? Thanks in advance. September 6, 2019 at 7:50 am #1002653 LeoStaff Customer Support Hi there, You can target CSS to single posts only by adding body.single in front of your normal selector. For example, .main-navigation would target the navigation globally. body.single .main-navigation would target the navigation in single posts only. Let me know if this helps ๐ September 6, 2019 at 7:52 am #1002654 Sara Oh, very cool. Helps a lot! Thanks. September 6, 2019 at 8:22 am #1002677 LeoStaff Customer Support No problem ๐ Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In