How to Remove srcset value that cause image not shown on WordPress

Have you guys able to experienced this problem, this actually happen after you activated your SSL certificate, in other words your site run on https url already. And you’re so happy because you already secured your website connection but found out that urrrrgh the images on your blog posts were broken and then viewed the codes on firebug and there’s a srcset value automatically added and the fact that you don’t have any idea why it was there. So here i found some solution on how to remove those srcset value on your image, hope this will work for you.

On your function.php file, simply add this code.

function crset_disable_srcset( $sources ) {
    return false;
add_filter( 'wp_calculate_image_srcset', 'crset_disable_srcset' ); 

Joomla Modal Pop up did not load shows a blank page


The Joomla modal window script syntax in the file /media/system/js/modal.js produces the following error when benig displayed with Firefox:

LINE 220

This is a bug in the file modal.js. It was filed already here. You can do the following to get a workaround for this:



Search for this line in /media/system/js/modal.js (Line 220):

else if (!(content !== this.content && this.content.contains(content)))

and replace it with this:

else {this.content.adopt(content);}


Search for this:


and replace it with this;



How to Fix Youtube Iframe that overlapped div or menus

I’ve been struggling this issue almost of the time when tried adding youtube iframe videos especially below the menus. This problem mostly seen on IE. You found it weird because it looks good on Firefox and Chrome but when checking to IE and urrrggghhhh, why the hell it overlapped the menus.

The solution to this issue is to have <param name="wmode" value="transparent" /> within the <object> tag. But as this is an YouTube video, and we are using iframe to embed the YouTube video, we can’t add <param name="wmode" value="transparent" /> to the code. So the perfect solution is, tried adding  ?wmode=transparent at the end of your youtube URL.


How to add a WordPress Demo Site

If you are converting an existing WordPress install then please disable all plugins and backup your database and files.

Step 1: Modify WP-Config.php

FTP to your website (for us it’s and make a backup copy of wp-config.php in case something goes wrong. We usually make a copy and name the backups wp-config.php.bkup. Feel free to do the same or use your own naming convention.

Next, download wp-config.php found in the root of your WordPress install. Open the file in your favorite source code editor and look for the line /* That’s all, stop editing! Happy blogging. */ and add an empty line just before it.

Place this code into your file:
define('WP_ALLOW_MULTISITE', true);

Your file should look like the image below.
build wordpress test site

The line of code you added into wp-config.php instructs WordPress to enable the Network Administration panel and prep the network install process.

Now, save the file and upload it back to your website.

Step 2: Enable & Configure WordPress Networks

Go to the Admin dashboard and click on Tools -> Network Setup
wordpress test site

The next screen you see needs to be filled in carefully. As I mentioned at the beginning of this tutorial, we’re going to be creating a WordPress test site on a sub-domain using sub-directories.

Take a look at the image below to see that I selected “Sub-directories” and entered values for the “Network Title” and “Admin E-mail Address.”
wordpress test site

Once you have everything filled out, click on the “install” button.

Step 3: Enabling the Network

At this point WordPress works some magic under the covers and then presents you with a screen containing instructions informing you that the next steps involve editing your .htaccess file and your wp-config.php file once again. As suggested by WordPress, it’s always best to make a backup of your files before making the edits. The image below details the next steps to enabling the network on WordPress.

wordpress test site

To be clear, the code you add to your wp-config.php file will be placed immediately following the one line of code you entered in step 1 of this process.

Once you made your changes to .htaccess and wp-config.php you will need to save the files and upload them back to your web server. Next, you will need to log back into WordPress as they kick you out when making this change. At this point you should now see that you have successfully created a WordPress test site that’s perfect for theme developers showcasing their themes or for developers to build test sites for clients.

To confirm that everything worked as planned, your dashboard should now include “My Sites” in the two areas seen below in the image below.
wordpress my sites


source via : How to Build a Test WordPress Site

How to fix JFolder::create: Infinite loop detected Joomla error when trying to install

Okay, got this Joomla error, when trying to install components to admin site

* JFolder::create: Infinite loop detected
* Warning! – Failed to move file

This error might be caused of the missed configurations or wrong path on your Path to Temp-folder and Path to Log folder in Global Configuration dashboard. So, here’s how to resolve this error.

First, navigate Site>>Global Configuration and under System tab check if the Path to Log Folder has the correct url settings, the url should be like below


Second, click on the Server tab and check the url and change it when isn’t correct like the url path below


And Save the changes that you made. Now try to install the extensions or plugin again. Hope this works.

Scroll To Top