Support » Plugin: WP About Author » Problem to create a different social icon

  • Good day,

    I try to create a differnt social profile with a code like this one:

    <?php
    function my_wp_about_author_social($social){
    $social[‘my_service_key’] = array(
    ‘link’=>’http://www.mysocial.com/%%usersocia%%&#8217;,
    ‘title’=>’Social’,
    ‘icon’=>’http://www.mysitepath.com/icon.png&#8217;
    );
    return ‘<div class=”wp-about-author-containter-%%bordertype%%” style=”background-color:%%borderbg%%;”><div class=”wp-about-author-pic”>%%authorpic%%</div><div class=”wp-about-author-text”>%%content%%</div></div>’;
    }
    add_filter(‘wp_about_author_get_socials’, ‘my_wp_about_author_social’);
    ?>

    I put it into the functions.php of theme, but I don’t work. Why?

    https://wordpress.org/plugins/wp-about-author/

Viewing 1 replies (of 1 total)
  • Try this way:

    function my_wp_about_author_social($socials){
    // Here we add some social profiles
    $socials [‘MySocial’] = array(‘title’=>’MySocial’, ‘link’ =>’http://www.mysocial.com/%%username%%&#8217;, ‘icon’=> WPAUTHORURL_URL .’images/mysocial.png’);
    // Here example if you need disable some build-in socials. Delete this line if you dont need it!
    unset ($socials[ ‘mysocial’]);

    return $socials;
    }
    add_filter(‘wp_about_author_get_socials’ , ‘my_wp_about_author_social’ );

Viewing 1 replies (of 1 total)
  • The topic ‘Problem to create a different social icon’ is closed to new replies.