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 #1425264
Woocommerce category and subcategory description
Closed

Comments

  • DraganGasic started the conversation

    Hello,


    I noticed that description of product categories and subcategories is below the product list. Is it chance to move descripiton above? I think is more helpful to have description above the products than below.

    Thank you,

    Dragan

  •  7,092
    Oliver replied

    Hi, pls. add this code to the functions.php of the child theme:

    function thegem_child_init_new() {
        remove_action( 'woocommerce_after_shop_loop', 'woocommerce_taxonomy_archive_description', 15 );
        add_action( 'woocommerce_before_shop_loop', 'woocommerce_taxonomy_archive_description', 1 );
    }
    add_action('init', 'thegem_child_init_new');

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

    Regards, Oliver

  • DraganGasic replied

    Hi Gregor,

    thank you for fast help but it seems that description jumped to "page title" section as you can see here.

    http://workandtravel-usa.cz/kategorie-produktu/led-zdroje/led-zdroje-12v/

    I want to put shortcode of best selling product, some photos and text, it will be better to have description above the products, not in page title.


    Is it possible?

    Thank you

  •  7,092
    Oliver replied

    Hi, sorry, it's not possible to put shortcodes in the header

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

    Regards, Oliver

  • DraganGasic replied

    Ok I see, but is it possible to have description above the products? Not in the header, I wont shortcode in the header.


    Thank you,

    Dragan

  •  7,092
    Oliver replied

    Hi, you can add your function there code example:

    function thegem_child_init_new() {
    add_action( 'woocommerce_before_shop_loop', 'woocommerce_add_custom_code, 1 );
    }
    function woocommerce_add_custom_code() {
        echo 'test';
    }

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

    Regards, Oliver

  • DraganGasic replied

    Hi,

    that code works:

    function thegem_child_init_new() {    remove_action( 'woocommerce_after_shop_loop', 'woocommerce_taxonomy_archive_description', 15 );    add_action( 'woocommerce_before_shop_loop', 'woocommerce_taxonomy_archive_description', 1 );
    }
    add_action('init', 'thegem_child_init_new');

    It moves description above the product list.

    Thank you,

    Dragan