WooCommerce - excelling eCommerce
Dispay categories descriptions (5 posts)

  1. amoric69
    Posted 2 years ago #

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

    Tank you



  2. royho
    Posted 2 years 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
    Posted 2 years ago #

    and with php ?

  4. royho
    Posted 2 years ago #

    Yes this is done with PHP.

  5. amoric69
    Posted 2 years 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 ?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic