Custom Product Details template

Home Forums General Help Custom Product Details template

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3003
    Orla
    Guest

    Hi

    What’s the best way to create a custom template for my products? I don’t see an option within the Editor screen for a product to choose an alternative template. So can I create a child template of the product custom post type?

    Basically I want to play around with the layout of the image, product details, price, add to cart button, etc. so I need to add in some extra classes so that I can move things around easily in CSS.

    Loving Dukapress btw, well done guys!

    Thanks
    Orla

    #3020
    Kelvin
    Keymaster

    The best way is to create a template within your theme’s folder called “single-duka.php”

    This will work because the plugin uses a custom post type named “duka” to display the products.

    Therefore, the “single-duka.php” template will be used to display ALL the product single pages.

    (You can base this template file on your single.php)

    #3177
    Orla
    Guest

    Hi Kelvin, thanks for the response. I only saw this now so will give it a go.

    Cheers, much appreciated 🙂
    Orla

    #3188
    Kelvin
    Keymaster

    Thank you for being a long time user of DukaPress. 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Custom Product Details template’ is closed to new replies.
© 2024 DukaPress. All rights reserved.
Design By Madoido.