Jump to content
raitis

logo/category position

Recommended Posts

dear forum, i have two category logos as you can see here and in the attachment:http://quop.eu is it possible to get them in a row or do i need to do this in css?like this (attachment 2). here is the code of the page:

<?php/*** Homepage Features Panel*/ /**  * The Variables  *  * Setup default variables, overriding them if the "Theme Options" have been saved.  */ global $woocommerce; $settings = array(	 'thumb_w' => 100,	 'thumb_h' => 100,	 'thumb_align' => 'alignleft',	 'shop_area' => 'false',	 'shop_area_entries' => 3,	 'shop_area_title' => '',	 'shop_area_message' => '',	 'shop_area_link_text' => 'View all our products',	 );	$settings = woo_get_dynamic_values( $settings ); ?>   <section id="shop-home" class="home-section fix">		   <header class="block">		<h1><?php echo stripslashes($settings['shop_area_title'] ); ?></h1>		<p><?php echo stripslashes($settings['shop_area_message'] ); ?></p>		<a class="more" href="<?php echo get_post_type_archive_link('product'); ?>" title="<?php _e( 'View all our products', 'woothemes' ); ?>"><?php echo $settings['shop_area_link_text']; ?></a>	   </header>	  	   <ul class="recent products">	  	   <?php echo do_shortcode('[product_categories ids="140,15" columns="1"]'); ?>  	 <?php	 $number_of_products = $settings['shop_area_entries'];	 $args = array( 'post_type' => 'product', 'posts_per_page' => $number_of_products, 'meta_key' => '_featured', 'meta_value' => 'yes' );	 $first_or_last = 'first';	 $loop = new WP_Query( $args );	 $count = 0;	 while ( $loop->have_posts() ) : $loop->the_post(); $_product = &new woocommerce_product( $loop->post->ID ); $count++; ?>		  <li class="product <?php if ( $count % 3 == 0 ) { echo 'last'; } ?>">	  	   <a href="<?php echo get_permalink( $loop->post->ID ) ?>" title="<?php echo esc_attr($loop->post->post_title ? $loop->post->post_title : $loop->post->ID); ?>">	  		<div class="img-wrap">	  		 <?php woocommerce_show_product_sale_flash( $post, $_product ); ?>	  		 <?php if (has_post_thumbnail( $loop->post->ID )) echo get_the_post_thumbnail($loop->post->ID, 'shop_thumbnail'); else echo '<img src="'.$woocommerce->plugin_url().'/assets/images/placeholder.png" alt="Placeholder" width="'.$woocommerce->get_image_size('shop_catalog_image_width').'px" height="'.$woocommerce->get_image_size('shop_catalog_image_height').'px" />'; ?>	  		</div>	  	   </a>	  	   <h3><a href="<?php echo get_permalink( $loop->post->ID ) ?>" title="<?php echo esc_attr($loop->post->post_title ? $loop->post->post_title : $loop->post->ID); ?>"><?php the_title(); ?></a></h3>		<?php the_excerpt(); ?>	   <span class="price"><?php echo $_product->get_price_html(); ?></span>		<?php woocommerce_template_loop_add_to_cart( $loop->post, $_product ); ?>	   <div class="fix"></div>	  	  	  </li>		  <?php if ( $count % 3 == 0 ) { echo '<li class="fix clear"></li>'; } ?>	 <?php endwhile; ?>  	</ul><!--/ul.recent-->		  </section>		  <?php wp_reset_query(); ?>

post-110883-0-96316000-1353507613_thumb.jpg

post-110883-0-08391600-1353507681_thumb.jpg

Edited by raitis

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...