WordPress.org

Ready to get started?Download WordPress

Forums

Virtue
Extend title border on "shop" page, move sidebar widget down (4 posts)

  1. 81701580
    Member
    Posted 9 months ago #

    Hello,

    I would like to extend the title border on the "shop" page to match my other pages on my website. To do so I would need to extend the title border and also move the sidebar widget down. I would like to do this to the single product category pages as well. Can you please provide the .css code to do so? I am using the Virtue theme by Kadence.

    Thanks!

    My website for reference:

    http://www.sweetheartlashes.com/shop/

  2. 81701580
    Member
    Posted 9 months ago #

    I would also like to remove "Showing all ...results" under the title for each product category page. How would I got about doing so? Thanks in advance!

  3. Kadence Themes
    Member
    Theme Author

    Posted 9 months ago #

    Hey It's not an thing you can do with css, You would have to edit the woocommerce template. Open woocommerce/archive-product.php

    From lines 18-27 remove all this:

    <?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
    
    			<div class="page-header">
    
    				<?php woocommerce_catalog_ordering(); ?>
    				<h1 class="page-title"><?php woocommerce_page_title(); ?></h1>
    				<?php woocommerce_result_count(); ?>
    				</div>
    
    		<?php endif; ?>

    Then add this to the beginning of line 14

    <?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
    			<div id="pageheader" class="titleclass">
    		        <div class="container">
    			<div class="page-header">
    
    				<?php woocommerce_catalog_ordering(); ?>
    				<h1 class="page-title"><?php woocommerce_page_title(); ?></h1>
    				<?php woocommerce_result_count(); ?>
    				</div>
                 </div><!--container-->
    	</div><!--titleclass-->
    
    		<?php endif; ?>

    You can remove : <?php woocommerce_result_count(); ?> if you don't want it.

    Kadence Themes

  4. Kadence Themes
    Member
    Theme Author

    Posted 9 months ago #

    I recommend you do this in a child theme, just create a woocommerce folder and copy archive-product.php into it.

    Kadence Themes

Reply

You must log in to post.

About this Theme

About this Topic