...
...

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

...

How to Defer Parsing of JavaScript in WordPress

jQuery, Tutorials, Wordpress | 09 July 2018

There are a few reasons why we should defer parsing of JavaScript in WordPress. The most important one is speed and performance. Generally, JavaScript is placed between the head tags. When opening a website, it loads the code from top to bottom. This means that if you have lots of JS or long strings, it will take more time for the website’s content to appear, as it first waits for all the JavaScript to load.

View More

...

TypeError: ‘undefined’ is not a function (evaluating ‘$(document)’) In WordPress

jQuery, Tutorials, Wordpress | 04 July 2018

Wordpress uses jQuery in noConflict mode by default. You need to reference it using jQuery as the variable name, not $.
Replace “jQuery(document);” in place of “$(document);”

View More

...

PHP Warning: POST Content-Length of 8978294 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

Tutorials, Wordpress | 25 June 2018

when trying to upload an import on WordPress on XAMPP local to other environment some times following errors comes :

Warning: POST Content-Length of 8978294 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

View More

...

How to create a custom PHP page in WordPress ?

Tutorials, Wordpress | 05 February 2018

Do you want to create a custom page in WordPress? You have seen that many WordPress sites have different layouts for different pages. With a custom page, you can have different layout in appearance from regular pages in WordPress. In this article, we will show you how to create a custom page in WordPress.

View More

Previous2/8Next