Latest posts

Add ID # to next_image_link and next_image_link

The WordPress

next_image_link

and

 next_image_link 

are two useful function to display the gallery images in the post, but the default link is un-user-friendly, for some of site, the header section is BIG, that means when ever you click the next image, you have to scroll down to see the image, and then you click the next link to view the next image, you can add the ID to each link, then the visitors can go to the image directly, that’s much better.

If you want to add

#content

to the end of the link location for each previous_image_link() and next_image_link(), you can add the following php code to the functions.php to your theme.

function add_content_hash( $link ) { 
    $link = str_replace("' title='", "#content' title='", $link);
    return $link;
}
add_filter( 'wp_get_attachment_link', 'add_content_hash' );

Transfer WordPress Image Captions to HTML5

The html5 is a new web standard, more and more websites using html5 now. The default WordPress theme twentyeleven using html5, but some of the elements still don’t use the html5 code, just like the image and captions uploaded by the users. This article will help you convert the WordPress default image caption elements to html5 code.

How to add images with captions

Many of you might already be aware of how to do this, but let’s cover the basics for those WordPress users who don’t.

To add an image caption, you must first upload an image using the WordPress media uploader. Once you’ve uploaded an image, you should see an input box labeled “Caption,” which is where you’d add your image caption, as shown in the following screenshot.

wordpress image upload

WordPress image caption

To insert the image with a caption into your post, you’d simply click the “Insert into Post” button just like you would with any other image.

The default code of the html4 for each image will display like this:

<div id="attachment_xxx" class="wp-caption aligncenter" style="width: 310px">
    <a href="image.jpg">
        <img class="size-medium wp-image-xxx" height="80" width="300" alt="" src="thumbnail.jpg" title=" ..." />
    </a>
    <p class="wp-caption-text" > Here is the image caption</p>
</div>

If you use html5, the code should be

<figure id="attachment_xxx" class="wp-caption aligncenter" style="width: 310px">
    <a href="image.jpg">
        <img class="size-medium wp-image-xxx" height="80" width="300" alt="" src="thumbnail.jpg" title=" ..." />
    </a>
    <figcaption class="wp-caption-text">Here is the image caption</figcaption>
</figure>

How to transfer the default code to html5? Here it is: open the functions.php (you can find it in the theme folder), then copy and paste the following php code to the functions.php

add_filter('img_caption_shortcode', 'html5_img_caption_shortcode', 1, 3 );
function html5_img_caption_shortcode($string, $attr, $content = null) {
    extract(shortcode_atts(array(
        'id'    => '',
        'align' => 'alignnone',
        'width' => '',
        'caption' => ''
    ), $attr)
    );
    if ( 1 > (int) $width || empty($caption) )
        return $content;
 
    $width_style= ' style="width: ' . $width . 'px"';
    if ( $id ) $id = 'id="' . esc_attr($id) . '" ';
 
    return '<figure ' . $id . 'class="wp-caption ' . esc_attr($align) . '"' . $width_style . ' >' .
        do_shortcode( $content ) .
        '<figcaption class="wp-caption-text">' . $caption . '</figcaption>'.
        '</figure>';
}

That’s it, and it is easy to use.

WooThemes Review

A review of the woothemes.com, a premium WordPress theme provider

WooThemes are one of the largest retailors of premium WordPress themes online and have a massive selection of themes for you to choose from, ranging from simple ones all the way through to themes that are targeted towards a specific niche. In fact, they currently offer 144 different themes to all users and these have been downloaded a total of 126,164 times, meaning that they can obviously be trusted to deliver exactly what you need! This WooThemes review will show you just why we hold this site in such high esteem and why you should seriously consider them when looking for your next premium WordPress theme!

WooThemes Selection

woothemes review

woothemes

As already mentioned in the introduction, WooThemes has 144 different WordPress themes for you to choose from, which means that they are one of the largest sites on the internet for this purpose. Within these themes you can find themes relating to business, portfolios, blogs and even magazines, meaning that you will never fail to find at least one theme that piques your interest. As a hugely successful site, they are constantly adding new themes to their selection as well, so ensure that you regularly drop back in to see what else they have come up with.

WooThemes Features

In the opinion of this WooThemes review, there is nothing missing from the features that WooThemes offers with all of its different themes. Most contain a stylish slider that can display either images or video, and they all also have the ability to attach a blog to the theme, even if the theme is one aimed at businesses and not the individual blogger. WooThemes are particularly well-known for their ecommerce WordPress themes and the features found in these make it easy to both list and sell your products, whether you are a retailor or an affiliate. These themes will even allow you to easily conduct your admin and produce reports, meaning that they serve more than just one purpose.

In nearly all WooThemes WordPress themes, you will find the following features as standard:

• A solid back-end with a number of different options for customization, therefore meaning your site can be completely unique.
• All themes have a blog attached, which is almost essential nowadays for SEO purposes.
• At least one type of slider is included with every theme, although many have the choice between a number of different styles.
• All themes are easily integrated with additional widgets and plugins that you download from most sources.
• This WooThemes review also thinks that the overall design of the different WooThemes themes is as good, or if not better, than all of the other sites out there.

WooThemes Support

As they are a huge site, you would expect that the support provided by WooThemes is top notch, and in this assumption you would be correct. This WooThemes review thinks that the support provided by WooThemes is second to none, encompassing support over the phone, via email and through the different tutorial videos found on their site. They even offer pre-sales support, just in case you have an important question to ask before you plunge in and make a purchase.

WooThemes Pricing

Each of the WooThemes themes comes in at a price of $70, although if you are a developer you will need to pay $150 for the Developer Package. App themes are slightly more expensive than regular themes, and they cost between $100 and $200. If you regularly purchase WordPress themes then it is possible to join the WooTheme Club and get access to all of their themes for $125, plus a monthly payment of $15. They also guarantee two new themes per month to every member of their club. However, you can use woo themes’ discount coupon code to save.

WooThemes Conclusion

In conclusion, this WooThemes review thinks that it is virtually impossible to find a site that offers so many quality WordPress themes to those looking to build a new site. With competitive pricing and fantastic support, we can thoroughly stamp our mark of approval on WooThemes and we recommend that you visit them next time you are in the market for a new WordPress theme!

Download Woothemes

The Best Amazon & Commision Junction Affiliate WordPress Theme

Everyone want to get quality lower price products, that means a site that provide the service of price compare will be hot! If you are going to start a similar site like this, you can use the new theme named Price Compare, you can start a sleek price comparison site in no time!

With this cool theme, you can use Amazon and Commision Junction to stream thousands of products directly to your site, strategically built with widgetized homepage, loads of custom widgets and awesome SEO capabilities.

price compare wordpress theme

Home page of price compare wordpress theme


Demo / Download
Price Compare WordPress theme comes with built in support for Amazon and CJ (Commission Junction). Showcasing products from those sources is easy as inputting your unique information in theme back-end. But that’s not all! The theme allows you to create unlimited number of feeds using .csv files.

Don’t like the default homepage? Change it by yourself. This is a widgetized homepage theme, in order to make managing the homepage as easy as possible you will find a completely widgetized homepage in Price Compare. Adding and removing content is as simple as drag and drop. To make the deal even sweeter main content widget area allows you to create new tabs using widgets!

If you don’t like the default layout, you can change it, with endless skin variations, you can change the layout easily. Instead of preset skins Price Compare comes with extensive back-end design options that give that extra uniqueness to every Price Compare site. Changing the font, background, or link color is only a few clicks away! Cool right?

There is no need to create a dedicated blog. Creating a blog section in this new WordPress theme is a piece of cake. Products and blog posts are completely separate so you never need to worry about mixing the two together.

The shortcode is popular in premium WordPress themes, also you can find a lot useful and easy to use Shortcodes in this WordPress theme. To make editing the content even easier Price Compare comes with 30 unique shortcodes! You can use these shortcodes in blog posts, pages and even products! Using shortcodes is as simple as inputting the correct “code” inside the description window of your post, product or page.

Demo / Download

PremiumPress Themes Coupon Code June 2012

The summer is hot, but the big discount on premiumpress.com’s WordPress themes is cool! If you are going to buy any of premium wordpress theme on premiumpress.com, you can save big in June!
We have some latest new premiumpress discount coupon code for you. If you are going to buy any of their website layouts, you can save big with our latest new coupons.

Please note: all these coupons are valid from 1st June 2012 to 30st June 2012.

——————————————————–
Theme: ShopperPress discount coupon code

Coupon Code: SHOP40

Description: 40% discount off the original price
——————————————————–

——————————————————–
Theme: DirectoryPress discount coupon code

Coupon Code: DIRECTORYTHEME

Description: $25 discount off the original price
——————————————————–

——————————————————–
Theme: ClassifiedsTheme discount coupon code

Coupon Code: CLASSIFIEDSTHEME

Description: 30% discount off the original price
——————————————————–

——————————————————–
Theme: AgencyPress, ComparisonPress, RealtorPress, ResumePress, AuctionPress, CouponPress, EmployeePress, MoviePress discount coupon code

Coupon Code: JUNEPROMO

Description: %10 discount off the original price
——————————————————–

Subscribe our site and you can get the latest new discount coupon code.