• Resolved Barcelo

    (@barcelo)


    Hi there,

    I was wondering if it might be the possible to add an individual custom text to a certain placeholder. Like adding HTML formatted text to the the element with class “cmplz-blocked-content-notice-body”. Or to extend the default placeholder text right before this.

    Is this somehow possible?

    Regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Jarno Vos

    (@jarnovos)

    Hi @barcelo,

    You can adjust the placeholder/blocked content text under Complianz -> Settings -> “Blocked content text”, but it will be applied to all placeholders.

    Changing the text individually per placeholder is not currently supported, although you might be able to achieve that with some custom JavaScript (https://complianz.io/developers-guide-for-third-party-integrations/).

    Kind regards, Jarno

    Thread Starter Barcelo

    (@barcelo)

    Hi @jarnovos

    thanks for your quick reply and support.

    I already had a look at the developer guide, but as I do understand, there is only mentioned to change the source of the background image on a placeholder and not how to adjust / override the text for a certain placeholder.

    It would be fine for me to be able to hook into that relevant function (cmplz_accept_cookies_blocked_content ?).

    Regards

    Plugin Contributor Jarno Vos

    (@jarnovos)

    Hi @barcelo,

    The article describes hooks/filters that you can use to apply your own JavaScript logic, for example, to do something after the banner has fully loaded.

    It will still require some customization to get the exact results you desire, as we don’t have a ready to use snippet for your exact purpose.

    You can also view the Complianz Integrations GitHub repo (https://github.com/Really-Simple-Plugins/complianz-integrations) for more customization snippets, to serve as an example for the creation of your own snippet.

    Kind regards, Jarno

    Thread Starter Barcelo

    (@barcelo)

    Hi @jarnovos,

    ok – thanks again for your reply. I will check deeper into that.

    Regards

    Thread Starter Barcelo

    (@barcelo)

    FYI: got it managed via JavaScript snippet 🙂

    Plugin Contributor Jarno Vos

    (@jarnovos)

    Hi @barcelo,

    That was very fast, glad to hear about these results!

    I’ll mark the thread as resolved, but let me know if you have further questions about the plugin.

    Kind regards, Jarno

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

The topic ‘individual placeholder text’ is closed to new replies.