Home Forums WoodMart support forum Cannot locate the .php file of the products

Cannot locate the .php file of the products

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #457908

    breathclo
    Participant

    Hello,

    I am trying to locate the product page of the template through Appearance->Theme File Editor in order to add a piece of code that I want to appear in each product page. I want it to appear just below the “add to cart” button. I would like help to locate the php file in which I should add that little piece of code.

    thanks in advance

    #458043

    Artem Temos
    Keymaster

    Hello,

    You can find this file in woodmart/woocommerce/content-product-*.php the end file name depends on the product hover style.

    Kind Regards

    #458155

    breathclo
    Participant

    Hello,

    I am using “Icons & add to cart on hover” style. I go to Appearance->Theme file editor but I cannot locate such .php file.

    I have a piece of code from the Handprint tool that I want to put just below the “add to cart” button inside the product page (see photo attached). Ι want it to appear just exactly the attached photo “handprint.png”.

    thanks in advance

    Attachments:
    You must be logged in to view attached files.
    #458178

    Artem Temos
    Keymaster

    Try to edit this file which is responsible for this hover style content-product-alt.php.

    Kind Regards

    #458187

    breathclo
    Participant

    I just did that, but it adds the extra piece of code at the “Featured Products” in the main front page. Nothing happens inside the singe product page.
    I want it to appear like this url here: https://kualesa.co/products/solid-polo?variant=44693064646963

    #458568

    Artem Temos
    Keymaster

    Hello,

    If you are interested in adding extra content to the single product page we recommend you build a custom layout for the single product entirely with Elementor. You can read more about how to do this in our documentation here https://xtemos.com/docs-topic/single-product-page-builder/

    As an alternative, you can use the “After “Add to cart button”” field in Theme Settings -> Single Product -> Add to cart.

    Kind Regards

    #458961

    breathclo
    Participant

    The “”after” add to cart button” field did the job actually! Thanks a lot.

    #459082

    Artem Temos
    Keymaster

    Great, you are welcome! Feel free to contact us if you have any further questions.

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Cannot locate the .php file of the products’ is closed to new replies.