• Resolved sandro57

    (@sandro57)


    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

    (@fclaussen)

    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.

    This question is very often asked in support. I give you the code to solve it.

    @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="https://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

    (@sandro57)

    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

    Everything is here for Facebook: https://www.facebook.com/about/privacy

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Embedded Content’ is closed to new replies.