• sailpilot

    (@sailpilot)


    I am having a problem hiding the buttons on the excerpts page.

    When I insert the shortcode [ssba_hide] into a page it works. But when I add the following to the index.php that displays the excerpts

    <?php echo do_shortcode(‘[ssba_hide]’); ?>

    nothing happens and the buttons still appear. I also noticed that the text before the buttons also appears again at the beginning of the excerpt content.

    any thought on how to make this work? otherwise the plugin is great but we can’t use it if we can not hide the buttons in the excerpt and get rid of the text that is repeated within the excerpt content.

    https://www.ads-software.com/plugins/simple-share-buttons-adder/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter sailpilot

    (@sailpilot)

    An update on this issue.

    It appears that if you select that posts should display the buttons they are also displayed on the excerpt page.

    If you hide the buttons on a post they also disappear on the excerpt for that post.

    but if you try to add the php echo shortcode with the hide option it does not work.

    Some help with this would be greatly appreciated.

    Thread Starter sailpilot

    (@sailpilot)

    finally solved this issue today.

    I did not realize that you have to un-check the Home checkbox under Locations on the settings page to make sure the buttons do not appear on the main blog page (post excerpts)

    On our site the Home page is not the main blog page.

    If you leave the Home button checked the plugin inserts the buttons but also inserts the Share Text into the actual content of each post excerpt (it does not do this on the full post page).

    This I believe is a bug in the plugin.

    Just a comment: This is a great plugin but some level of support would be great. I could probably have solved this 3 days ago with a little help.

    Hi,
    You can use below code.
    Regads…

    Ex: .page-id-$YOUR_PAGES_ID

    /* ---------[ Hide Share buttons on Homepage ]--------- */
    .page-id-6 #ssba {
        display: none;
    }

    Yeah this is buggy and badly supported. Sad as it seems like a great plugin.

    The other issue is using widgets that show recent posts. I have show on Posts only selected and, using Justin Tadlock’s Query plugin, I end up with the share buttons in the sidebar.

    The fact that the share markup uses an ID reveals that this is NOT intended behaviour as now I have multiple #ssba elements on the page.

    fevzi.korkutata css is only a bandaid unless you really don’t care about valid markup.

    There must be a better way to prevent it displaying before the_excerpt(). It’s a great plugin, but I can’t have it displaying twice on my post page, before both the excerpt and content.

    Anyone else have any ideas on how to solve this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘hide buttons in excerpts’ is closed to new replies.