Viewing 2 replies - 1 through 2 (of 2 total)
  • If you only have one author, then you can add the following to your functions.php:

    add_filter( 'tc_author_meta', 'my_author_meta');
    function my_author_meta() {
    	return sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>' ,
    		esc_url( 'https://example.com' ),
    		esc_attr( sprintf( __( 'Follow %s on Google+' , 'customizr' ), get_the_author() ) ),
    		get_the_author()
    	);
    }

    Change https://example.com and “Follow … on Google+” to the correct link / phrase. Leave the %s as it is, because it is substituted with the user’s name.

    If you have more than one user, then you would need to add some programming logic along the lines of joe's link = something.com, jane's link = something else.com; if joe, then $google_link = joe's link; elseif jane, then $google_link = jane's link; esc_url( $google_link ) (this is psuedo code / I’m paraphrasing — don’t add to functions.php).

    Thread Starter whatwewa

    (@whatwewa)

    Thank you sir, it is the information what exactly I wanted. I worked for me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Google plus profile link from byline’ is closed to new replies.