WordPress.org

Ready to get started?Download WordPress

Forums

Async Social Sharing
Disable or enable on specific pages (2 posts)

  1. bheadrick
    Member
    Posted 1 year ago #

    I want to be able to either set this on a particular post type and then disable the display on specific posts/pages/etc or I'd like to be able to not set any post type and just set it to display on specific posts

    http://wordpress.org/extend/plugins/async-social-sharing/

  2. Ron L
    Member
    Posted 1 year ago #

    I'd like to do this from the user back-end as well. Unfortunately, it seems that almost all social sharing plugins have choices of either "pages" or "posts" and nothing else.

    I suggest using a little css editing to achieve what you want (appearance > editor > stylesheet.css):

    .home .async-wrapper {display:none}
    will hide the sharing container on the home page

    or

    .async-wrapper {display:none}
    .home .async-wrapper {display:block}
    will hide the container on every page, except those that you list.

    Each page you have is assigned a unique class in it's body section. You can find the class name in the body tag. Examples are .home, .blog, .page-id-19.

    Btw, I don't think display:none will stop the sharing buttons from loading though. But, they'll load last, so it won't be too much of a burden on the perceived load time.

    -RON

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic