{"id":2017,"date":"2017-04-10T02:19:27","date_gmt":"2017-04-10T02:19:27","guid":{"rendered":"http:\/\/docs.contentviewspro.com\/?p=2017"},"modified":"2017-04-10T02:19:27","modified_gmt":"2017-04-10T02:19:27","password":"","slug":"add-new-social-share-buttons-whatsapp-tumblr","status":"publish","type":"docs","link":"https:\/\/contentviewspro.com\/documentation\/article\/add-new-social-share-buttons-whatsapp-tumblr\/","title":{"rendered":"Add new social share buttons (WhatsApp, Tumblr, Parler, Email)"},"content":{"rendered":"<p>Content Views Pro helps you to show social share buttons easily. By default, you show sharing buttons of Facebook, Twitter, Google +, Linkedin, Pinterest.<br \/>\nTo add more social share buttons, please:<\/p>\n<ul>\n<li>enable &#8220;Social Sharing&#8221; in the &#8220;Display Settings&#8221; tab of the View<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2017\/10\/social-sharing.png\" alt=\"Content Views Pro - social sharing\" width=\"348\" height=\"194\" class=\"alignnone size-full wp-image-2334\" srcset=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2017\/10\/social-sharing.png 348w, https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2017\/10\/social-sharing-300x167.png 300w\" sizes=\"auto, (max-width: 348px) 100vw, 348px\" \/>\n<\/li>\n<li>add this code to file <strong>functions.php<\/strong> of your active theme:\n<pre style=\"font-size:13px\">\n\/\/ Content Views Pro - Add new social buttons\nadd_filter( 'pt_cv_social_links', 'cvp_theme_social_links', 100, 3 );\nfunction cvp_theme_social_links( $buttons_html, $url, $title ) {\n\t### whatsapp ###\n\t$social_link\t = sprintf( 'whatsapp:\/\/send?text=%s', $url );\n\t$buttons_html[]\t = sprintf( '&lt;a href=&quot;%s&quot; class=&quot;%s&quot; target=&quot;_blank&quot;&gt;&lt;\/a&gt;', $social_link, esc_attr( 'pt-cv-social-whatsapp' ) );\n\n\t### tumblr ###\n\t$social_link\t = sprintf( 'http:\/\/www.tumblr.com\/share\/link?url=%s', $url );\n\t$buttons_html[]\t = sprintf( '&lt;a href=&quot;%s&quot; class=&quot;%s&quot; target=&quot;_blank&quot;&gt;&lt;\/a&gt;', $social_link, esc_attr( 'pt-cv-social-tumblr' ) );\n\n\t### parler ###\n\t$social_link\t = sprintf( 'https:\/\/parler.com\/new-post?message=%s&amp;url=%s', 'Check%20this%20out', $url );\n\t$buttons_html[]\t = sprintf( '&lt;a href=&quot;%s&quot; class=&quot;%s&quot; target=&quot;_blank&quot;&gt;&lt;\/a&gt;', $social_link, esc_attr( 'pt-cv-social-parler' ) );\n\n\t### email ###\n\t$email_link\t = sprintf( 'mailto:?subject=%s&body=%s', 'Hello, check this post', str_replace( array( ' ', '+' ), '%20', $title ) . \": $url\" );\n\t$buttons_html[]\t = sprintf( '&lt;a href=&quot;%s&quot; class=&quot;%s&quot; target=&quot;_blank&quot;&gt;&lt;\/a&gt;', $email_link, esc_attr( 'pt-cv-social-email' ) );\n\n\treturn $buttons_html;\n}\n<\/pre>\n<\/li>\n<li>add this code to <strong>Custom CSS<\/strong> field in Content Views >> Settings page:\n<pre style=\"font-size:13px\">\n.pt-cv-social-whatsapp {\n    background: url(data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAZlBMVEVWuGFXumFXuWNWuWJXumP\/\/\/\/t+O5fvmv6\/vva8N2EzY11xn\/P7NPM6s+\/5cS6479rw3ZbvGfE58mz4Lma1qGr3bGQ0piJz5L0+vXw+fHj9OXV7tjH6Muj2qp7yYSp3K+f16aV1J0\/49wtAAAABHRSTlP7+IB8OxNwCAAAANtJREFUOMvNk90SgiAQhak4C6SigD9ZavX+L5nUMNMg2kxXcrUDH+zZsws7HfjGYkcWn8cE4z\/W\/oDzvdTNeRV4Ei5K9aA6CRiLYfJBZlGIBDDINoSdzJdAjfZLCx4xYMhyXlJ4uryICOiQ8Qrh4hy2EeBoVge48PK1jAB787uoAlDkETB4YJK5WQMcfUpR2USNCCkikd5MCQnUCZGm1x\/5jnATiTK5kyG98EaNCydV8WVkwuoK91HZt45Mp5o1ArIg9EpRut257nzuRs8DY\/Y91X98TsaOmwQ7vQBKsRaFijPuWgAAAABJRU5ErkJggg==) no-repeat !important;\n}\n\n.pt-cv-social-tumblr {\n    background: url(data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAATlBMVEU5WXb\/\/\/9adY7u8fPq7fC8x9FYc4v5+vva3+XJ0tpzip9HZYD4+frw8\/Xe4+jS2eDN1d24w86frrySo7OPobKClql2jKBVcIlOa4U\/XnoLzaiKAAAAXklEQVQ4y+XKNxKAMAxEUclBTuTM\/S+KXVBKVIwL\/2pn9kGTLT7IYEAj\/hFFkHYnA3yzvwE68tkrRRcwqQx0GZVBJwHCXAQ4OXC7IrxB4AqIJR6Q\/gCQVjtO8wbN9QDT4gH\/kQUgiwAAAABJRU5ErkJggg==) no-repeat !important;\n}\n\n.pt-cv-social-email {\n    background: url(data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAllBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAD\/\/\/8oKCjExMTc3NzY2Nj8\/PyYmJg8PDwrKyv4+PjV1dWmpqaFhYVqampiYmJXV1dFRUUvLy8FBQXx8fHt7e3b29vFxcWpqamSkpKJiYl2dnZnZ2cdHR0LCwv09PTi4uLg4ODHx8fDw8O4uLizs7Orq6uLi4t7e3tubm5NTU0lJSUn0fMjAAAABnRSTlP6+\/iAfXyEjkPGAAAAs0lEQVQ4y93Sxw6CQBSF4VF0DsLQe6\/2\/v4vp8YQGSCwMjH+2\/NtbnLJYk5HmgmE2\/sRQif6KxCIvQIOaBd0KjQOyI6ro5XuOgYHJFhq9Nkj1YLcATArqdljLUUfYE937z0REwwBxNUJz1JfwjCAQs9AThVgGFiqodqlZ\/j5IGCvS5ltM6xvJeuD0CvQxK5e2AVbX0GrTNvwwLwfwHWsTQ7UyqpTFvzcR30VzCZ2IpDRffkA0EEfRcjCR6IAAAAASUVORK5CYII=) no-repeat !important;\n}\n\n.pt-cv-social-parler {\n    background: url(data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAflBMVEW\/Hi3\/\/\/++GirAHy7FMj\/BJTPruLvnq67RW2Tz1NXkn6TAIjHmqKzLSVT89PTjnKLeiZHz1tjpsLTlo6jilpzcgIfWbXbDKzjCJjT02Nvwy87vx8nsv8Hei5LTZG3QWmPPVF\/ELjv67+\/56uv34uT24uPy09TdiZHTZm\/HO0c6oKDXAAAAtElEQVQ4y+XRWRaDIAwF0CQ4UEWt86y1c\/e\/waLl+EO6Au8vjxc4gYMRi2PUgriAq9LT5tmrqWECTY+7WDnMiEjOs9SmsUNUTAftHB9jSUwCxAbo02IClvCd+ysVkfDRC637VYw\/FUGAg2sVZHjzAy3RDRnT4HqYCFMWPbAAJvAiIE1EA14vxATOBLIsy\/yOmITABvTwVRws8CdQtGna5dJ8gRlRm23ygdEc8MKqsF5u7eLAvh4nCLfcRZZNAAAAAElFTkSuQmCC) no-repeat !important;\n}\n<\/pre>\n<\/li>\n<\/ul>\n<p><strong>Notice:<\/strong><br \/>\nIf you are using another plugin to add social buttons to your site, you might integrate that plugin to grid\/list View using the code here (<a href=\"https:\/\/contentviewspro.com\/documentation\/article\/add-custom-text-html-end-post\/\">see document<\/a>).<br \/>\nThe code for <code>\/\/ Put the text, HTML or PHP code here<\/code> is <strong>the PHP function (or shortcode) to shows social buttons for a post<\/strong> of the social plugin (you might contact their support to know that function).<\/p>\n<p>Best regards,<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Content Views Pro helps you to show social share buttons easily. By default, you show sharing buttons of Facebook, Twitter, Google +, Linkedin, Pinterest. To add more social share buttons, please: enable &#8220;Social Sharing&#8221; in the &#8220;Display Settings&#8221; tab of the View add this code to file functions.php of your active theme: \/\/ Content Views &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/contentviewspro.com\/documentation\/article\/add-new-social-share-buttons-whatsapp-tumblr\/\"> <span class=\"screen-reader-text\">Add new social share buttons (WhatsApp, Tumblr, Parler, Email)<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"doc_category":[9],"doc_tag":[21,27],"class_list":["post-2017","docs","type-docs","status-publish","hentry","doc_category-how-to","doc_tag-custom-code","doc_tag-social-buttons"],"year_month":"2026-09","word_count":632,"total_views":"3","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"CVP","author_nicename":"cvp","author_url":"https:\/\/contentviewspro.com\/documentation\/author\/cvp\/"},"doc_category_info":[{"term_name":"How To","term_url":"https:\/\/contentviewspro.com\/documentation\/cats\/how-to\/"}],"doc_tag_info":[{"term_name":"custom PHP code","term_url":"https:\/\/contentviewspro.com\/documentation\/tags\/custom-code\/"},{"term_name":"social buttons","term_url":"https:\/\/contentviewspro.com\/documentation\/tags\/social-buttons\/"}],"_links":{"self":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/2017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/comments?post=2017"}],"version-history":[{"count":0,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/2017\/revisions"}],"wp:attachment":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/media?parent=2017"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_category?post=2017"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=2017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}