Skip to content
Discussion options

You must be logged in to vote

Yes, Material for MkDocs' cookie consent form is not really setting cookies but uses local storage. Your use case is a little exotic, which is why theme extension might be your best option. You could override the javascripts/consent partial and apply your logic before the theme's logic runs. Extra JavaScript will always run after the theme's logic. The consent logic is here (bottom):

<!-- Consent -->
{% if config.extra.consent %}
<div class="md-consent" data-md-component="consent" id="__consent" hidden>
<div class="md-consent__overlay"></div>
<aside class="md-consent__inner">
<form class="md-con…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@StarfallProjects
Comment options

@ssbarnea
Comment options

Answer selected by StarfallProjects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants