• Resolved flow2024

    (@flow2024)


    Hello, I have a problem with compilance. On my site I use an iframe. Now I wanted the iframe to be blocked. But even after activation, the iframe is still displayed. Does anyone have any idea why this might be. Many thanks for your help!

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

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @flow2024,

    Which iFrame does the question concern exactly? I couldn’t find one on the homepage of the site you attached, although I did find one on the /terminvereinbarung/ page.

    Let me know, and I’ll provide instructions to block it.

    Kind regards, Jarno

    Thread Starter flow2024

    (@flow2024)

    On the home page the gereen voting graphic? With /terminvereinbarung/ it works. Thank you very much for your help!

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @flow2024,

    There is no iFrame on the homepage though, there seems to only be an image with a link to another page; which does contain an iFrame.

    Kind regards, Jarno

    Thread Starter flow2024

    (@flow2024)

    Oh ok, then we’re safe. Thank you very much for your help.

    Thread Starter flow2024

    (@flow2024)

    Thank you very much, I’m just a bit confused. When I scan the page at https://www.ccm19.de/cookie-scanner/ I get a message that the external image is problematic. Don’t I need consent for this? I am very grateful for your help! Best regards

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @flow2024,

    Not entirely sure why the tool reports an image from another domain as problematic, but you could decide to either host it locally on your own server (provided that you have permission from its’ author to do that), or use Complianz to block it prior to consent.

    https://complianz.io/block-pixel-image-tracking/

    Kind regards, Jarno

    Thread Starter flow2024

    (@flow2024)

    Thanks for the hint.
    However, my website is offline when I insert the script: under /wp-content/mu-plugins/
    ??

    <?PHP
    
    definiert( 'ABSPATH' ) oder stirb( "Sie haben keinen Zugriff auf diese Seite!" );
    
    /**
    * Blockieren Sie das Bild
    * @param $tags
    * @Array zurückgeben
    */
    
    Funktion cmplz_block_image_sources( $Stichworte ) {
    	$Stichworte[] = 'meinhoergeraet.de';
    
    	zurückkehren $Stichworte;
    }
    add_filter( 'cmplz_image_tags', 'cmplz_block_image_sources' );
    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @flow2024,

    It seems that your version of the snippet seems to be translated to German somehow. This is almost certainly why the issue occurs when you implement the snippet.

    Maybe you’re using some translation tool in your browser, and it translates the code snippet to German as well, thereby breaking it’s functionality.

    Kind regards, Jarno

    Thread Starter flow2024

    (@flow2024)



    Oh, when I translated the page I translated the script too. ??

    But it still doesn’t work.

    There was a critical error on your website. Learn more about troubleshooting WordPress.

    <?php
    
    defined( 'ABSPATH' ) or die( "you do not have access to this page!" );
    
    /**
    * Block the image
    * @param $tags
    * @return array
    */
    
    function cmplz_block_image_sources( $tags ) {
    	$tags[] = 'meinhoergeraet.de';
    
    	return $tags;
    }
    add_filter( 'cmplz_image_tags', 'cmplz_block_image_sources' );
    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @flow2024,

    If I add your exact code in a .php file, and add it to the /wp-content/mu-plugins/ folder on my end, it seems to work perfectly fine to block the image you shared earlier on in this thread.

    All I did was change the URL to hoersysteme-ise.de. You can see my example page here.

    Maybe you still have the old MU Plugin activated as well? You can also enable Debugging on WordPress (e.g. with a plugin like WP Debugging) to log more information about the cause of the error, which will point you in the right direction.

    Kind regards, Jarno

    Thread Starter flow2024

    (@flow2024)

    I don’t have any MU plugin installed at all. Then I misunderstood that.

    It simply said create a folder /Mu-Plugins/ under /Mu-Plugins/. Which plugin do you use?

    When I search for MU plugin I can’t find any plugin. Can you recommend a plugin for me? Sorry :-/

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @flow2024,

    Please follow these instructions on how to add a code snippet as MU Plugin (Must Use Plugins) on your site: https://complianz.io/adding-filters-with-mu-plugins-quick-easy/

    In short, save the snippet in a .php file and upload that to the folder /wp-content/mu-plugins/ on your site.

    Kind regards, Jarno

    Thread Starter flow2024

    (@flow2024)

    So without an additional plugin. I did it as it says on the page. Unfortunately does not work.

    • This reply was modified 11 months, 2 weeks ago by flow2024.
    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @flow2024,

    As I have previously demonstrated that the exact same code works fine on my end, I’m afraid I would need some more details to tell what the issue might be in your case.

    Kind regards, Jarno

    Thread Starter flow2024

    (@flow2024)

    Hi Jarno,
    I just do not understand. I’ve been trying again for hours. But it just doesn’t work. I have put together all the information in the file for you again. Maybe you see an error.

    Thank you very much for your help!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘COMPLIANZ does not block my iframe’ is closed to new replies.