WordPress.org

Ready to get started?Download WordPress

Forums

Simple Share Buttons Adder
Share buttons and long post navigation (2 posts)

  1. donmcleman
    Member
    Posted 1 month ago #

    Hi, this has been a great plugin but I've run into a problem. I thought the plugin places the share buttons after the post. However, more precisely they are placed as the last item within the <article> tags, which isn't normally a problem.

    However I've just started splitting my long posts over several pages and the plugin WP-Pagenavi also wants to add it's navigation of 'Part 1, 2, etc' as the last item within the <article> tags.

    Clearly, they can't both be the last item. At the moment the sharing buttons appear before the post navigation. You can see what I mean here: http://crosswebideas.com/how-to-recent-comments-widget-private-blog.html

    If you picture it, the post navigation and the article belong together whereas the social sharing buttons should appear after (such as at the top of comments.php). Could you tell me if there is somewhere in the code that I could tweak to re-position the sharing buttons?

    https://wordpress.org/plugins/simple-share-buttons-adder/

  2. donmcleman
    Member
    Posted 1 month ago #

    Update: I've found a solution, but it's probably not the best way?

    I've added the shortcode to the start of comments.php so that the buttons appear after the navigation. In the css stylesheet for the child theme I've set display:none for the ssba div within <article>.

    So the web page looks right but does it mean that two requests are made to display the buttons and then one request is cancelled, so creating more work than necessary to display the page?

Reply

You must log in to post.

About this Plugin

About this Topic