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()){
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