• My intention is to hide the cookie consent message for visitors from outside Europe. As instructed I installed the GeoIp Detection plugin. As instructed in one of the support threads I checked “Add a country-specific CSS class to the <body>-Tag.” in the GeoIP plugin. The geo-detection now works but with an unwanted side effect:

    I have a quite lengthy message placed at the top of the web-site. Doing as above makes the message invisible but all empty space occupied by the message at the top remains (Hence the message seem to be there but text colours are set to blank so not visible). The annoying result is that you get a large blank space above your site and there is no way to get rid of that because the button to close the message is also hidden.

    If I don’t hide the message the visitor can click on the button and this nicely removes the space above the web-site. A proper solution to this should also remove all the empty space to be like there was no cookie message. I think this unintended side effect is caused by the Cookie consent plugin rather than by the Geo detect plugin. I would appreciate a lot if this could be fixed.

    (Currently I don’t hide the message for non-European visitors due to the above problem.)

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter AlwaysEnthusiast

    (@alwaysenthusiast)

    Just another thought: I assume it might be difficult to remove the empty space unless a cookie is placed. Would it be a good idea to have an alternate cookie. This would be placed if the visitor came from a place being selected for not seeing the message. This cookie could have a life span of 24 hours. This means the empty space be seen for a few seconds and would then disappear for 24 hours and if the visitor comes back the empty space is seen for a few seconds before vanishing again. Any changes in the selection of geotags to be excluded from seeing the message would take effect after 24 hours which seem acceptable. Is this an acceptable solution that could be implemented?

    Thread Starter AlwaysEnthusiast

    (@alwaysenthusiast)

    I turned on hiding the message for all except Europe despite the annoying side effect of producing a space above the site (to facilitate support from this plugin author). I would appreciate a comment from @catapult_themes concerning the possibility of removing the empty space displayed for all non-European visitors.

    Thread Starter AlwaysEnthusiast

    (@alwaysenthusiast)

    The blank space above my website was more prominent on a mobile phone where the whole screen was covered by a blank space. Hence, I changed so I only hide the message for users from “Antarctica”. Better for a user to see the message and be able to remove it rather than having a long empty space. I would appreciate a comment from @catapult_themes concerning the possibility of removing the empty space displayed for all those where the notification is hidden.

    Thread Starter AlwaysEnthusiast

    (@alwaysenthusiast)

    Another user suggested in the thread “GeoIP Detection Not Working” a PHP code to make this work (I don’t understand what that code does and have not tested it).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem hiding message for non European visitors.’ is closed to new replies.