Page 1 of 1
cookie html
Posted: Tue May 19, 2020 8:17 am
by Billywiz
Hi, I have a cookie control that was added via an html object and within that object there is link to the cookie policy, for example
http://www.mywebsite.com/cookie.html. I want this to open in a frame or lightbox so what code is needed at the end of the url to achieve this.
Cheers
Re: cookie html
Posted: Tue May 19, 2020 9:00 am
by Pablo
What you can do it create a link in WWB that triggers a lightbox and then copy that code to your own HTML.
Re: cookie html
Posted: Tue May 19, 2020 11:44 am
by Billywiz
Thanks Pablo.I have created the code as suggested but where in the existing code is it placed or does it go in the page html.
Code created for lightbox
<div id="wb_Text3" style="">
<p style="color:#000000;"><a href="javascript:displaylightbox('
https://www.mysite.com/cookies.html',{' ... eight':445})" target="_self">
https://www.mysite.com/cookies.html</a></p>
</div>
My existing code
<link rel="stylesheet" type="text/css" href="//wpcc.io/lib/1.0.2/cookieconsent.min.css"/><script src="//wpcc.io/lib/1.0.2/cookieconsent.min.js"></script><script>window.addEventListener("load", function(){window.wpcc.init({"border":"thin","corners":"normal","colors":{"popup":{"background":"#606060","text":"#ffffff","border":"#f9f9f9"},"button":{"background":"#f9f9f9","text":"#000000"}},"position":"top","margin":"small","transparency":"10","fontsize":"small","content":{"href":"
https://www.mysite.com/cookies.html","message":"We use some unobtrusive cookies to ensure you get the best experience from our website.","link":"Our cookie policy","button":"I Understand"},"padding":"small"})});</script>
Re: cookie html
Posted: Tue May 19, 2020 11:55 am
by Pablo
I think you will have to edit "cookieconsent.min.js" to implement this functionality.
Re: cookie html
Posted: Tue May 19, 2020 12:47 pm
by Billywiz
Thanks Pablo, thats way above my capabilities so I think I will stick to the direct page link.
Cheers