Title: Embedded Content
Last modified: May 30, 2018

---

# Embedded Content

 *  Resolved [sandro57](https://wordpress.org/support/users/sandro57/)
 * (@sandro57)
 * [8 years ago](https://wordpress.org/support/topic/embedded-content/)
 * Hi
    it is also possible to block cookies from facebook, twitter etc. eg: act,
   c_user, datr, regards

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Fernando Claussen](https://wordpress.org/support/users/fclaussen/)
 * (@fclaussen)
 * [8 years ago](https://wordpress.org/support/topic/embedded-content/#post-10341908)
 * You can block the snippet of code that create such cookies.
    If not, you should
   register those as third-party and link back to their instructions on how to opt
   out or at least their privacy policy.
 *  [Bonaldi](https://wordpress.org/support/users/bonaldi/)
 * (@bonaldi)
 * [8 years ago](https://wordpress.org/support/topic/embedded-content/#post-10342119)
 * This question is very often asked in support. I give you the code to solve it.
 * [@sandro57](https://wordpress.org/support/users/sandro57/) : Simply wrap the 
   button code in the files of your theme with the has_consent( $consent_id ) or
   is_allowed_cookie( $cookie_name ) hooks.
 * The code:
 *     ```
       <? if( has_consent('social-buttons') ) { ?>
       	<h4 class="social-title"><?php echo _e('SHARE!', 'mytheme'); ?></h4>
       	<div class="social-icons">
       		<ul id="social-share">
       			<li id="facebook-share"><a href="http://www.facebook.com/sharer/sharer.php?s=100&p[url]=<?php echo urlencode(get_permalink()); ?>" target="_blank"><span><?php echo esc_html__( 'Share on&nbsp;', 'advigny' ); ?>Facebook</span></a></li><li id="twitter-share"><a href="https://twitter.com/intent/tweet?text=<?php echo urlencode(get_the_title()); ?>+<?php echo get_permalink(); ?>" target="_blank"><span><?php echo esc_html__( 'Share on&nbsp;', 'advigny' ); ?>Twitter</span></a></li><li id="googleplus-share"><a href="https://plus.google.com/share?url=<?php echo urlencode(get_permalink()); ?>" target="_blank"><span><?php echo esc_html__( 'Share on&nbsp;', 'advigny' ); ?>Google+</span></a></li>
       		</ul>
       	</div>
       <? php } ?>
       ```
   
 * This is for the 3 main social networks. You can customize.
    You have to style
   it in your theme style.css.
 * You must create a Consent in GDPR admin called “Social Buttons” and set it OFF.
   
   If visitor doesn’t consent, the buttons won’t appear, and no cookies will be 
   loaded. Regards.
 *  Thread Starter [sandro57](https://wordpress.org/support/users/sandro57/)
 * (@sandro57)
 * [8 years ago](https://wordpress.org/support/topic/embedded-content/#post-10342446)
 * Hi
    thanks for the useful information I can not find any reliable news if those
   cokies are part of a third party requiring authorization from the user Did you
   have any news? regards Sandro
 *  [Bonaldi](https://wordpress.org/support/users/bonaldi/)
 * (@bonaldi)
 * [8 years ago](https://wordpress.org/support/topic/embedded-content/#post-10342476)
 * Everything is here for Facebook: [https://www.facebook.com/about/privacy](https://www.facebook.com/about/privacy)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Embedded Content’ is closed to new replies.

 * ![](https://ps.w.org/gdpr/assets/icon.svg?rev=1837142)
 * [GDPR](https://wordpress.org/plugins/gdpr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gdpr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gdpr/)
 * [Active Topics](https://wordpress.org/support/plugin/gdpr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gdpr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gdpr/reviews/)

## Tags

 * [twitter](https://wordpress.org/support/topic-tag/twitter/)

 * 4 replies
 * 3 participants
 * Last reply from: [Bonaldi](https://wordpress.org/support/users/bonaldi/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/embedded-content/#post-10342476)
 * Status: resolved