Newsletter popup button how to?

September 2015 Joomla Template
GK User
Thu Dec 03, 2015 3:16 pm
How to create a link to open again Newsletter popup?

I like create a link "subscribe here" and when user click, open popup newsletter again.

Can you help me?
Thanks,
Max
User avatar
Fresh Boarder

teitbite
Sat Dec 05, 2015 11:28 am
Hi

Use a link like this (the ID is the most important part)

Code: Select all
<a id="gk-newsletter-button">Subscribe Now!</a>


and add this code to /layout/blocks/head.php

Code: Select all
<script type="text/javascript">(function($) {$(document).ready(function() {
$('#gk-newsletter-button').click(function(){
$('#gk-newsletter-popup').toggleClass('hidden-popup');
});
});})(jQuery)</script>
User avatar
Moderator

GK User
Fri Dec 25, 2015 8:51 pm
I try to do it on the Technews template but it did'nt work..

What I do wrong?

Thanks
User avatar
Fresh Boarder

teitbite
Sun Dec 27, 2015 8:04 pm
Hi

Please check if newsletter is set to be displayed at all in template settings and if there is a Newsletter module present in "newsletter" module position attached to all pages. If this will not be the case please tell me the url to Your site.
User avatar
Moderator


cron