Viewing 6 replies - 16 through 21 (of 21 total)
  • In the end I edited the woo commerce.php file in thew theme folder and added
    woocommerce_taxonomy_archive_description();
    to it.

    <?php
    /*
    Template Name: WooCommerce
    */
    ?>
    <?php
    
    global $woocommerce;
    
    $id = get_option('woocommerce_shop_page_id');
    $shop = get_post($id);
    $sidebar = chandelier_elated_sidebar_layout();
    
    if(get_post_meta($id, 'eltd_page_background_color', true) != ''){
    	$background_color = 'background-color: '.esc_attr(get_post_meta($id, 'eltd_page_background_color', true));
    }else{
    	$background_color = '';
    }
    
    $content_style = '';
    if(get_post_meta($id, 'eltd_content-top-padding', true) != '') {
    	if(get_post_meta($id, 'eltd_content-top-padding-mobile', true) == 'yes') {
    		$content_style = 'padding-top:'.esc_attr(get_post_meta($id, 'eltd_content-top-padding', true)).'px !important';
    	} else {
    		$content_style = 'padding-top:'.esc_attr(get_post_meta($id, 'eltd_content-top-padding', true)).'px';
    	}
    }
    
    if ( get_query_var('paged') ) {
    	$paged = get_query_var('paged');
    } elseif ( get_query_var('page') ) {
    	$paged = get_query_var('page');
    } else {
    	$paged = 1;
    }
    
    get_header();
    
    get_template_part( 'title' );
    get_template_part('slider');
    
    $full_width = false;
    
    if ( chandelier_elated_options()->getOptionValue('eltd_woo_products_list_full_width') == 'yes' && !is_singular('product') ) {
    	$full_width = true;
    }
    
    if ( $full_width ) { ?>
    	<div class="eltd-full-width" <?php chandelier_elated_inline_style($background_color); ?>>
    <?php } else { ?>
    	<div class="eltd-container" <?php chandelier_elated_inline_style($background_color); ?>>
    <?php }
    		if ( $full_width ) { ?>
    			<div class="eltd-full-width-inner" <?php chandelier_elated_inline_style($content_style); ?>>
    		<?php } else { ?>
    			<div class="eltd-container-inner clearfix" <?php chandelier_elated_inline_style($content_style); ?>>
    
    		<?php }
    
    			//Woocommerce content
    			if ( ! is_singular('product') ) {
    
    				switch( $sidebar ) {
    
    					case 'sidebar-33-right': ?>
    						<div class="eltd-two-columns-66-33 grid2 eltd-woocommerce-with-sidebar clearfix">
    							<div class="eltd-column1">
    								<div class="eltd-column-inner">
    									<?php { chandelier_elated_woocommerce_content();}?>
    								</div>
    							</div>
    							<div class="eltd-column2">
    								<?php get_sidebar();?>
    							</div>
    						</div>
    					<?php
    						break;
    					case 'sidebar-25-right': ?>
    						<div class="eltd-two-columns-75-25 grid2 eltd-woocommerce-with-sidebar clearfix">
    							<div class="eltd-column1 eltd-content-left-from-sidebar">
    								<div class="eltd-column-inner">
    									<?php chandelier_elated_woocommerce_content(); ?>
    								</div>
    							</div>
    							<div class="eltd-column2">
    								<?php get_sidebar();?>
    							</div>
    						</div>
    					<?php
    						break;
    					case 'sidebar-33-left': ?>
    						<div class="eltd-two-columns-33-66 grid2 eltd-woocommerce-with-sidebar clearfix">
    							<div class="eltd-column1">
    								<?php get_sidebar();?>
    							</div>
    							<div class="eltd-column2">
    								<div class="eltd-column-inner">
    									<?php chandelier_elated_woocommerce_content(); ?>
    								</div>
    							</div>
    						</div>
    					<?php
    						break;
    					case 'sidebar-25-left': ?>
    						<div class="eltd-two-columns-25-75 grid2 eltd-woocommerce-with-sidebar clearfix">
    							<div class="eltd-column1">
    								<?php get_sidebar();?>
    							</div>
    							<div class="eltd-column2 eltd-content-right-from-sidebar">
    								<div class="ltd-column-inner">
    <?php
    woocommerce_taxonomy_archive_description();
    chandelier_elated_woocommerce_content(); ?>
    								</div>
    							</div>
    						</div>
    					<?php
    						break;
    					default:
    						chandelier_elated_woocommerce_content();
    				}
    
    			} else {
    				chandelier_elated_woocommerce_content();
    			} ?>
    
    			</div>
    	</div>
    <?php get_footer(); ?>
    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Ok, if you had a woocommerce.php that takes priority over everything, so thats the reason.

    What file holds the code for the product sorting drop down?

    I want to add the code in to display the description in there because currently the description is showing above the drop down and this messes up the layout.

    I want to display it below the dropdown that sorts the products and above the products themselves, so I need to add it to that file please?

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    There should be other ways to clear up layout issues with CSS. Link to page?

    Basically any Product category page that I have added a description to and any product tag page that had a description, so for example:

    https://cameo-boutique.com.gridhosted.co.uk/product-category/mother-of-bride/
    or
    https://cameo-boutique.com.gridhosted.co.uk/product-tag/john-charles/

    You will see the descriptions at the top of the page, but I need to move them down to show between the dropdown sort box and above the products.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    This would probably look fine if it were floated right and the “woocommerce-result-count” was not hidden.

    If you need it moved elsewhere, the template solution isn’t going to work. Hooks + custom function are needed to place it elsewhere.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Product tag description’ is closed to new replies.