Hide Author Details on Posts
-
I’ve installed the Jasmine theme by Angie Makes onto my clients site – however we need to hide the Author Details on the blog posts.
The plugin that I’ve installed is “Show Hide Author” however it is still showing the ‘By’.
I’ve emailed the plugin creator twice but with no response, and haven’t been able to locate the code to make the second suggested step.
Advanced: Hide the “by” word
If when removed the author name you’re left with a “by” word, remove it by adding the class of the its parent element and/or a regex.
The parent classes
e.g. entry-meta;author-metaFollowed by:
The regular expressions
e.g. by <a(.*?)/a>;<span class=”sep”> by </span>Use multiple values by seperating them with a semicolon (;).
The Default regex value is: by <a(.*?)/a>, which means select the word “by”, followed by a link “a” tag.Hoping that someone could provide some insight, thank you in advance.
-
Can you post a link to the site for us? Do you want to always hide all author names?
Website is feelgoodmumma.com.
And yes we want to hide all the ‘By: Author’ across the site.
I’ve spent days on this forum and on google trying to find a solution, thanks.
Try adding this to your custom css:
.wc-shortcodes-sep, .wc-shortcodes-author { display: none !important; }You are an absolute legend!!! It’s worked. Thank you.
Ha! Just please don’t tell anyone else about me; I try to keep it a secret. 😉 You’re welcome!
The topic ‘Hide Author Details on Posts’ is closed to new replies.