Disable the WP emoji Script

Are you also thinking why have WordPress added this emoji script, it is 2018 we are trying to make our site load faster and solving issues of reducing the number js and any other scripts/css we can stop loading above the header. And here we have an extra script and a lot of code added. […]

Read more
Add Custom Scripts to header

A lot of time we need to add Google Analytics/Tag manager scripts or some other scripts in the header section of our them. The best way to do it by creating a function in your child theme folders functions.php file or setting it up as an independent plugin. The code: function add_custom_script_to_header() { ‘< ? p h […]

Read more
WordPress adding google fonts the right way

Most of the time we need some different font than provided by theme developer or default html fonts, and adding them to WordPress the right way is important. These days lot of theme developers include options panel or some way or the other to let you select google fonts from a list of pre populated […]

Read more
WordPress 4.5 update broke my website

This title sounds so much familiar, right. Thankfully it didn’t happen to my sites as most of my plugins and my theme code is updated and then of my clients as well but in last 2 days I have got around 10-12 requests for fixing sites where plugin/theme broke, it is most likely happening due […]

Read more
Summer Deal, $50 WP install + theme setup

Summer throw away deal, get your WP install + theme setup in $50 (80% discount). Get your WordPress hosting setup* (recommended hosting, Hostgator) and theme of your choice setup with dummy content added, in just 1hr*.

Read more
Adding custom featured image

You are creating your own template page and you would want to display featured image, with custom size. Solution: if ( function_exists( ‘add_image_size’ ) ) { add_image_size( ‘slider’, 991, 328, true );} Add this code to your functions.php file And than go to your custom template page and add this code if (has_post_thumbnail()) { echo […]

Read more
wordpress the_content not working on page template

Many a times i have come across queries from developers or first time theme developers about not able to show the_content() on their custom template page. The issue is that the_content() function runs inside the WP loop so for example if (have_posts()) { while (have_posts()) { the_post(); the_content(); } } ?> This will work, but […]

Read more
Creating custom widget

The best option is to first create a child theme for your main theme. And than call the functions.php file in it and First Step is to register your sidebar register_sidebar( array( ‘name’ => __( ‘Main Sidebar’, ‘themeName’ ), ‘id’ => ‘sidebar-1’, ‘description’ => __( ‘some useful info’, ‘themeName’ ), ‘before_widget’ => ‘<aside id=”%1$s” class=”widget […]

Read more
A quick guide to your custom widget for WordPress

Today in one of the support forums someone asked for a tutorial on adding your widgets to a static page on your WordPress CMS, and i couldn’t find a good straight forward tutorial to help him guide, so thought about writing it myself. The problem? You need a custom widget on your static homepage of […]

Read more
Dynamically populating href using jquery – WordPress

Create a Anchor element which you want to dynamically populate using jquery Giving a class name is important as in your jquery you would refer the href using this class Now time to add some jquery code (this was done for a WordPress theme) – it has by default the jquery added, if you are […]

Read more