Home / Archive / MemberPress: GDPR Cookie Compliance – Load GDPR Compliance Stylesheet In Memberpress ReadyLaunch Template
Duplicate Snippet

Embed Snippet on Your Site

MemberPress: GDPR Cookie Compliance – Load GDPR Compliance Stylesheet In Memberpress ReadyLaunch Template

This code snippet loads a specific GDPR Cookie Compliance stylesheet in the MemberPress ReadyLaunch templates. This ensures that the GDPR styles are applied to all MemberPress ReadyLaunch pages.

The code needs to be updated by replacing the dummy https://your-domain.com/path/to/your/gdpr-stylesheet.css path with the actual path to the GDPR stylesheet.

Code Preview
php
<?php
function mepr_load_mp_styles() {
   wp_enqueue_style( 'mepr-moove_gdpr_frontend', 'https://your-domain.com/path/to/your/gdpr-stylesheet.css', array(), '4.15.0' );
}
// Add the action to enqueue the GDPR stylesheet on the frontend
add_action( 'wp_enqueue_scripts', 'mepr_load_mp_styles' );

Comments

Add a Comment