WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Dispay categories descriptions (5 posts)

  1. amoric69
    Member
    Posted 1 year ago #

    Hello,
    What can I dio for displaying yhe categories descriptions in the widget ?

    Tank you

    amoric69

    http://wordpress.org/extend/plugins/woocommerce/

  2. royho
    Member
    Posted 1 year ago #

    If you're referring to the standard categories widget that comes with WooCommerce plugin, I am not sure if it has that option. If it doesn't, then you would need to extend your own widget to add the description in.

    If you go to the WordPress codex, they have a detailed article on how to extend the widget class and how to build it. You just need to extend it off of the WooCommerce categories widget so you inherit all the functions from it and add your description in.

    I am sorry if this is not detailed enough as I can only provide you an idea. The rest would be up to you.

  3. amoric69
    Member
    Posted 1 year ago #

    and with php ?

  4. royho
    Member
    Posted 1 year ago #

    Yes this is done with PHP.

  5. amoric69
    Member
    Posted 1 year ago #

    so I find <?php echo category_description( $category_id ); ?>
    but with Woocommerce functions it's an another thing like and where I place it ?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic