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
cookie html
Forum rules
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Re: cookie html
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
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>
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
I think you will have to edit "cookieconsent.min.js" to implement this functionality.
Re: cookie html
Thanks Pablo, thats way above my capabilities so I think I will stick to the direct page link.
Cheers
Cheers