Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #339613
    effess
    Participant

    Something is preventing the author from showing on posts. Here is the CSS I’ve tried: #main .entry-meta .by-author,
    #main .entry-meta .author, .category-blog .by-author { display:block !important; }  Can you help, please?  https://rebecca-rosenberg.com/blog/dale-winter/

    #339621
    Sakin
    Keymaster

    @effess: The author is showing fine in your blog post. You don’t need that CSS. Check this screenshot https://cldup.com/xX22Zqg8yH.jpg

    #339635
    effess
    Participant

    How to show all on one line, please? And can you give me a code to redirect the author link to an About page (instead of archives or home page)? Thanks for your help.

    #339648
    Sakin
    Keymaster

    @effess:

    For Author
    1. I checked your website and found that you have the following CSS in your child theme style.css. Please look for the following CSS code in your child theme’s style.css file and remove it.

    #main .entry-meta .by-author,
     #main .entry-meta .author, .category-blog .by-author { display:none; }

    Also, remove the following CSS code:

    #main .entry-meta .on-date { display:none; }
    .category-blog .on-date { display:block !important; }  /*Post date only shows on Blog posts*/

    2. After that, you need to remove the following CSS code from Custom CSS, “Appearance => Customize => Additional CSS”

    span.by-author, span.author.vcard { display:none!important; }

    If you do this, then your date and author will both show in the same line. It’s all your extra CSS that is causing the issue.

    For Author Link
    1. If you are editing your URL, then go to “Users => Profile” and then change the “Website” URL where you want it to redirect.
    2. But if you are editing another user’s URL, then go to “Users => All Users”, then click on the user and then change the “Website” URL

    #339777
    effess
    Participant

    Thank you for your patience! This is working. One more thing: How to change the attribute “View all posts by” to “About Rebecca”? There is a child theme. Thanks!

    #339779
    sujapati
    Keymaster

    @effess: To change the author meta text “View all posts by” to “About Rebecca”, you’ll need to filter the part of the theme that generates the text.

    function custom_translate_text($translated_text, $text, $domain)
    {
    if ($translated_text === 'View all posts by %s') {
    $translated_text = 'About %s';
    }
    return $translated_text;
    }
    add_filter('gettext', 'custom_translate_text', 20, 3);
    

    Please add the above code to the functions.php of your child theme.

    Kind Regards,
    Sujapati

    #339801
    effess
    Participant

    THANK YOU!

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.