Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1070925
Move category description to top of page
Closed

Comments

  •  3
    MobileGear started the conversation

    Hello there,

    In the shop, product category descriptions are being placed under the product/category feed. I would like to move these to the top of the page. Is here any way to fix this? I've also attached a screenshot so you can exactly see what I mean.

  •  7,120
    Oliver replied

    HI!

    Remove from:

    /wp-content/themes/thegem/woocommerce/single-product/short-description.php

    <div itemprop="product-description">
       <?php the_excerpt(); ?>
    </div>

    and add this code 

    in the 

    wp-content/themes/TheGem_speed/TheGem/woocommerce/content-single-product.php

    in line 43

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •  7,120
    Oliver replied

    It's templates just copy it to the child theme.

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •  3
    MobileGear replied

    The php file you are referring to is a single product page, not the category page. Did you see the screenshot I sent?
    I also don't have a folder called 'TheGem_speed'.

  •  7,120
    Oliver replied

    HI!

    Sorry, there was mistake in URL.

    Pls. check:

    /wp-content/themes/thegem/woocommerce

    There are templates for woo, you can control position of elements there. 

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •  7,120
    Oliver replied

    You need to edit via hooks 

    /wp-content/themes/thegem/woocommerce/content-product_cat.php

    It's default template, we don't add any changes there. 

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •  3
    MobileGear replied

    The problem is solved in the file /wp-content/themes/thegem/inc/woocommerce.php

    Change these actions in rule 450 and 451:

    remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 );
    remove_action( 'woocommerce_archive_description', 'woocommerce_product_archive_description', 10 );

    to:

    add_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 );
    add_action( 'woocommerce_archive_description', 'woocommerce_product_archive_description', 10 );

    and change the actions in rule 453 and 454:

    add_action( 'woocommerce_after_shop_loop', 'woocommerce_taxonomy_archive_description', 15 );
    add_action( 'woocommerce_after_shop_loop', 'woocommerce_product_archive_description', 15 );

    to:

    remove_action( 'woocommerce_after_shop_loop', 'woocommerce_taxonomy_archive_description', 15 );
    remove_action( 'woocommerce_after_shop_loop', 'woocommerce_product_archive_description', 15 );