Category Archives: Wordpress

WordPress .htaccess fixes for Page Speed

By | Wordpress | No Comments

I recently finished a job and i am trying to get a score of 100 on Google Page Speed. So far I have fixed a lot of stuff and here are the .htaccess changes that focus on caching and gzip minification.

Header unset Pragma
FileETag None
Header unset ETag

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"

<FilesMatch "\\.(js|css|html|htm|php|xml)$">
SetOutputFilter DEFLATE

<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*

# Specify a Vary: Accept-Encoding header
<IfModule mod_headers.c>
  <FilesMatch "\.(js|css|xml|gz)$">
    Header append Vary: Accept-Encoding

Dante theme x custom post tags

By | Wordpress | No Comments

Dante theme gives you the ability to add tags to your posts but… surprisingly it won’t show up with you try to see the posts associated with that custom post type.

I looked online and found this thread and there’s a simple code that you have to add to your functions.php:

function wpse28145_add_custom_types( $query ) {
    if( is_tag() && $query->is_main_query() ) {

        // this gets all post types:
        $post_types = get_post_types();

        // alternately, you can add just specific post types using this line instead of the above:
        // $post_types = array( 'post', 'your_custom_type' );

        $query->set( 'post_type', $post_types );
add_filter( 'pre_get_posts', 'wpse28145_add_custom_types' );

Dante Theme x TinyMCE issue

By | Wordpress | No Comments

I’ve been working on this project for a coulpe of weeks using the Dante theme and suddenly the page builder stopped working. I tried to activate it inside the post editing page and all I got was a message like Loading…, I checked the console and there was a TinyMCE warning and when i changed i received an error that it couldn’t save.

I then went to Google to try to find people having the same problem and all I found was a thread on their support but I couldn’t access because there was a problem with my client’s purchase code so we lost a couple of days trying to get access. Once we were in I found a few other threads and no solution from them. There was only one guy that found out the problem and I am sharing here because it would be easier to find and access.

You probably get this error because, like me, you entered text mode and then tried to activate page builder. You simply have to go to Visual Mode and then activate page builder!

Text Mode > Visual Mode > Page Builder

Not sure if this was related to a plugin, I saw some people saying it was ACF, but either way… Only activate Page Builder when in Visual Mode.

15 Things You Must Do When Changing WordPress Themes

By | Wordpress | No Comments

When you revisit some WordPress-driven sites, you may note a change in the feel or appearance of the site since your last visit. This change has been made by altering the WordPress theme of the site. The theme change may result in the disappearance of all your widgets. WordPress makes it very simple to change your blog’s theme design completely. Before you change the design, of your blog or site, you need to take some critical steps so that the change works smoothly.

The best thing about WordPress is that there are thousands of themes for customizing your blog. WordPress offers great flexibility. New themes are being created daily with many highly customizable free WordPress themes made available. The theme is actually just like a skin for the weblog. The overall look and presentation is also changed. The theme makes changes to the way you display the site but does not make changes to the basic software of the site.

Things You Must Do When Changing WordPress Themes

When you change themes, sometimes the new theme is not able to display the widgets well. This is not such a big problem in the case of standard widgets, such as Archives and Pages. But, you might have painstakingly created several customized scripts and hand written codes having hand-entered parameters. How can you prevent such a disaster from happening while changing your WordPress theme? You need to take care of some aspects while changing the theme to avoid this problem.


Sometimes, the sidebar gets overwritten. Every so often, people make changes to the sidebars on WordPress by adding some text, links, and widgets. In cases using WordPress themes that are widget enabled, there is no problem regarding sidebars getting overwritten. However, in cases where you have made some manual changes, you may have to do them again. It is suggested you save the codes from the sidebar. You can do this by copying and pasting it safely somewhere. When switching the theme, you can edit sidebar files and then reapply the changes.


Many users make use of Google Analytics, common stat tracking tools which function with the help of code snippets in the footer or in the header. Annoyingly, when you change WordPress themes, both the header and the footer will get overwritten. Hence, you need to reapply the code snippets. If you forget to do this, the tracking of the site may not be done accurately and you will not be able to collect any data on visitors to your site. Check out whether the tracking tools are functional after switching themes.


When changing themes, it is likely that you may not need all the plugins that you used for the previous theme. Some of the plugins might also not be suitable for the new theme and others might just be redundant. For instance, you might have used the optimal title plugin, which offers functionality of putting the title of the post in front of the name of the blog in the page title. This plugin is effective for increased SEO. But, suppose you change to a new theme that already offers this functionality, due to a changed code structure? You no longer need this plugin.

If you are making use of a plugin for making payments through the PayPal gateway, when you change themes, it is possible to completely eliminate this plugin. The new theme might already have PayPal integrated and does not require any plugin for making payments. Clean up all the plugins you don’t need and delete them.

Removing irrelevant plugins can also help in improving the security of your site. Removing these also helps the speed of downloading the pages of the blog.


If you have not edited the template files, the plugin should work effectively. However, some plugins require making changes to the template file to work properly. For instance, the Related Entries plugin needs an addition of a code snippet, albeit small, in the WordPress file. In this case, it would be better to verify whether the plugin works. Again, it is also possible that some plugins display strangely in the new theme because of the changed CSS code found in the style sheet. You might have to make changes to the CSS as well.

If the plugins don’t work well in the new theme, you might also need to update the plugin. You can contact the author of the plugin. Alternatively, if you know a bit of CSS or HTML code, you can make changes to the plugin file.


Many blogs or sites run advertising, such as Google AdSense. They usually blend these ads to suit the color and design of the blog with its previous theme. When you make changes in the theme, you may have to make changes to the colors of the links. This means that the advertisements in their old color and design will not blend well with the new theme. If you are using AdSense Deluxe, it is fairly simple to make changes to the colors in WordPress. In the case of Text-Link-Ads too, you can make the changes with WordPress.

If you have been using a plugin for managing the ads, you need to replace the code of Adsense or other advertising networks manually in the new theme.


Every blog owner knows the importance of RSS Feed Subscriptions. Make sure that it’s working after you switch themes. You could do this by yourself subscribing to the site. Subscribe using the FeedBurner link using just the URL of the blog alone. What should naturally happen is that the RSS reader should be able to find the feeds that are available. Make sure that it is pulling the right feeds. Though Google has shut down their Google Reader, there are other RSS aggregation services out there.


It is important to check out all the features and see them in action. These include: searching, archives and also pages and categories. Sometimes, you might encounter some issues, due to a wrong format or some other problem. Sometimes, an excerpt from a post also could be missing. You’ll need to change this.


It is not enough to check the blog or site on a single browser. Make the test on multiple browsers. You will need to check it on Firefox, Internet Explorer, Chrome and Safari.


Don’t make any sudden and radical changes to the WordPress theme. Take it slowly, one step at a time. Make minor adjustments and check them out before you test and see how they work. Try to optimize the blog when you change the theme. Replace any unwanted php codes and any other static URLs. This could be in the form of a homepage link or an RSS URL. Remove unnecessary JavaScripts and any other unused material.

You may also want to look into security loopholes. There are many WordPress theme designers who make use of codes in case of footer links, so that the users cannot remove the sponsor’s link. Sometimes, it is possible that some malicious script can also be encoded. It could be really disastrous for your site. Hence, ensure that there is no malicious code in your new theme.

In addition, if there are any unnecessary codes present in the header, you can remove these. Check out the listings of your pages. The display of the pages might differ in various themes. If you had excluded any page in the previous theme header, you will have to do the same thing with the new theme.


After making changes to the theme, you might need to inform your users and visitors regarding the changes in the design of the blog. Ask them for their feedback. Different users have different types of setups, different browsers, screen sizes, and resolutions. They can give you an idea about any issues for correction at your end. Also, ask the RSS readers to check on the site and give you their feedback.


You will have to manually create a backup for widgets. Go to the backend of WordPress and access the Widgets settings. It’s an old school method. Unfortunately, there’s no alternative quick fix. You will have to begin copying and pasting codes from every Widget. Paste them into a text document.


Create a backup for everything on the blog: the posts, the pictures, and the database. Keep the backup on your hard drive. While making a backup, you need to have a complete database backup and a backup of all the folders on the site which are under the WordPress installation directory. You will also need to take a screen shot of plugins that are active and paste the codes of widgets in a text file. Paste header and footer scripts as well.

Have a backup for the Custom CSS, if you need to apply them to the new theme. These could be in the form of social bookmark styles and archives. You must make note of all critical wp-options. This will protect you against anything that might go wrong with the new theme. Note the values of fields, namely: the template, current theme, and the stylesheet. If the new theme fails to render the blog accurately, you can fall back on your old theme by restoring the above noted options.


It is crucial to note whether the links are working—especially, the About Me links and Contact links. These are very important for your blog. They are the major sources of contacting the author of the blog. There is a default About page in most themes. Ensure that you have linked to the right pages.


If you have any unwanted links in the sidebar, remove them. If you have any unnecessary widgets as well, you can remove them from the side bar. It is also important to get rid of any footer links that are encrypted. You don’t need to be an expert programmer to do this.


When selecting a new theme, select one that is appropriate. The new theme might not match the blog niche. Selecting a new theme can be quite tough at times. Bloggers are usually so enraptured with the features on the current theme that they want everything present in it and a lot more. Check out the XHTML compliance and whether it is validated. Run the demo of the theme URL in some validation service, such as W3C Markup Validation Service. If there are several validation errors, it would be better not to choose that theme.

Make a size check as well. Use the Save option in the browser and check out the size of the file. This should include the sub directories as well. It is suggested that you don’t pick a theme that is more than 150KB size in itself, without adding images, thumbnails, and ads. You may also want to look into the performance of the new theme before you install it.

One easy way of checking this out and seeing whether it loads quickly is to use some performance tools. You can get a rough idea for checking the site performance with the new theme. You will also have to verify other basic requirements, such as widget support and some after sales support.


WordPress is universally acknowledged as one of the best Content Management Systems (CMS). It is very simple to use. Even people with little technical background can use it. WordPress allows you to do amazing things with your site even if you have little knowledge of CSS or HTML. It is a popular platform for web developers and for bloggers as you can set up the site or blog in minutes by choosing and installing WordPress themes along with Plugins.

You don’t need a Webmaster for modification of the style or design of the blog. Yet, many developers ignore some basic steps while making changes to the design and style of the site with a new theme.

Sometimes, you might design the blog or site and might not be too happy with the results. You may get tired of the design and would like to change the WordPress theme. When you change the theme of the blog, you need to keep in mind that the changes you make should not in any way interfere with the functionalities of the blog.

You need to do some backup and other modifications when changing themes. Make sure that everything is functioning well. Apart from these tips, you may also need to become familiar with the new settings and the options provided, so that you don’t miss out on any important elements and features. Try keeping a change log to document the customization of the site. Develop the habit of taking screenshots of any changes you make to the site. This will make upgrading easier.

Take screenshots of the side bar and other customized settings in the blog before making theme changes. Other things to take care of while making modifications to your WordPress themes are Validation before you select a new theme.

It would also be a good idea to select a theme that is Widget Ready. You can select themes that are Widget ready by activating the theme and seeing whether there is a Widgets subpanel beside the Themes subpanel.

By following these steps, you can be assured of a smooth transition to the new theme for both yourself and your site visitors.

source: One Xtra Pixel

Why Dedicated WordPress Hosting Makes Good Sense

By | Wordpress | No Comments

There are so many options available to you when it comes to web hosting for your or your company’s site. Two of the most common and popular ones are shared and dedicated servers. A shared server hosts a number of different websites on one server, whereas a dedicated server hosts your site and no other. It’s all yours.

A shared server is cheaper, but that makes sense, since you’re sharing the cost (and resources, unfortunately) with other websites. And since you have no control over who your “neighbors” are, your site may end up sharing an IP address with unsavory sites that may end up dinging your business reputation.

A dedicated server, on the other hand, is all about you. You know who’s on the server, and there are no surprises. Granted, it costs more, but when it comes to hosting, you get what you pay for. So what are the advantages of dedicated WordPress hosting? Read on…


9 Leading Options for Managed WordPress Hosting

There is a plethora of dedicated WordPress hosting sites, ready to handle your personal or professional hosting needs. Among the more popular sites out there are: WPEngine,, CloudyPress, KahunaHost, ZippyKid, BlueHost, JustHost, and HostGator. This list isn’t exhaustive; there’s more where that came from!

Data Safety

WordPress Security: How to Secure WordPress Thoroughly

When it comes to data worries, the two biggest are the data’s integrity and its vulnerability. In other words, backing up your files and keeping them safe from unauthorized access. Dedicated WordPress hosting sites, such as ManageWP, offer encryption and high security standards, as well as backup services. So, right of the bat, two of the biggest concerns get addressed with dedicated hosting. The peace of mind factor of this alone makes it worth the price of admission. And the beauty of this is, it’s not on your shoulders. You entrust these two crucial tasks to the professionals, after all you shouldn’t have to worry about how stuff like IPv6 security will affect your site, let them take care of you.

Ease Of Use

Essential WordPress Plugins to Kickstart Your Blog

Not everyone is a computer whiz or turbogeek. Many people favor the plug and play approach, and that’s totally reasonable; no one is here to judge! Dedicated hosting provides ease of upgrades, add-ons, and user interfaces, things which may make computer enthusiasts drool, but make the average site owner just stare blankly. Some hosting sites, such as, offer automatic upgrades, pre-installed plug-ins, and rapid setup.

The dedicated hosts are also intimately familiar with WordPress and its inner workigns, so you get their expertise working for you. This means you derive maximum benefit from your host site.

Also, you have no fears of compatibility. Since your dedicated host works with WordPress, then you can be assured that WordPress runs smoothly on your system, with no nasty compatibility surprises.


Self-Hosted WordPress Websites: A Few SEO Do’s and Don’ts

Ah, Search Engine Optimization; the big buzzword for today’s e-commerce world. SEO is crucial for making sure your business’ site is turning up prominently in searches, which in turn means more page views, which hopefully translates into more sales. Some hosting sites offer SEO analysis and Google analytics, rather than you having to invest in separate SEO packages. There’s a lot to Search Engine Optimization, and entrusting it to a dedicated hosting site removes what can be a complex and baffling task.


How To Resell Web Hosting

In all fairness, it’s only right to explore the disadvantages of dedicated WordPress hosting. It’s already been mentioned that dedicated hosting is more expensive, but that’s not all. Sites that offer dedicated WordPress hosting also means that it’s exclusively WordPress. If you ever want to try another content platform, you’re going to have to pull up roots and go to a different host.

Also, while your dedicated host is all great guns when it comes to WordPress support, if you’re experiencing issues with any other aspects of your site, you may be out of luck. Check how far your host’s support goes.

But At The End Of The Day..

The Only Web Hosting Guide You Will Ever Need – For Perfect Speed, Price, and Support

The advantages of dedicated WordPress hosting outweigh those few disadvantages. Look at it this way: if you want a gourmet meal, you can go out, buy all of the ingredients, read up on how to do it, and then go for it and hope for the best. Or, you can spend more money and go to a gourmet restaurant and have a professional take care of everything, including clean-up.

Bear in mind, different hosts offer different benefits. Shop around and find the one that offers you the best services for your needs and budget.


from: Andy Sowards