Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #877728
    ourmala
    Participant

    Hello,

    When I post a video post to the grid it will not let us click through to the post, instead playing the video directly within the grid.

    Is there a way to set a video as the ‘featured image’ for the grid that clicks through to the post, but only have it play once someone is within the post page itself?

    Currently have loaded screenshots of the video as the ‘featured image’, which as you can see loads on the post page also and leaves us with two lots of media when it would be preferable to have just the video itself.

    News, essential grid page – http://www.ourmala.com/news/
    Post with video – http://www.ourmala.com/something-inside-so-strong/ or http://www.ourmala.com/friday-message-this-is-what-post-yoga-looks-like/

    Thank you!

    #878309
    Jack
    Keymaster

    Hi there @ourmala,

    Thanks for writing in!

    Could you post some wp-admin login details in a private reply please, so we can test this live on your site, as I do see the double media issue with if you set a featured image.

    We’re here to help. 🙂

    Thanks!

    #879297
    ourmala
    Participant
    This reply has been marked as private.
    #879927
    Jack
    Keymaster

    Hi there @ourmala,

    Thanks for providing the details, after further checks I do indeed see the same issue, it appears Essential Grid doesn’t allow the linking of a video to a post, without having the image set as the main item in the Grid.

    One way around this would be adding all those posts to a specific category, (the video based ones), then we can use the category class and the .entry-featured class with a display none to hide the featured image on the post itself, if that would work for you?

    Thanks!

    #889136
    ourmala
    Participant

    Yes please. Whatever you think works best! Would you like to go ahead and make the changes or let me know what to do. Happy to go with the category ‘video’ for video based posts if that works?

    #889887
    Jack
    Keymaster

    Hi there @ourmala,

    Thanks for writing back!

    Ok here are the steps to take and then we can provide some custom code:

    1: Keep the settings as you currently have them with the featured image

    2: Make sure all the posts that are videos all share at least one category, for example “videos”.

    3: Then add the following CSS under appearance > custom > custom > CSS:

    .category-videos .entry-featured {
    	display: none !important;
    }

    That should hide the featured image on those video posts on click through. 🙂

    Let us know if you have any problems, we’re here to help.

    Thanks!

    #897092
    ourmala
    Participant

    Thank you Jack. I did as you mentioned but it still seems to load both. Where to from here?

    http://www.ourmala.com/something-inside-so-strong/
    http://www.ourmala.com/friday-message-this-is-what-post-yoga-looks-like/

    #897979
    Rue Nel
    Moderator

    Hello There,

    Please update the css code and use this instead:

    .category-video .entry-featured {
    	display: none !important;
    }

    Please let us know if this works out for you.

    #901222
    ourmala
    Participant

    It worked! Thank you so much.

    #902194
    Jack
    Keymaster

    You’re most welcome! 🙂

  • <script> jQuery(function($){ $("#no-reply-877728 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>