Tagged: author
-
AuthorPosts
-
March 2, 2021 at 3:17 am #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?
March 4, 2021 at 6:25 am #1285229Hi 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,
NikkoMarch 10, 2021 at 8:38 pm #1287239Hi 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,
March 11, 2021 at 4:07 am #1287287Hi 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,
NikkoMarch 24, 2021 at 7:45 pm #1290219Hi 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!March 25, 2021 at 2:25 am #1290254Hi 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,
NikkoMarch 25, 2021 at 8:00 pm #1290447Thank you so much!!
March 26, 2021 at 5:35 am #1290473Hi cobaltsapphire,
We’re glad that we could help :)
Thanks for using Enfold and have a great day!Best regards,
NikkoMarch 26, 2021 at 5:36 am #1290475Hi cobaltsapphire,
We’re glad that we could help :)
Thanks for using Enfold and have a great day!Best regards,
NikkoOctober 18, 2023 at 9:23 pm #1422935Are the changes here not going to get overwritten when you update the theme? The instructions are to modify a core theme file?
October 20, 2023 at 4:06 am #1423074Hi 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 -
AuthorPosts
- You must be logged in to reply to this topic.