No Social Sharing Buttons On Pages

Discussion in 'HTML & Website Design' started by kertoon, Apr 21, 2015.

  1. #1
    I do not want to have the social sharing buttons for all PAGES (Author, About, etc). Just only for the posts.
    This is my code:
    function free_social_sharing_buttons($content) {
    // Show this on post and page only. Add filter is_home() for home page
    if(is_singular()){

     
    kertoon, Apr 21, 2015 IP
  2. Sizdom

    Sizdom Greenhorn

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #2
    use "is_single()" function if you are using WordPress.
    here is the reference link hope it helps.
    https://codex.wordpress.org/Function_Reference/is_single
     
    Sizdom, May 12, 2015 IP