You are currently browsing the Tips & Tricks category

Remove Image Title Attribute

Posted on October 18, 2011 at 4:55 pm in

When you insert an image within WordPress, the core media.php script will add a title attribute to your image markup. In many cases, that’s one unwanted attribute. Many visually-impaired screen reader users run their software in non-verbose mode — which ignores all title attributes. This is precisely because most web pages are overloaded with useless…

Changing Backgrounds with body class()

Posted on October 11, 2011 at 4:56 pm in

The body_class() WordPress function attaches a list of classes to the <body> element according to what type of page is being displayed. These classes can be used — in conjunction with your theme’s stylesheet — to display different backgrounds on different pages. Let’s assume your header.php template file contains: <body <?php body_class(); ?>> And your…

Headers Already Sent

Posted on October 7, 2011 at 9:50 am in

The most common reasons for seeing this error message in your WordPress site are spaces, new lines, or invisible characters before an opening <?php tag or after a closing ?> tag in one of the site’s scripts. But, in order to fix the problem, you have to know which file is causing the problem.

WordPress SEO: Better Titles

Posted on October 3, 2011 at 9:02 am in

The content of the HTML <title></title> tag is used to: Create a title in the browser toolbar Provide a title for the page when it is bookmarked Display a title for the page in search-engine results It make sense, therefore, to take some time to craft a good title in your WordPress site. In the…

Comments are off for WordPress SEO: Better Titles »

Change eShop’s Merchant Gateway Images

Posted on September 30, 2011 at 10:13 pm in

The eShop ecommerce plugin ships with a default set of images for the various merchant gateways that can be located in wp-content\uploads\eshop_files. However, if one of these images does not suit your purposes, it’s relatively easy to change it via your theme’s functions.php file. The following example illustrates how to change the Cash icon:

WordPress Theme Development