Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26205
    MrPaule66
    Participant

    Hi there,

    i have a google map at my homepage and I want do show it only after the user has accepted my cookie/map notice.
    I found a code in this forum:

    <?php
    if ( function_exists('cn_cookies_accepted') && cn_cookies_accepted() ) { ?>
    <script>
    ...
    </script>
    <?php } ?>

    but it doesnt work. The map isn’t displayed anyway (the google map code isn’t in the sourcecode of the page.
    I also doesn’t find any option or something else in the plugin page I have to enable.

    Does anyone have a tip or idea?
    Thanks a lot.

    #26208
    MrPaule66
    Participant

    It works. I did an error in the code position.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.