How do I add e-mail subscription functionality

Many plugins currently available allow you to enable this feature on your site. My favorite is Jetpack Subscriptions for reasons including: Very much up-to-date, well-maintained plugin Emails sent from WordPress.com servers, so there’s absolutely no load on your servers (Make sure you disable all the unnecessary modules activated by default when you activate Jetpack by … Read more

Button generate a random URL [closed]

It looks like your code works as written. Alternatively, you can generate an alphanumeric string using uniqid()… <a href=”http://meet.jit.si/<?php echo uniqid()?>” target=”_blank”> click here </a> EDIT: Modified code based on additional information. This should create a shortcode that allows you to easily add a button to a unique meeting link by adding [rand_jitsi_btn] to a … Read more

Hiding Google Analytics code based on theme options

Take the GA code from your header and wrap it in a function hooked to wp_head; function __analytics_head() { $options = get_option( ‘themename_theme_options’ ); if ( !empty( $options[‘analytics’] ) ) : ?> <script type=”text/javascript”> var _gaq = _gaq || []; _gaq.push([‘_setAccount’, ‘<?php echo esc_js( $options[‘analytics’] ) ; ?>’]); _gaq.push([‘_trackPageview’]); (function() { var ga = document.createElement(‘script’); … Read more

Why my wp_enqueue_script doesnt work on some page?

Hi add this code to your Function.php and jquery-ui.js should be loaded correctly on your website. // Register Script function custom_scripts() { wp_register_script( ‘jquery-ui’, ‘/assets/js/jquery-ui.js’, false, false, true ); wp_enqueue_script( ‘jquery-ui’ ); } add_action( ‘wp_enqueue_scripts’, ‘custom_scripts’ );