pete777
Forum Replies Created
-
@jabberjaws77 I’m running a custom theme, so added it to my theme’s main script, but the common way to add custom javascript is to save it as a script file (i.e. copy/paste the above into a text editor and save it as “my_custom_script.js”), and then upload this file to your server (requires FTP access) and add it through your theme’s functions.php file – instructions here:
https://www.wpbeginner.com/wp-tutorials/how-to-properly-add-javascripts-and-styles-in-wordpress/
In the tutorial above, the script is in the plugins directory so when uploading via ftp, you would put the .js file in /wp-content/plugins/
There may be plugins to accomplish this without FTP. Not really sure.
I had the same problem, which I just noticed this week.
Here’s my quick and dirty solution via javascript (requires ability to add scripts to your pages/themes). I’m sure a better script or a php function would improve it, but this is at least working for me now:
jQuery(document).ready(function() { setTimeout(function() { jQuery('.simcal-nav-button').removeAttr('disabled'); }, 1000); jQuery('.simcal-nav-button').click(function() { setTimeout(function() { jQuery('.simcal-nav-button').removeAttr('disabled'); }, 500); }); });
This strips the “disabled” attribute from the navigation buttons when the page loads (with a delay to ensure simple calendar is also loaded), and then strips them again any time a user clicks navigates to a new month.
Forum: Plugins
In reply to: [WP YouTube Lyte] Playlist via shortcode brokenThat did the trick. Thanks! And thanks for the handy plugin ??