1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Anchor Drop Links for Product Categories WooCommerce

Discussion in 'Free Divi Community Forum' started by Sharon Persinger, Jan 7, 2025.

  1. Sharon Persinger

    Sharon Persinger New Member
    Pro Member

    I am designing an e-commerce site using WooCommerce. On each product category page, I need the subcategories to be organized into sections, and display the name of the subcategory at the top of each subcategory section. Then, I need drop links at the top of the page that link to each category on the page.

    I tried doing a filter, but the customer said that would not work. They want buttons at the top of each page that link to each subcategory section and like all products displayed on the page at all times.I attached a screen shot example of what I need. Here is a link, too: https://careawaycakes.com/menu/1_Birthday_Cakes

    I know I can set up DiviBuilder templates for each subcategory page and manually add the drop links and class.


    Is there an easier, faster way to do this?
     

    Attached Files:

    1. PRO MEMBER PERKS Divi Block Pro - Easy-to-use drag & drop interface to mix & match 456+ premade Divi blocks & export as json file:Learn More
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    I believe the only alternative is to use custom PHP coding to display your desired layout.

    I created a custom shortcode to display your desired layout.

    Paste the below code at your child theme functions.php:
    Code:
    Log In or Sign Up to view this code.
    And lastly, go to WP Admin > Divi > Theme Builder to create template for All product categories. And add custom body & add a text module in it with this: [divi_help_category_and_children_with_products]

    You may need to tweak some coding to fit your needs.