Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1393921

    Hi,
    I have a password protected page that is only working with accepted essential cookies.
    Is there a way to show an information-link to the cookie consent on the password page if the user hasn’t accepted the cookies, yet?

    I found the shortcodes, but I’m not sure how to show it with the condition and on a password protected page.

    Thank you!

    #1394323

    Hey maxh_muc,

    Thank you for the inquiry.

    Do you want to add the notification to a page? You can modify the page.php, loop-page.php or the template-builder.php file and add the info directly. You can use the function post_password_required to check if the page or post requires a password.

    // https://codex.wordpress.org/Function_Reference/post_password_required

    Examples can be found in this documentation.

    // https://wordpress.org/support/article/using-password-protection/

    Best regards,
    Ismael

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