Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #661690
    #661796

    Hi justinfinocchiaro,

    Could you provide us with a link to the site in question so that we can take a closer look please?

    Regards,
    Rikard

    #664254

    Hi Rikard,

    I would like to place the email next to author in excerpt area….you’ll notice on homepage i have products listed on homepage in magazine style.

    Thanks,
    mike

    #664946

    Hi,

    Please go to Enfold/config-templatebuilder/avia-shortcodes/magazine.php file and find

     			$author_output .= $author;

    and change it to

     			$author_output .= $author;
                $author_output .= "<span class='av-magazine-author-email'> ". get_the_author_meta( 'user_email' ) . "</span>";

    If you are using a child theme, please see – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/

    Best regards,
    Yigit

    #665140

    HI Yigit,

    Thanks for the instructions. It works, but it seems that it is only displaying my email instead of author email. I created the homepage which is why i think it is displaying mine…instead of the author who created the individual articles.

    The hyperlinking is a bit difficult as well…i see that php is not involved but the global$. so…i’m a bit at a loss to linking individual author emails to each post. (as you can see from bottom)

    Email the author: <a href="mailto:<?php echo get_the_author_meta( 'user_email' ); ?>"><?php
        the_author_meta( 'display_name' ); ?></a>
    

    Thanks again!

    #665383

    Wanted to update.

    I believe I found the solution to attach the author name of post to excerpt.

    With your help of course..i came up with this solution….

    $author_output .= "<span class='av-magazine-author-email'> ". get_the_author_meta( 'user_email', $entry->post_author ) . "</span>";

    Adding the $entry->post_author was what it needed.

    I will now try to do the mailto link….any help would be APPRECIATED :)

    another question…can this method be applied different category layout outputs like BLOG, grid layout, masonry, etc.

    #665387

    Hey!

    Would you like to mail to author when clicked on author name? If so, please start from scratch and find following in the file

     			$author_output .= $author;

    and change it to

    $author_output .= "<a href='mailto:". get_the_author_meta( 'user_email', $entry->post_author ) ."'>". $author_name ."</a>";

    Cheers!
    Yigit

    #665790

    Would this method be applied with different category layout outputs like BLOG, grid layout, masonry, etc? Would I be able to add/change code about author email to excerpts in the said layouts, and can they be found in Enfold/config-templatebuilder/avia-shortcodes/magazine.php file

    Thanks again for all your help.

    #666739

    Hi,

    Would this method be applied with different category layout outputs like BLOG, grid layout, masonry, etc?

    This modification will only affect the magazine element. You have to add the modification in the blog.php, postslider.php and av-helper-masonry.php file.

    Best regards,
    Ismael

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