Change staff directory email icon into text

Easy Property Listings WordPress Real Estate Plugin Forums Basic Support Change staff directory email icon into text

Viewing 2 posts - 1 through 2 (of 2 total)

These forums are closed to new replies / tickets. Please open a support ticket from our new Support page.

  • Author
    Posts
  • #15102
    modernmarketing
    Spectator

    Hey Merv!

    2.2.2 is looking great! Also, I bought the Staff Directory plugin! It’s very helpful. 🙂

    I’m curious about two things. First, I want to edit the author box that appears at the bottom of listings so I can display the email as text rather than an envelope icon. I’m not displaying any other social icons for the agents, so the single icon kind of sticks out strangely for my use case. Is there a way to go about editing the plugin in such a way that the change won’t be overwritten by an update? WordPress should have child plugins!

    Second issue: I’m not seeing listings on the single directory pages for each agent, which was the main reason I bought the plugin! Right now I have it going to the author page when people click the name in the author box, but that’s not ideal long-term. I want to be able to display listings in card format, like you set up on the Staff Directory single pages.

    Thanks!

    #15114
    Merv Barrett
    Keymaster

    Author Email Replace Icon with linked email

    Here is a function to replace the email icon with an email address.

    function my_epl_author_email_html_callback( $html = '') {
    	global $epl_author;
    	$email = get_the_author_meta( 'email' , $epl_author->author_id);
    
    	$html = '<div class="epl-author-email"><a href="mailto:'.$email.'">' . $email . '</a></div>';
    	return $html;
    }
    add_filter( 'epl_author_email_html' , 'my_epl_author_email_html_callback' , 1 );

    Listings on Staff Directory Page
    Basically each “Agent” must also be a WordPress > User then they must be the author of their listings for the listings to appear on their profile.

    Staff Directory Video Tutorial

These forums are closed to new replies / tickets. Please open a support ticket from our new Support page.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Basic Support’ is closed to new topics and replies.