Author names are missing on front page
-
Is it possible to add author names to posts on the front page with CSS? The theme Expound is just what I want for my site but for this one issue.
Site: http://magnificentnose.com
Thanks!The blog I need help with is: (visible only to logged in users)
-
I’m afraid it’s not possible with that particular theme as any sort of normal option.
You could use tags as a work-around although it might get a bit complicated and the author names you show would not be links through to the author’s archive page as you may have seen on some other themes (creating links is impossible with CSS).
The method would be to create a tag for each author and remember to use it for each post – something like “author_my_name” for example.
Then you could include CSS rules like those shown below for each author that contributes to your site, duplicating the code and replacing the tag name and author name for each person.
I have tested it in each of the content sections on your homepage, but not on single or archive pages and not at table or mobile sizes so you if you try to implement it you might need even more rules per author!
Anyway, paste this into your custom CSS area and preview the home page and check out the examples to see if you think it might be useful. I’ve had to use different tags in each section as part of the example but hopefully it demonstrates the idea:
.featured-content .tag-manuscript:after { content:"by John Constantine"; margin-left:50%; padding-left:10px; } .featured-content-secondary .tag-neil-gaiman:after { content:"by Neil Gaiman"; } .site-content .tag-ice-bucket-challenge:after { content:"by Lord L'Zoril"; margin-left:240px; }
- The topic ‘Author names are missing on front page’ is closed to new replies.