J!Extensions Store™
Forum
Welcome, Guest
Please Login to access forum.
Re:Link to open GDPR banner (1 viewing) 
Go to bottom
TOPIC: Re:Link to open GDPR banner
#7844
Marlies
Fresh Boarder
Posts: 0
User Offline
Link to open GDPR banner Karma: 0  
Hello, I am trying to give users the option to change their cookie settings from the Cookie Policy. How do I create a link so that the GDPR banner will pop up on click? Thanks!


<reply>

Thank you John.
I don't know how to disable the editor, is there an extension so I can put in the javascript into the code?

I am a really newbe, I cannot find the REPLY button on the post...

But thanks!!
 
Logged Logged  
  The administrator has disabled public write access.
#7845
John Dagelmore
Admin
Posts: 3716
User Online Now
Re:Link to open GDPR banner Karma: 79  
Hello,

this is not part of the component, the cookie toolbar is fully managed by javascript and has nothing to do with links.

When the revocable option is enabled, the cookie toolbar can be opened using the cookie tab that is always visible.

Only thing you can do is use a link to trigger the toolbar javascript as below:

Code:

<a href="javascript:void(0)" onclick="jQuery('div.cc-revoke').trigger('click');">Open cookie toolbar</a>
Probably you will need to disable the Joomla editor to place this code into the Cookie Policy article. Notice that you need to keep enabled the revocable option anyway, if you want to get rid of the tab use CSS insteadas in the following snippet:
Code:

div.cc-revoke{display:none !important}
 
Logged Logged  
  The administrator has disabled public write access.
Go to top