Home › Forums › Support › Link CSS particular to a template This topic has 3 replies, 2 voices, and was last updated 3 years, 8 months ago by David. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts June 18, 2020 at 1:44 am #1332272 Matthew What would be the best method to have a specific link style just for the attachment.php template file. I could use a class in each link there but is there a more ‘global’ way? Could a hook be suitable thanks, June 18, 2020 at 2:32 am #1332325 DavidStaff Customer Support Hi there, WordPress adds unique classes to the <body> tag for the different templates. The attachment pages is attachment. You can use it like so: body.attachment a { /* Body link styles here */ } August 10, 2020 at 11:57 pm #1396521 Matthew This sounds super. I close this for now as I have urgent other query but may post again. August 11, 2020 at 4:03 am #1396855 DavidStaff Customer Support You’re welcome 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