Custom Video On Brand Page

I would like to have a Custom video on my category brand page:
https://cdn.livechat-static.com/api/file/v2/lc/att-old/8801096/7c627831f65a52ca92c63c2b9af3beaf/brand-video.jpg
Can you help me with this custom code?

  • Predrag Dubajic
    • Support

    Hi Saber,

    I see in the notes Patrick left that he was able to do this for you after the chat, however, the changes are made in your parent theme and this should be moved to a child theme so that the changes are not lost after theme update.

    The changes that were made are in /themes/credo/woocommerce/archive-product.php file on lines 65-73.
    So that file should be moved to child theme and original one should be placed in the parent theme.

    You can find more information about child themes here:
    https://premium.wpmudev.org/blog/create-wordpress-child-theme/

    Best regards,
    Predrag

  • Patrick Freitas
    • Staff

    Hi SABER

    Hope you are doing well.

    As my teammate told, I created the custom field for you using the Advanced Custom Field plugin, to add the video on Brands or any Woo Category you will need to edit the category, scroll to Video Category Section, and add the video iframe.

    You can see the result on the front end.

    Also, previously commented, I added the custom Code on your parent theme, I suggest you move it to a child theme to avoid the theme update replace the customization.

    Let us know if you need any further help on this.
    Best Regards
    Patrick Freitas

  • SABER
    • Flash Drive

    Hi Patrick,

    Thank you for the awesome job you did. I really appreciate it. It makes my life so much easier to add my videos now to my categories. so kudos to you. I will have to seek help on how to add the code to Child theme because i have no clue and don't want to mess up your good job.

  • Kasia Swiderska
    • Support nomad

    Hello SABER ,

    As my colleague said in this case, you would need to create a child theme and just copy the file from the parent theme /themes/credo/woocommerce/archive-product.php to a new child theme. You can use a plugin to create a child theme https://wordpress.org/plugins/child-theme-configurator/ (like this).
    You can even skip changing the original file in the parent theme because in the next update it will be done automatically.
    But it's important to move the changed file into the child theme.

    kind regards,
    Kasia

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.