...
...

jQuery active class based on the page url

jQuery, Tutorials, Wordpress | 23 August 2018

Sometimes we need to add active class to our custom menu items or sidebar menus. Simple bit of jQuery to add an active class to the current navigation item based on the page url.

View More

...

How to Disable Emoji Support in WordPress 4.2+ without a Plugin

Tutorials, Wordpress | 20 August 2018

Since the release of WordPress 4.2, support for emoji icons has been added into the mix of the many ongoing upgrades to the WordPress core. This has been continues with mixed reviews, in some cases emojis can be a welcomed fun upgrade to spice up your blog but from the more professional side of things they aren’t really needed.

View More

...

WordPress Ajax login without using a Plugin

Tutorials, Wordpress | 14 August 2018

Here we will see ajax login without using a plugin in WordPress. Follow the simple steps and learn this easy tutorial.

View More

...

Remove empty p tags from custom Shortcodes in WordPress

Tutorials, Wordpress | 13 August 2018

Sometimes empty P tags occurs issues in design. So we need to remove empty p tags from custom shortcode in WordPress. Herer we will see how to remove theme.

Put the following code in function.php file. function.php file is located in root directory of the active theme folder.

View More

...

Restrict Access to a WordPress Site Based on IP

Tutorials, Wordpress | 06 August 2018

I recently developed an internal website for one company that requires to be accessible to employees only. I decided to just limit access to by IP address. This way everyone on the office network could access easily, but outside the network they would get an access denied message.

View More

...

WordPress permalinks Blog prefix

Tutorials, Wordpress | 03 August 2018

I recently found someone on the WordPress support forum who was asking how can he add /blog/ in front of his posts’, categories’ and tags’ URLs.

So I thought I’d write a post about it and share the solution with you guys. It’s quite easy actually.

View More

...

Remove type attribute from script and style tags added by WordPress

Tutorials, Wordpress | 30 July 2018

While validating the W3C, we need to remove “type” attribute from script and style which were added by WordPress. The style_loader_tag and script_loader_tag approaches above look like they should work for whatever markup WordPress is generating, in cases where the theme/plugin is using the proper enqueue functions. If you have offending plugins that don’t cooperate (IIRC Jetpack is/was an offender unless a newer version since my recollection has revised this!),

View More

...

Create a WordPress Admin login with Custom Code

Tutorials, Wordpress | 23 July 2018

A few times I’ve gotten into a situation where I have access to WordPress files (via SFTP or other means) but I’m otherwise locked out of the site (my user hasn’t been created or was accidentally deleted). In those cases, the quickest option is generally just to create a new admin user with custom code.

View More

...

Defer Parsing of JavaScript With YouTube Videos

Javascript, Tutorials | 19 July 2018

Deferring parsing of JavaScript is one of those messages that you get on sites like GTmetrix and other page speed sites that may sound like it’s from another planet. What on Earth does defer parsing of JavaScript even mean? Basically, what the message is saying is that a browser needs to process all of the content inside script tags before it can load the page. By putting off the processing of JavaScript until it is actually needed, you can reduce the initial load time of your page.

View More

Previous2/10Next