Optimizing site

You can use cloudflare. In this way your website will load (at least) 30% faster and will also be secured. Cloudflare is a cloud proxy. All website traffic will be handled by this service. There is a free service that really works. If you want, you can also try paid services, but the free one … Read more

Moving a plugin js to footer

Your thought is correct. By editing the plugin file you lose updatability. So unregistering and reregistering it in the functions.php would be the correct way to do it.

how to prevent all css and javascripts files from loading

I’m not really sure why you’d want to do this…but the only thing I can think of that might work is something like this: function prefix_block_resources(){ if(is_admin())return; //I can’t imagine any scenario where blocking scripts in the admin area would be wise. global $wp_scripts; global $wp_styles; $wp_scripts->queue = array(); $wp_styles->queue = array(); return; } add_action(‘wp_head’, … Read more

WordPress 4.3 broke meta redirect (with url params plugin)

You need to allow the content attribute of a meta tag to contain a shortcode, eg in your “functions.php” add: add_filter( ‘wp_kses_allowed_html’, function ( $allowedposttags, $context ) { if ( $context == ‘post’ ) { $allowedposttags[‘meta’][‘content’] = 1; } return $allowedposttags; }, 10, 2 ); and then your original (without the quotes in param=link) <META … Read more

Shortcode Placeholder Plugin

Of course. You need two things – a settings page, and a custom shortcode handler. The first is a little too broad to discuss in detail here, but this tutorial should help get you started. You can also check out the codex, or post back here with a new question if you really get stuck. … Read more

How do I pass custom shortcode-extracted variables (taxonomy) into a query function for WordPress RoyalSlider?

Two words – variable scope. Use a closure instead and pass $rstax through with use: add_filter( ‘new_royalslider_posts_slider_query_args’, function ( $args ) use ( $rstax ) { return array( ‘post_type’ => ‘carousel-slide’, ‘orderby’ => array( ‘menu_order’ => ‘ASC’ ), ‘tax_query’ => array( array( ‘taxonomy’ => ‘carousel-slide-category’, ‘field’ => ‘slug’, ‘terms’ => $rstax, ), ), ) } … Read more

How to load different homepage on Mobile.?

This question is pretty vague but I’ll give it a shot. A few options: 1) Check out WPtouch – http://www.wptouch.com/ – This plugin gives you the ability to override certain aspects of your primary theme with mobile friendly templates instead. 2) This is not ideal but you could use some basic Javascript to check the … Read more