• Resolved lauratraveler

    (@lauratraveler)


    Hi, I’m using the?[cmplz-manage-consent] and [cmplz-cookies] shortcodes on the Cookie policy page.

    [cmplz-cookies] works as expected, although it is poorly formatted and the text in the second column is slightly higher than the one in the first.

    However, ?[cmplz-manage-consent] displays [object Object] on the front end for non-logged in users instead of the table with the option to select or deselect the cookie categories.

    Any ideas why this happens?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    The cmplz-cookies shortcode outputs pure html, without css. You can style this yourself, or manually load the Complianz document css. This shortcode is meant for advanced customization.

    The other shortcode relies on the rest api. If you see this error, it usually means the rest api is blocked. Do you have a security plugin which blocks it?

    Thread Starter lauratraveler

    (@lauratraveler)

    @rogierlankhorst Ah, cool! How do I manually load the Complianz document css? Is there a link where I can find it?

    As for the second issue, I’m using the Disable WP REST API plugin. Is there any workaround it so I can keep using this plugin? Thanks!

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @lauratraveler,

    For #1, could you verify that you have the Complianz document CSS setting enabled under Complianz -> Settings -> General -> Use document CSS by Complianz?

    Or you could decide to load the stylesheet manually on this page as shown below. Make sure to replace “domain.com” with your site URL.

    <link rel="stylesheet" id="cmplz-document-css"  media="all">

    For #2, the REST API would have to be enabled for Complianz (and other plugins that rely on it) to be able to use it.

    Kind regards, Jarno

    Thread Starter lauratraveler

    (@lauratraveler)

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcodes’ is closed to new replies.