Okay
  Public Ticket #2573103
Is it possible to have a video hero above a 'portfolio-mixed' grid
Closed

Comments

  • Xavier started the conversation

    I realize this would be custom work, and I'd have to hardlink the videos as the 'portfolio mixed' template doesn't have fields for webm and mp4, but I wondered if you could tell me which bit of code to copy where, if possible...

    Thanks for all the help!

  •   Xavier replied privately
  •  1,802
    Support replied

    Hello Xavier,

    how about adding the video as embedded video in the content above the grid (you can add class full to the video block or container - which will stretch it full width)

    The portfolio mixed template allows you adding the content before or after thumbnails grid

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Xavier replied

    Thanks for your reply. I realize now I was being unclear. I meant a video hero in the sense of a hero section with a video background, like the video heros featured in the portfolio pages. It would definitely be custom code, I think. I wondered if someone could let me know what chunk of code of copy over in the template backend.

  •  1,802
    Support replied

    Hello Xavier

    If you want to make it configurable you need to add new options for them in /include/metabox-config.php in the page hero section then you need to assign them in /include/hero-properties.php 

    the last branch of the if following the example of $post_type == 'munio_portfolio'

    Of course you can also do a brute change by simply pasting the html code of the video hero section in portfolio-mixed-page.php instead of 

    <?php

    // display hero section
    get_template_part('sections/hero_section'); 

    ?>

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy