Support » Plugin: GDPR Cookie Compliance » Multiple header.php template files (it only works on the header.php)

  • Dear developers,

    I am using the GDPR Cookie Compliance Plugin for a few days now and I absolutely love it! Except now I am dealing with one issue.

    I want to make sure third-party cookies are disabled by default and when accepted they “fire”. There is a great function that makes that possible.

    Except I got multiple header files for different templates, maybe not the best way to work but it is the reality.

    How can i make the following function work for multiple header.php files:
    The below script will be added to the page HEAD section if user enables this cookie.

    I got 4 header.php files they are called like:

    • header.php
    • header-slider.php
    • header-sector.php
    • header-contact.php

    I hope there is a work around my problem.
    Thanks already and again great work with the plugin!


  • You must be logged in to reply to this review.