• I’m using the Motif theme for a friends charity and wondered if there’s an easy way to have a featured video in the front page header instead of an image?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Depends how you define easy. ?? A video isn’t something built into the theme, but if you’re comfortable experimenting with editing some theme files, you could certainly try creating a child theme to add one.

    Making a child theme means your changes won’t be overwritten when you update the theme. If you’re new to child themes, you can explore these guides:

    https://codex.www.ads-software.com/Child_Themes
    https://op111.net/53/
    https://vimeo.com/39023468

    /page-templates/front-page.php is the template you’ll want to look at modifying in your child theme.

    Thread Starter lionfishmedia

    (@lionfishmedia)

    I’m happy editing the theme as trying the plugin ‘Featured Video’ which works the same way as the native Featured Image hasn’t worked for the home page, although it is very cool for the rest of the site.

    Any tips on what to change for the front-page?

    Moderator Kathryn Presner

    (@zoonini)

    This line in front-page.php is what outputs the featured image, so you can try experimenting with that, replacing it with your video code, for example.

    <?php the_post_thumbnail( 'motif-hero-thumbnail' ); ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Featured video instead of image?’ is closed to new replies.