For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
I would like to add a pop up box for newsletter sign ups on my homepage. But I'm having a moment. I have the code for the newsletter sign up, but need to turn it into a pop up box. How can I get this to only open on the main page? I tried entering the code in the HTML scrip from the page editor and it came up stationary and with error messages...
Thanks!
uhm.... some javascript that does a window.open(...) with the url to the subscription page
and just mark your 'subscription' page as not shown in menu.
something like (off the top of my head)
{literal}
function register_page()
{
window.open({/literal}{cms_selflink page='subscribe'}{literal});
}
{/literal}
click here to register
this is just off the top of my head example code..... if it works, I'd be surprised, but you should be able to figure it out from there.\
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
-------------------- If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.