WordPress.org

Forums

Slick Social Share Buttons
[resolved] displaying on specific pages (8 posts)

  1. fcandillo
    Member
    Posted 2 years ago #

    Greetings,
    love the plugin.
    i have things set how I want to display for posts. however, i don't want to display it on ALL pages. It would be great if there was an option to exclud pages (like the categories) optin. I want to know if you can give me some guidance on displaying this on certain pages or child pages of a parent. ideally, i would like to add a statement to the theme template.
    thanks.

    http://wordpress.org/extend/plugins/slick-social-share-buttons/

  2. fcandillo
    Member
    Posted 2 years ago #

    or how i can exclude it from specific pages...

  3. remix4
    Member
    Plugin Author

    Posted 2 years ago #

    This option is not currently available in the plugin. You would need to hide it using CSS or create a custom function to handle it.

  4. fcandillo
    Member
    Posted 2 years ago #

    thanks for the reply. i ended up customizing the function where i can call a page and have it not show.

  5. mipham
    Member
    Posted 2 years ago #

    Hi fcandillo,

    Could you please share how you've customised the function to show it only on certain pages?

    Thanks.

  6. ccolotti
    Member
    Posted 2 years ago #

    Yes I would like to hide it from a particular template page actually for WP-Spire so if you can share how you hid it from a specific page template that would be awesome.

  7. fcandillo
    Member
    Posted 2 years ago #

    in the inc/dcwp_social.php look for:
    if(is_page()){
    and change to:
    if(is_page() && !is_page( array( 'your-page-01', 'your-page-02'') ) ){

    make sure you keep a backup of this. because, you will need to add again it when you update the plugin.

    hope that helps.

  8. ccolotti
    Member
    Posted 2 years ago #

    That does help but it would seem easier for the plugin developers to include a "Hide Social Share Plugin from this Page" option in the editor :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.