Here is a script that will countdown any number of hours. If you want a different number of hours, simply change the number in the parentheses. You will need to add three html elements with the IDs of 'hours', 'minutes', and 'seconds'. LEt me know if you have any questions.
(function() {...
Google built the "data-onytevent" attribute into the subscribe button to call another function on subscribe or unsubscribe event, but there are many reports of it not working(hxxps://code.google.com/p/gdata-issues/issues/detail?id=5707). If the ability to call a function on those events is...
andalousy,
The channelid issue was from me copy and pasting your code. I thought you were just going to be using images for the button not actually using google's api to generate specific buttons. The script will need quite a bit of changing to work with the iframes generated by the google api...
I can not see any reason that g0g0l's code shouldn't be working, but I went ahead and set up a CodePen with a slight variation.
hxxp://codepen.io/techsock/pen/pvaoYR
I would look into the shortcodes provided by WooCommerce to possible piece together what your looking for. I haven't tried updating total info from the checkout page, but I have set up product pages that redirect right into the checkout page with out going to the cart first. You could easily set...
Using a CDN like Cloudflare will decrease the page load time. You can also use tools like Pingdom's Website Speed Test as a good place to start. It will show you which resources are taking the longest to load. Lastly, depending on the site's content you might looking using a WP plugin like WP...
$string_exp = "/^[A-Za-z .'-]+$/";
if(!preg_match($string_exp,$name)) {
$error_message .= 'The First Name you entered does not appear to be valid.<br />';
}
if(!filter_var($subject, FILTER_VALIDATE_URL,FILTER_FLAG_HOST_REQUIRED)) {
$error_message .= 'The url you entered does not appear...
It would be helpful to see the html that goes along with the javascript you've posted. I would recommend either posting a URL to the live calculator or post it on CodePen(hxxp://codepen.io/).
Try this:
hxxp://gist.github. co m/hopki ns-matt/e16f964185767ad8e380
**fix the URL**
This will be a lot easier once I can post URLs on here.
Depending on the permissions set on your server, you may need to manually create an empty txt file named counter.txt.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.