Forum Replies Created

Viewing 1 replies (of 1 total)
  • There is a solution to this if you are happy to do a small bit of coding – when WooCommerce calls the get_header function, it passes the name of the page to the function. This means that the function will look in your theme’s directory for a page specific header file to use first (in this case header-shop.php) before it uses the generic header file (header.php). What this basically means is that if you copy the header.php file from your themes directory and rename it “header-shop.php”, you will have a header file that only the shop page uses. If you open it up, it will be exactly the same as the generic one you have just copied but you can add a meta description tag into it and that tag will only appear on the shop page.

    You can see an example of this meta description on my woocommerce shop page at http://kendamauk.com/kendama-shop/

    I added just before the generic wordpress header is called:

    <meta name="description" content="Buy Kendama at the UKs number one Kendama Shop" />
    <?php wp_head(); ?>

    I know this is a bit of a shonky workaround and we really shouldn’t have to resort to stuff like this, but if you just want to get it fixed and move on, this will help you!

Viewing 1 replies (of 1 total)