• Resolved vsconsult

    (@vsconsult)


    I want to have the dismiss button hidden until the user clicks on the Preferences button.

    I see there is js on the preferences button that changes display: none to display: inline-block for the class “cmplz-categories-wrap”.

    Using plugin editor I was not able to find the file which assigns the Dismiss button its classes <- I wanted to add it a class “cmplz-categories-wrap” to let it display once the Preferences button is clicked.

    Can you guide me to the correct file? Or if I’m totally misguided, can you point me in the right direction?
    Thanks!

    Vladimir

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @vsconsult,

    Please note that this customization might not be considered to be compliant in your targeting region.

    Aside from the above: with the current banner style, wouldn’t it suffice to hide the Dismiss button entirely with: .cc-dismiss {display: none}?

    As “Save preferences” without consenting to any additional categories would be the same as “Dismiss/only functional”.

    Just let me know.
    Kind regards,
    Jarno

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @vsconsult

    And in addition to the above, when hiding the Dismiss button you can use the below CSS to set the View/Save button to full width:

    #cc-window.cc-type-categories.cc-floating.cmplz-categories-hidden .cc-compliance .cc-save {
        width: 100%;
    }
    Thread Starter vsconsult

    (@vsconsult)

    You are right, the functionality would the same by hiding the “dismiss” button altogether.

    But I wanted the dismiss button to appear once “Preferences” is clicked so I give the user the impression that the obligatory dismiss button is there.

    I will not bother you with this, I will ask some js developer to add this “appear once clicked” functionality.

    You are great that you respond to questions of free users, THANKS!

    Have a nice weekend ??

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @vsconsult,

    Just as a quick note: the CSS classes (among others) will change in the upcoming major release, Complianz 6.0.

    If you are planning to make further customizations, I would recommend creating/testing these in 6.0 to make sure they still provide the expected results. Complianz 6.0 will be available on the WordPress repository within a few weeks, and can already be downloaded from GitHub: https://github.com/Really-Simple-Plugins/complianz-gdpr

    Kind regards,
    Jarno

    Thread Starter vsconsult

    (@vsconsult)

    HI Jarno,
    thanks will definitelly adjust it based on the new classes.

    Best,
    Vladimir

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide dismiss button until “Preferences” is activated’ is closed to new replies.