• Resolved spiritexpressing

    (@spiritexpressing)


    Hey there!

    I hope someone can help me. I would like the author name to display under the title in my posts, but it doesn’t display anywhere. I’d love to fix this without having to mess with code. A little CSS would be great.

    Thanks so much!

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Hi there,
    I am afraid CSS is only for styling changes and cannot handle these modifications.

    You will need to add

    
    		<?php the_author(); ?>
    

    before

    <time class="entry-date" itemprop="datePublished" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php echo esc_html( get_the_date() ); ?></time>
    in your single.php, content-entry.php and content-entry-widget.php files.

    Try installing the WP Editor plugin to enhance the default editor and then navigate to the /themes/olsen/ folder to find the file.
    If you decide to proceed with this modification I would suggest you create a child theme, copy over the files you are editing and make the modifications there. This will allow your changes to survive future theme updates. If you directly edit the theme’s files, all changes will be lost once you update.

    Have a look at this guide to learn more about child themes and how to create one
    https://www.cssigniter.com/ignite/beginners-guide-child-themes/

    Thread Starter spiritexpressing

    (@spiritexpressing)

    Got it. I am currently using Child Theme Configurator plugin. I assume I can make the changes using that plugin?

    Thanks so much, Mark!

    Robin ??

    Hi there,
    you cannot make code changes via a child theme plugin. You will need to use WordPress default editor (WP 4.9) or Try installing the WP Editor plugin to enhance the default editor and then navigate to the /themes/olsen-light-child/ and copy over there the files you need to change and edit them there.

    Thread Starter spiritexpressing

    (@spiritexpressing)

    Thanks, Mark.

    Sorry for being such a newbie. I understood you up until “and copy over there the files. . .”

    I thought I would use the WP Editor plugin, navigate to the child theme and just make the changes to the code there. What do you mean by copy?

    Thanks again,

    Robin ??

    Hello,
    If you decide to proceed with this modification and since you have a child theme, copy over the files you need to edit (single.php, content-entry.php and content-entry-widget.php) to your child theme folder, and make the modifications there. This will allow your changes to survive future theme updates. If you directly edit the theme’s files, all changes will be lost once you update.

    Let me know if you still have issues with that.

    Thread Starter spiritexpressing

    (@spiritexpressing)

    Mark —

    Thank you so much for all of your help. Okay, I’ve copied the files to the child theme. I installed the WP editor. I’m at Appearance>Theme Editor and I’m in the child theme. I see the files I need to edit. Can I go ahead and edit them here? There’s a warning that says “making changes to active themes is not recommended.”

    Thanks again,

    Robin ??

    Hi there,
    Yes you can edit the files there, but with caution!

    If anything goes wrong, activate your parent theme and revert the changes in the child theme via the Editor.

    Good Luck. Let me know if you get stuck though.

    Thread Starter spiritexpressing

    (@spiritexpressing)

    Hey Mark —

    I made the changes and it worked except that the author name runs into the date. There’s no space between them.

    How do I fix that?

    Thanks again!

    Robin ??

    Hi there,
    try this also

    .entry-date{
        margin-left:10px;
    }

    in your custom CSS box under Appearance > Customize >?Additional CSS

    Thread Starter spiritexpressing

    (@spiritexpressing)

    Woo hoo! We did it! Thank you so much, Mark, for all of your expertise and patience.

    You rock!

    Robin ??

    Glad I could help!
    I’d like to ask you, if you like the theme and could take a minute to review it here it would help us a lot!

    Thread Starter spiritexpressing

    (@spiritexpressing)

    You got it!

    Thank you!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Author name does not display in posts’ is closed to new replies.