Title: Cookie Declaration not displaying correctly
Last modified: March 18, 2021

---

# Cookie Declaration not displaying correctly

 *  Resolved [Pierre](https://wordpress.org/support/users/ierpe/)
 * (@ierpe)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cookie-declaration-not-displaying-correctly/)
 * When logged in WordPress, everything is fine, but in incognito, the Cooke Declaration
   is loaded after the footer in the DOM.
 * I tried wrapping the script in a section like this :
 * <section class=”cookie-bot-section”><script id=”CookieDeclaration” src=”[https://consent.cookiebot.com/xxxxxxxxxxxxxxxxx/cd.js&#8221](https://consent.cookiebot.com/xxxxxxxxxxxxxxxxx/cd.js&#8221);
   type=”text/javascript”></script></section>
 * But it does not work.
    I also tried adding it in a separate WP page template 
   file but the result is the same. How can I make sure that the cookie declaration
   will be loaded in a sepific html tag ?
 * Logged in WordPress, displaying fine : [https://paste.pics/f3312052edc720c8064c55b2e62740d8](https://paste.pics/f3312052edc720c8064c55b2e62740d8)
   
   Not logged in, declaration appears after the footer : [https://paste.pics/73c0c47876af57355487e54600b1b46e](https://paste.pics/73c0c47876af57355487e54600b1b46e)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcookie-declaration-not-displaying-correctly%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [monocode](https://wordpress.org/support/users/teamappsaloon/)
 * (@teamappsaloon)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cookie-declaration-not-displaying-correctly/#post-14265335)
 * Hi [@ierpe](https://wordpress.org/support/users/ierpe/),
 * I could not reproduce this issue using the “Cookie Declaration” block, and the
   twentytwentyone theme on a clean wordpress install. The declaration content appears
   right where it’s supposed to. (when logged in and when logged out)
 * May I ask which theme you are using on your website?
    If you haven’t tried it
   yet, I would suggest also using the “Cookie Declaration” block on the page editor.
 * Kind regards,
 * Team AppSaloon
 *  Thread Starter [Pierre](https://wordpress.org/support/users/ierpe/)
 * (@ierpe)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cookie-declaration-not-displaying-correctly/#post-14286836)
 * Hi and thanks for your answer.
 * This is a custom theme based on Foundation 5, but we are also using other plugins.
 * Using the block editor instead of the page builder we were using fixed it thanks.
 *  Anonymous User 18245252
 * (@anonymized-18245252)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/cookie-declaration-not-displaying-correctly/#post-14727075)
 * Hi [@ierpe](https://wordpress.org/support/users/ierpe/)
 * We’re happy to read that the problem is fixed.
 * kind regards
    Wendy

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

The topic ‘Cookie Declaration not displaying correctly’ is closed to new replies.

 * ![](https://ps.w.org/cookiebot/assets/icon.svg?rev=3200631)
 * [Cookiebot by Usercentrics - Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode](https://wordpress.org/plugins/cookiebot/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookiebot/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookiebot/)
 * [Active Topics](https://wordpress.org/support/plugin/cookiebot/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookiebot/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookiebot/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: Anonymous User 18245252
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/cookie-declaration-not-displaying-correctly/#post-14727075)
 * Status: resolved