• Resolved Kir 2012

    (@kir-2012)


    Hi, I’m not displaying social icons in my author box, but it still offers logged in users the chance to ‘Add Social Links’ in their box (which takes them to an error page on my site as back end profile editing is not allowed).

    How can I remove this?

    I can’t see a way with css without removing other stuff I don’t want to remove, and I don’t want to change the plugin files.

    Similar to this post?
    https://www.ads-software.com/support/topic/author-profile-edit-links-showing-up/
    Can you let me know how to remove this?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Kir 2012

    (@kir-2012)

    In template-sab.php at about line 125 I added:&& get_users('role=admin') to give the below code in full, will that do?

    How can I place this file in my child theme so it’s not updated?

    Or can you add something like this into the next update so the links doesn’t appear for everyone – I’m guessing it’s an error anyway since it doesn’t really make much sense to show that option for all logged in users when the option for not displaying social icons in the box has been checked by admin. Thank you ??

       $show_email = ( isset( $sabox_options['sab_email'] ) && '0' == $sabox_options['sab_email'] ? false : true );
            $social_links = Simple_Author_Box_Helper::get_user_social_links( $sabox_author_id, $show_email );
            if ( empty($social_links) && is_user_logged_in() && get_users('role=admin')&& $sabox_author_id == get_current_user_id() ) {
                echo  '<a target="_blank" href="' . admin_url() . 'profile.php?#sabox-social-table">' . esc_html__( 'Add Social Links', 'saboxplugin' ) . '</a>' ;
            }
    Plugin Author Alexandru Tapuleasa

    (@talextech)

    Hi,

    Sorry for the late reply. We recently took over the plugin and we are going over open threads.

    I have added to our ToDo list to make an option to toggle “Add social links”. In the meantime, you can just delete or comment out line 128:
    echo '<a target="_blank" href="' . admin_url() . 'profile.php?#sabox-social-table">' . esc_html__( 'Add Social Links', 'saboxplugin' ) . '</a>' ;

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add social links appearing front end, remove?’ is closed to new replies.