July 28th, 2016 by admin
Believe it or not, there is limitation on how many menu items you can add to your site. Well, it is not really WordPress limitation on menu, but rather the hosting company. I just had a clients who had over 80 menu items, yes, I know that is a lot. When she tried to add […]
July 13th, 2016 by admin
Adding this snippet to the “functions.php” of your wordpress theme will remove the HTML p tag from around images in the_content. [php] function filter_ptags_on_images($content){ return preg_replace(‘/<p>\s*(<a .*>)?\s*(<img .* \/>)\s*(<\/a>)?\s*<\/p>/iU’, ‘\1\2\3’, $content); } add_filter(‘the_content’, ‘filter_ptags_on_images’); [/php]
July 11th, 2016 by admin
See there are lots of unnecessary space between lines This is very easy to Remove unnecessary space Open the file Click CTRL + F Select “Current document” in “Find in” (You can also select the folder if you have multiple files) Search in “Source code” Tick “Use regular expression” Type “[\r\n]{2,}” (without quotes) in “Find” […]
June 10th, 2016 by admin
You need to create a web.config file in the root directory of your WordPress installation (the same directory as the .htaccess file), and add the following code in web.config: [xml] <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="wordpress" patternSyntax="Wildcard"> <match url="*"/> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/> </conditions> <action type="Rewrite" url="index.php"/> […]
June 7th, 2016 by admin
There is two way to do this job First Locate and edit your themes functions.php file. This can either be done in the admin panel by navigating to you can find Appearance -> Editor -> Click on functions.php file or by directly editing the file which you can usually find under wp-content/themes/<theme name>/functions.php [php] function […]