Woo commerce Shop - Acme Themes
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5891
    Cherie
    Member

    The page header of the shop shows the name of the product rather than shop. When I add another product it changes the header to the name of that product. How can I get it to say SHOP?

    http://www.responsetovision.com/newsite/wp-content/uploads/2016/05/Screen-Shot-2016-05-13-at-10.33.03-am.png

    Thanks

    Cherie

    #5892
    acmethemes
    Keymaster

    Hello Cherie,

    Please edit the woocommerce.php file of the theme, you will find this code in line number 14 to 16

        <header class="entry-header">
            <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
        </header><!-- .entry-header -->

    and please replace the above code with the following code.

        <header class="entry-header">
            <?php
            if ( is_shop() ) {
                $name = get_the_title( get_option( 'woocommerce_shop_page_id' ) );
                echo '<h1 class="entry-title">'.$name.'</h1>';
            }
            else{
                the_title( '<h1 class="entry-title">', '</h1>' );
            }
            ?>
        </header><!-- .entry-header -->

    If you feel any difficulty on this, please let us know.

    Note : We will be updating this in the core theme in the next version

    Best Regards,
    Acme Themes

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Woo commerce Shop’ is closed to new replies.