• Resolved VitaSerk

    (@serkankurnaz)


    Hello,

    first of all, again thanks for the best GDPR Cookie Plug-IN + Great Support!

    So I have found a small issue, which is a bit too ennoying for me:
    We are using the Astra Pro Theme Version: 2.0.1.
    Since we using Complianz | GDPR Cookie Consent, the theme customizer is not working correctly: Complianz is blocking some JS it seems ??
    I got following help from the astra theme:
    We have debugged the issue and found that the issue is coming from Compliance | GDPR Cookie Consent plugin. We deactivated the plugin and the customizer options started working properly, it looks like the plugin is blocking the JS from loading. Is there any option in the plugin to disable it on customizer? Enabling such an option should resolve this issue.

    Is there a way we could solve this?
    I have also asked the astra team to contact you directly.
    It would be nice, if we could fix this together and so can we use both together ??

    Thanks a lot!

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    This is the cookie blocker, which is probably triggered by some Google Maps or Facebook or other social media references. It should not activate when in customizer mode. I have a function in place which can check if it’s in preview mode or in customizer mode.

    For example, for Elementor, I use

    if (isset($_GET['elementor-preview']) {
     return true; 
    }

    This would show in the URL as domain.com?elementor-preview=1

    If there’s something in the url when in customizer mode that is unique to Astra, we can use that. if you can post the url (domain is not necessary) that you see when in customizer mode, that should give me enough info.

    Thread Starter VitaSerk

    (@serkankurnaz)

    Hi @rogierlankhorst

    ineed, I use elementor also ??

    following url is shown when i click on customizer:
    /customize.php?url=https%3A%2F%2Fmysite.de%2F

    hope that helps

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Can you check if replacing the function cmplz_is_pagebuilder_preview() in wp-content/complianz-gdpr/functions.php with the one below resolves your issue?

    if (!function_exists('cmplz_is_pagebuilder_preview')) {
        function cmplz_is_pagebuilder_preview()
        {
            $preview = false;
            global $wp_customize;
            if (isset( $wp_customize ) || isset($_GET['fb-edit']) || isset($_GET['et_pb_preview']) || isset($_GET['et_fb']) || isset($_GET['elementor-preview']) || isset($_GET['fl_builder'])) {
                $preview = true;
            }
    
            return apply_filters('cmplz_is_preview', $preview);
        }
    }
    Thread Starter VitaSerk

    (@serkankurnaz)

    Hi @rogierlankhorst

    where can i find it?
    cmplz_is_pagebuilder_preview() in functions.php

    in my theme functions.php? or in the complianz plug in folder

    thanks!

    Thread Starter VitaSerk

    (@serkankurnaz)

    I found the function.php, but wont find in it:
    cmplz_is_pagebuilder_preview

    not sure what to replace?

    so shall i just add ur code to the buttom?

    thanks!

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Thread Starter VitaSerk

    (@serkankurnaz)

    Hi @rogierlankhorst

    perfect! problem solved ??

    so what was the issue?
    Will the problem come back, when updating complianz?

    anything i can do to pretend that it will come back again?

    thanks again! ??

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    I have create a branche, you can replace the entire functions.php from here:
    https://github.com/rlankhorst/complianz-gdpr/blob/exclude-customizer/functions.php

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Oh, just missed your last post ??

    This fix will be merged into the plugin on the next update.

    Thanks for reporting the issue!

    Rogier

    Thread Starter VitaSerk

    (@serkankurnaz)

    what is a branche?

    and why should i replace the entire function.php when it is already working now?

    and how will future updates effect that?

    thanks ??

    Thread Starter VitaSerk

    (@serkankurnaz)

    thanks for the update!

    Perfect, your great!

    have a nice week ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Problem with Astra Theme Customizer’ is closed to new replies.