Support » Plugin: WooCommerce » How do I edit my category titles?

  • Resolved sketchgrowl

    (@sketchgrowl)


    I’m using WooCommerce (and a child theme) for Shoptimized.

    I’m trying to add some words before my h1 in my category page – yet I cannot figure out how to do it. I’ve looked everywhere, including in the archive-product.php file.

    This was the code I changed, but it doesn’t make a difference:

    <?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
    		<h1 class="woocommerce-products-header__title page-title">Buy Cheap <?php woocommerce_page_title(); ?> Online</h1>
    	<?php endif; ?>

    Any suggestions on how to add the keywords before and after the page title for my category pages?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Why not just use CSS:

    
    .woocommerce-products-header__title.page-title::before {
    	content: 'Buy Cheap ';
    }
    .woocommerce-products-header__title.page-title::after {
    	content: ' Online';
    }
    
    Plugin Support laceyrod

    (@laceyrod)

    Automattic Happiness Engineer

    Hi there,

    This thread has been inactive for a bit, so I’m going to mark it as Resolved now. Please feel free to open a new one if you have any further questions.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.