Okay
  Public Ticket #1724618
Order of categories on shop front
Closed

Comments

  •  1
    Laura Fischer started the conversation

    Hi,

    I'm helping a client switch to Uku from a previous theme. Is there a way to edit which product categories are displayed on the shop front page instead of it being in alphabetical order?

    Thanks!

  •  953
    Marc replied

    Hi Laura,

    unfortunately it's currently not possible to change the order in a simple way, but you only need some theme code changes in order to adjust it. I strongly recommend using a child theme for direct code adjustments. A prepared child theme folder is linked in the Uku documentation.

    If you're willing to touch the code, I can provide some hints where you need to implement those adjustments.

    Please understand that we cannot provide support for individual customizations.

    Best,
    Marc

  • Wu replied

    Dear Marc

    I have the same problem,Would you mind give me the code/hints to finished this job?

    Thanks a lo :)

  •  953
    Marc replied

    Hi,

    please create a subdirectory called "page-templates" in your child theme directory and place a copy of Uku's page-templates/shop-front.php file there. Now you can adjust the WooCommerce category shortcode (should be in line 27). Here you can find more about the shortcode and how to select which categories should be displayed: https://docs.woocommerce.com/document/woocommerce-shortcodes/#product-category-shortcodes

    Best,
    Marc

  • Wu replied

    it's perfectly show my order!

    Thanks for your help!