Site logo

Archived topic

How to add HMTL code in the child theme

1 reply · Started by mari on July 25, 2021

Viewing posts 1–2 of 2

Hi Guys,

Where do I add HMTL code in the child theme? I want to add a background video to the hero section. Thanks

Hi there,

you don't add HTML in a child theme - well not directly, it would have to be within a PHP function that outputs the HTML.
This article explains adding a video background to a Header Element:

https://docs.generatepress.com/article/page-hero-background-video/

The HTML goes inside the Header Elements text area.
The CSS for it can go in your Child Themes styles.css

This archived topic is closed to new replies.