Website icon on author page
Hello,
I've noticed that on the athour page there is not an icon for the website url. Just the word "Website".
I thought that was a bit strange because there are icons for twitter and facebook. So here's what i did...
Made a copy of
wp-content/themes/classipress/author.php and placed it in my child-theme. i.e.
wp-content/themes/child-theme/author.php
Opened author.php from the child-theme and replaced the code below around line 41
Code:
<?php if ( !empty($curauth->user_url) ) { ?><li><strong><?php _e( 'Website:', APP_TD ); ?></strong> <a href="<?php echo esc_url($curauth->user_url); ?>"><?php echo strip_tags( $curauth->user_url ); ?></a></li><?php } ?>
With the following code at the same line 41
Code:
<?php if ( !empty($curauth->user_url) ) { ?><li><div class="globeico"></div> <a href="<?php echo esc_url($curauth->user_url); ?>"><?php echo strip_tags( $curauth->user_url ); ?></a></li><?php } ?>
Now it shows a globe icon in front of the website url.
I was wondering why it was done this way?
Hope it helps!
Best,
Dieter
Last edited by dieter; January 3rd, 2014 at 10:36 AM.
Reason: typo's