• Resolved bigskillet

    (@bigskillet)


    We need to add a 3rd-party cookie consent bar to the bottom of the Age Gate template. Is that possible? Could we hack the plugin maybe, or is there a better way?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Phil

    (@philsbury)

    Hi @bigskillet,

    There’s a few ways to go on this. wp_footer still fires in the age gate template, so there’s that option.

    There’s also a filter (that really should be an action!) that you could tap into – just have to return the markup.

    You could also add an “accept cookies” form field if you wanted.

    Hope one of those helps.

    Cheers
    Phil

    Thread Starter bigskillet

    (@bigskillet)

    I hacked the public/partials/age-gate-public-display.php and got it working, but realized my changes would be wiped out the next time the plugin updates.

    I went ahead and used the custom field approach, adding the embed script instead of an input field.

    Thanks for the quick response!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Add Javascript to Age Gate Template’ is closed to new replies.