July 11, 201115 yr Hi! Can anyone help me out here, please! I want to style WP posts differently for each post author. I have found this function: the_author(); which I can add to the post class... BUT.... I can not seem to target this class within the CSS if the name is split, eg: Huw Rowlands (Gap in the middle) Can anyone help me solve this please?! Thanks in advance Huw
July 11, 201115 yr You can have a author name and a display name. Maybe have them different, with one having the space, and the other not having the space. Then you can use the one without the space to target.
July 11, 201115 yr WP must have a URL variable for authors, eg for mysite.com/authors/fred-bloggs - you could use the "fred-bloggs" variable?
Create an account or sign in to comment