Defer parsing of javascript to improve performance in wordpress

Nothing for introduction, hehe! A very small snippet which will help you to defer parsing all javascript files except jquery in wordpress. Here is the code: https://gist.github.com/bappi-d-great/2a67ff307db672d4566b You can add those codes in your functions.php in the theme, if you think your theme won’t be changed. Otherwise mu-plugins is the best solution. To use mu-plugins,… Continue reading Defer parsing of javascript to improve performance in wordpress

Why you shouldn’t use one click installer to install wordpress

Yes, you will fall at the mid-ocean, trust me! Well, most of the bloggers just maintain a simple blog so usually they don’t need to worry. They just need to keep a regular backup. But if you are planning to run a business site in wordpress and if that site is your everything, never ever… Continue reading Why you shouldn’t use one click installer to install wordpress

How to convert hexadecimal color value to RGB value in php

Most of the CMS provides a color picker in admin panel to user to choose a color. And almost all of the color pickers return the color code as hexadecimal mode, e.g. #4EE4D3. So, you can just get the value and set the color in css. For example: [php] body{ background: } [/php] This is… Continue reading How to convert hexadecimal color value to RGB value in php

Get current page url in php

In an application, sometimes we need to get the current page URL in php. I mean, the URL shown in the browser. Here is how you can do it. First, we will declare and use the function as the following: https://gist.github.com/bappi-d-great/bc4037a4896f0dd233e6 Hope you will like it

Published
Categorized as PHP, press, url

Reorder or rearrange buddypress menu items

Don’t like the order of BuddyPress menu items? Change it! Use the following code and organize in your way – how you want to reorder the BuddyPress menu items. https://gist.github.com/bappi-d-great/591be83f017a963659e1 You can add those codes in your functions.php in the theme, if you think your theme won’t be changed. Otherwise mu-plugins is the best solution.… Continue reading Reorder or rearrange buddypress menu items

Get All posts by tag in a network – wordpress multisite

If you want to show some selected posts as popular posts across the network, then this snippet is for you You can fetch posts by any tag that is available in your wordpress multisite network and show those to anywhere, maybe in the main site or in any subsite. If you want to show posts… Continue reading Get All posts by tag in a network – wordpress multisite

Show posts based on user preference in wordpress

This is an interesting snippet that will help you to set a preference for the users, so that they will choose their favorite categories and they will see posts from these categories only. https://gist.github.com/bappi-d-great/88302389c26a60075787 You can add those codes in your functions.php in the theme, if you think your theme won’t be changed. Otherwise mu-plugins… Continue reading Show posts based on user preference in wordpress