Tagged: 

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1284604

    I want to add the author name in addition to the category and date to my blog posts. I have tried going into the enfold blog section and checking Author but it is still not appearing. Any ideas?

    #1285229

    Hi cobaltsapphire,

    You can add it by modifying code in wp-content > themes > enfold > config-templatebuilder > avia-shortcodes > postslider > postslider.php (find this code, line 890 in Enfold 4.7.6.4):

    $meta .= "<time class='slide-meta-time updated' $markup>" . get_the_time( get_option( 'date_format' ), $the_id ) . '</time>';

    below it add this code:

    $meta .= '<div class="slide-meta-del">/</div>';
    $meta .= '<div class="slide-meta-author">' . get_the_author_posts_link() . '</div>';

    Hope it helps.

    Best regards,
    Nikko

    #1287239

    Hi Nikko,

    When I go to “Appearance” > “Customize” it is giving me a “Fatal Error” message. I believe I need to go there to edit php correct?

    If you have any knowledge on this it would be much appreciated.

    Thank you,

    #1287287

    Hi cobaltsapphire,

    I see you’re still using Enfold 4.7.5, please update it to the latest version (4.8.1) to fix it, don’t forget to backup your site first before updating.
    Also, you’ll need to go to Appearance > Theme Editor in order to modify existing theme files or you can do it via FTP.

    Best regards,
    Nikko

    #1290219

    Hi Nikko, I was able to do all that however when I go to the blog, the author is “cs” which is the administrator but not the author of the post (author is supposed to be Randa Hoffman) who wrote it using her login.
    Thank you for your help so far!

    #1290254

    Hi cobaltsapphire,

    You’re welcome :)
    You can easily change the Author, you may need to click on the Screen Options on the upper right portion of the page first, then check Author.
    It should show an option to replace the Author of the post.
    You can check on this article: https://www.wpbeginner.com/beginners-guide/how-to-change-the-author-of-a-post-in-wordpress/
    Hope this helps.

    Best regards,
    Nikko

    #1290447

    Thank you so much!!

    #1290473

    Hi cobaltsapphire,

    We’re glad that we could help :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

    #1290475

    Hi cobaltsapphire,

    We’re glad that we could help :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

    #1422935

    Are the changes here not going to get overwritten when you update the theme? The instructions are to modify a core theme file?

    #1423074

    Hi integritive,

    You can use a child theme and make sure to add this code on it’s functions.php file (source: https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb )

    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths)
    {
      $template_url = get_stylesheet_directory();
          array_unshift($paths, $template_url.'/shortcodes/');
    
      return $paths;
    }

    Then copy postslider folder from wp-content > themes > enfold > config-templatebuilder > avia-shortcodes folder to wp-content > themes > enfold-child > shortcodes and then do the changes on the code I mentioned.

    Best regards,
    Nikko

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