Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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;
    }

    #946355

    Hey 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,
    Ismael

    #946541

    Thank 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

    #946660

    Hi,

    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,
    Vinay

    #946711

    Thank 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.

    #948320

    Hi,

    Please post your FTP details here so we can have a closer look at this issue.

    Best regards,
    Vinay

    #950942

    Thanks Vinay,

    • This reply was modified 6 years, 6 months ago by Vinay. Reason: Moved credentials to private
    #951886

    Hi,

    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

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