Product entry wrapper
-
Hi,
I’m wondering why the product description is placed outside the hentry wrapper:
<div id="post-<?php the_ID(); ?>" <?php post_class('entry product-content'); ?>> <?php the_post_thumbnail('product-image-large'); ?> </div><!--end .product-content.entry--> <div class="content-des"> <?php the_content(__('Read the rest of this entry »','smartshop')); ?> </div>
The ‘problem’ with this is that custom css, style rules from other plugins or even javascript that depends on the hentry class will not apply to product content.
Would the following not be more logical?
<div id="post-<?php the_ID(); ?>" <?php post_class('entry product-content'); ?>> <?php the_post_thumbnail('product-image-large'); ?> <div class="content-des"> <?php the_content(__('Read the rest of this entry »','smartshop')); ?> </div> </div><!--end .product-content.entry-->
Or even leave out the
<div class="content-des">
because it’s not used for anything special anyway…Cheers ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Product entry wrapper’ is closed to new replies.