Custom Single product page template - by jobo9967

This topic has 4 replies, 2 voices, and was last updated 6 years, 6 months ago ago by Rose Tyler

  • Avatar: jobo9967
    jobo9967
    Participant
    June 25, 2018 at 22:20

    Can I clone Single product page template, customise it and use on certain product pages?
    If so how can I do it?
    Which file should be cloned etc
    Thanks

    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 26, 2018 at 09:21

    Hello,

    Our theme has a few layouts for single product pages and some of them have own files for that, such as http://prntscr.com/jzekqi option requires xstore/woocommerce/single-product-content-booking.php file,
    http://prntscr.com/jzel30 for ->
    xstore/woocommerce/single-product-content-center.php
    http://prntscr.com/jzelio requires ->
    xstore/woocommerce/single-product-content-fixed.php

    if you want to customize any of these templates go ahead via copying the files and make changes in them from child-theme

    if you are using any other layout and want to make some changes in it then copy
    xstore/woocommerce/single-product-content.php (the common content here) and xstore/woocommerce/content-single-product.php (other elements here)

    Also, you have to apply some template for some products and not for all then make such condition
    http://prntscr.com/jzerao (default content-single-product.php)

    there are these types of layout:
    small
    default
    xsmall
    large
    fixed
    center
    wide
    right
    booking

    here (http://prntscr.com/jzenl6) takes the layout for single product

    Regards

    Avatar: jobo9967
    jobo9967
    Participant
    June 27, 2018 at 07:55

    Appreciate your help

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 27, 2018 at 08:12

    Hello,

    You’re welcome!

    Regards

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.