Changing WordPress’ Autosave Frequency and Post Revisions

WordPress has a very nifty autosave feature which can be a lifesaver to anyone who uses WordPress. The downside to WordPress’ autosave, is that it creates a bunch of draft posts increasing your mySQL database size, especially if you write the post within WordPress’ post editor. If desired, it is possible to change WordPress’ autosave

Changing WordPress’ Autosave Frequency and Post Revisions Read More »

WordPress : Fixing Pagination on Custom Queries With query_posts

First off, custom queries are good for calling or excluding certain posts to a page.  Lets say we want to display 5 posts per page from category 10.  The best place to learn how to do this is the Codex.  You would probably start after reading that article like this: <?php query_posts(‘posts_per_page=5&cat=10’); ?> Now technically

WordPress : Fixing Pagination on Custom Queries With query_posts Read More »

Redirecting non-www to www with .htaccess and vice-versa

If you want to redirect all non-www requests to your site to the www version, all you need to do is add the following code to your .htaccess file: RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] This will redirect any requests to http://my-domain.com to http://www.my-domain.com. There are several benefits from doing that: It

Redirecting non-www to www with .htaccess and vice-versa Read More »

Magento 1.7.0.2 Admin Editor – “Opener is null” Issue with Inserting Images/Files in wysiwug editor shown error in browser.js

While using wysiwug editor to insert the media image , its givs an error in browser.js thus resulting not uploading the images. This can be overcome by comment the line below in browser.js on line number staring form 228 Replace the above line withe the line below After changing the above line uploading the image

Magento 1.7.0.2 Admin Editor – “Opener is null” Issue with Inserting Images/Files in wysiwug editor shown error in browser.js Read More »

Magento Remove Discount and Estimated shipping form Checkout page

To remove both Discount and Estimated shipping you need to edit checkout.xml file which is located at /app/design/frontend/base/default/layout/checkout.xml go to line no: 89 comment out the highlighted portion like this <!– <block type=”checkout/cart_coupon” name=”checkout.cart.coupon” as=”coupon” template=”checkout/cart/coupon.phtml”/> <block type=”checkout/cart_shipping” name=”checkout.cart.shipping” as=”shipping” template=”checkout/cart/shipping.phtml”/> –> you are done. If still both the blocks appear clear cache. So finally your checkout page

Magento Remove Discount and Estimated shipping form Checkout page Read More »