Home Forums WoodMart support forum Duplicate files

Duplicate files

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #402767

    cesaicumpar
    Participant

    Hello! I noticed in the theme file editor that there is a duplicate for each folder. For example there is headerBanner.js and headerBanner.min.js.

    My question is – if I want to add code, where do I add it? To the original file/to the minified file/to both?

    #402788

    Hello,

    If you want to add a custom JS, you need to add the code to the Theme Settings > Custom JS. You would rather not to add anything to the theme files.

    If you have any questions please feel free to contact us.

    Best Regards

    #402789

    cesaicumpar
    Participant

    I would like to add some code right after the main menu, before the content starts – https://postimg.cc/q6RbzPcj

    I was told that I had to modify the header.php file. How do I do it using Theme Settings > Custom JS?

    #402816

    Hello,

    You can add the content to the Product category page using HTML blocks: https://xtemos.com/docs-topic/html-blocks-usage/

    You can add the HTML block to the category description: https://xtemos.com/docs-topic/product-category-menu/

    If you have any questions please feel free to contact us.

    Best Regards

    #403061

    cesaicumpar
    Participant

    I want to add the code to the whole website, not only on the product category page. That is why I want to modify the header.php file

    #403113

    Hello,

    You can copy header.php into the child theme and edit it. You will need to activate the child theme.

    If you have any questions please feel free to contact us.

    Best Regards

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