• Resolved apcimino2

    (@apcimino2)


    Hi,

    How can I remove simple social buttons from the loop? The plug-in content appears when I want to display the excerpt and/or the first 20 words of a post.

    How can I filter that out?

    Thanks,
    Anthony

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @apcimino2,

    Add this code in you theme functions.php file. it will remove buttons in excerpt content.

    add_action( 'wp_head', 'ssb_custom_remove_excerpt' );
    
    /**
     * Remove ssb button in excerpt.
     *
     * @return void
     */
    function ssb_custom_remove_excerpt() {
    	global $_ssb_pr;
    	remove_filter( 'the_excerpt', array( $_ssb_pr, 'insert_excerpt_buttons' ) );
    }
    Thread Starter apcimino2

    (@apcimino2)

    Thanks but that didn’t quite work for me.
    The text, “Share Tweet Google Plus reddit Share” still appears at the top of all excerpts and post summaries.

    Any advice?

    Kindly send me your log it will help me to fix the issue.

    you will find this here http://prntscr.com/j4lzbo.

    Thread Starter apcimino2

    (@apcimino2)

    Hi,

    Below is the portion related to Social Buttons. I’m not comfortable posting the rest. If there is anything specific you need from the log please let me know.

    — Simple Social Buttons Configuration —

    Plugin Version: 2.0.14
    Social Networks: fbshare,twitter,googleplus,reddit,linkedin,fblike
    Social Buttons Designs: simple-icons
    Social Buttons Postions: Array
    (
    [inline] => inline
    )

    Sidebar: Array
    (
    [orientation] => left
    [animation] => no-animation
    [share_counts] => 0
    [total_share] => 0
    [icon_space] => 0
    [icon_space_value] =>
    [hide_mobile] => 0
    [posts] => Array
    (
    [post] => post
    [page] => page
    )

    )

    InLine: Array
    (
    [location] => above_below
    [icon_alignment] => centered
    [animation] => no-animation
    [share_counts] => 0
    [total_share] => 0
    [icon_space] => 0
    [icon_space_value] =>
    [hide_mobile] => 0
    [show_on_category] => 0
    [show_on_archive] => 0
    [show_on_tag] => 0
    [posts] => Array
    (
    [post] => post
    )

    )

    Media:
    Popup:
    Flyin:

    Hi,

    Strange I test it multiple time and it works. Could you please send me the screenshot also may I know which theme are you using, I feel that theme has some confliction with Simple Social Buttons ?

    Thread Starter apcimino2

    (@apcimino2)

    I’m using Ark theme.

    How can I send a screenshot?

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘remove from post loop’ is closed to new replies.