Post byline

Hi,
I read with interest this post https://theme.co/apex/forum/t/blog-bylines/46663 as I am trying to show the post byline as “by Name” without showing the dates.

I used the code recommended in this post (near the end, as the middle snippets caused the same problems for me that they caused for other people).

I don’t see the pencil OR the word “by”. Frankly, I’d be happy with either one. Any advice? My theme is Renew if that matters.

Here is an example page:
https://sassypantsdesign.com/tighty-whitey-underwear-adventure-a-true-story/

Thanks!

Hi There,

Thank you for writing in, please add this to Theme Options > CSS

.single-post .p-meta span:first-of-type:before {
	content: "by ";
}

You can find the proper CSS code selector using the Chrome browser Developer Toolbar
For the CSS code itself, I suggest that you get started with this tutorial

Remember to clear all your caching features after adding the code or doing a changes.

Hope it helps,
Cheers!

Thank you so much for your reply. Unfortunately, it doesn’t seem to work.

I tried clearing cache (through WP Rocket) and then clearing browser cache but still not seeing “by”. What am I missing?

Hi There,

I have just checked your posts and the “by” is there now.






Please clear your browser’s cache too, or use incognito/private mode of your browser.

Thanks,

That’s so strange! As I mentioned, I had already cleared browser cache, but I tried it again, and I still don’t see it. I did this on two different browsers.

Then I tried a mobile device. Nope.

Then I tried an incognito window. Nope.

Then I asked someone else to try it on their computer. Nope.

I’m glad at least you can see it but it’s incredibly annoying that I can’t. Do you have any other suggestions?

Hi,

Yeah that is strange, I have tested it again in multiple browsers and couple of PCs, and the “by” is showing consistently.

Is there a chance that you’re looking at the blog index page (https://sassypantsdesign.com/sassypants-design-blog/)? and not on the individual posts (https://sassypantsdesign.com/tighty-whitey-underwear-adventure-a-true-story/)?

Update the given CSS code, if you need the “by” to show on the blog index as well.

.single-post .p-meta span:first-of-type:before,
.blog .p-meta span:first-of-type:before {
	content: "by ";
}

Thanks,

Yes! That was exactly what was happening. Thank you so much. I hadn’t gotten past the blog index, thinking I should be seeing it there, too.

Thank you!!!

You’re most welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.