-
AuthorPosts
-
April 23, 2018 at 2:43 pm #945419
Hi Guys,
I would like to show the author in the blog entries on the blog landing page…
http://seanburgessfitness.com.gridhosted.co.uk/your-health/I have hidden the ‘0 Comments |’ by using the following in ‘Quick CSS’:
.slide-meta-comments, .slide-meta-del {
display: none!important;
}April 25, 2018 at 3:22 am #946355Hey victoriahepburn,
Thank you for using Enfold.
That is possible but you have to modify one of the parent theme files. Edit the config-templatebuilder > aviashortcodes > postslider.php file and look for this code around line 621.
$markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));
Add this code above it.
$author_name = apply_filters('avf_author_name', get_the_author_meta('display_name', $post->post_author), $post->post_author); $author_email = apply_filters('avf_author_email', get_the_author_meta('email', $post->post_author), $post->post_author); $link = get_author_posts_url($post->post_author); $meta .= "<a href='{$link}' class='post-author-format-type'>$author_name</a>"; $meta .= "<div class='slide-meta-del'>/</div>";
Best regards,
IsmaelApril 25, 2018 at 12:35 pm #946541Thank you
I have added the code, but the information does not appear.
Only the date appears at the moment.
This is a ‘Blog posts’ element
Regards Vicky
April 25, 2018 at 4:01 pm #946660Hi,
Would you like to display the author in blog archive page or a single blog post ?
For blog archive please follow the above instruction it requires modification of the core files.
The recommended method is to use a child theme and add the below code in the child theme function.php file so you don’t lose the modifications when the theme is updated.
Display author box after each post
At the moment there is no easy wat to display author in the archive page but you can try using a third party plugins if any support this feature.
Best regards,
VinayApril 25, 2018 at 4:57 pm #946711Thank you Vinay, I believe it is called a blog archive page (presents a menu of all the blog entries (which are selected in the backend) – and I did add the code in the above file but nothing has changed.
I made notes as I realise when updating the theme I will loose these amendments.April 28, 2018 at 11:55 am #948320Hi,
Please post your FTP details here so we can have a closer look at this issue.
Best regards,
VinayMay 3, 2018 at 5:09 pm #950942Thanks Vinay,
- This reply was modified 6 years, 6 months ago by Vinay. Reason: Moved credentials to private
May 4, 2018 at 9:25 pm #951886Hi,
Thank you for the credentials (please always post it in private content area as this is a public forum any body will be able to view it), you have added the code correctly but I’m sorry to say this modification is not supported by the theme at the moment.
Please try using a third party plugin that supports this feature.
Best regards,
Vinay -
AuthorPosts
- You must be logged in to reply to this topic.