-
Notifications
You must be signed in to change notification settings - Fork 15
Shortcode

The [pressidium_cookie_consent_cookies] shortcode displays a table listing all cookies under the specified category, making it easy for users to understand what cookies are being used on the site.
This shortcode is particularly useful for websites that have a distinct cookie policy page.
You could use the Pressidium Cookies Table block instead, learn more about it at the Pressidium Cookies Table block section of this wiki.
-
Add the
[pressidium_cookie_consent_cookies]shortcode to the desired page or post. -
Specify the category of cookies you want to display in the table by adding the
categoryattribute to the shortcode. For example:[pressidium_cookie_consent_cookies category="necessary"] -
Publish or update the page.
The [pressidium_cookie_consent_cookies] shortcode accepts the following attributes:
-
category(required): The category of cookies you want to display in the table. Possible values arenecessary,analytics,targeting, andpreferences.[pressidium_cookie_consent_cookies category="analytics"] -
show_columns(optional): The columns you want to display in the table. Possible values arename,domain,expiration,path, anddescription. You can specify multiple columns separated by a comma. For example:[pressidium_cookie_consent_cookies category="targeting" show_columns="name,description"]
The table generated by the [pressidium_cookie_consent_cookies] shortcode is wrapped in a div element with the pressidium-cookie-consent-cookies class. You can use this class to style the table using CSS.
Out of the box, the table has a simple layout with minimal styling. You can customize the appearance of the table by adding custom CSS to your theme.