Topic: change so that I can choose to show video OR featured image | WP Masonry Layout

change so that I can choose to show video OR featured image

Home Forums Pro Version change so that I can choose to show video OR featured image

This topic contains 1 reply, has 2 voices, and was last updated by  Masonry Guy 1 year, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4388 Reply

    ennol

    Hello

    I have changed WP masonry to accept videos and it works like charm. If I assign a video in the custom fields it embeds that video in the masonry list. however it also shows the featured image, that may be set to the project. I would like to have an option to choose to show one or the other – depending on project. anyone that could guide me in the right direction on how to achieve this?

    thanks

    #4390 Reply

    Masonry Guy
    Keymaster

    Hi Ennol,

    For that you need to write the custom code for it. Please copy the layout your are using to wordpress theme. From there you will get new location and locate layout.php.

    In layout.php, you can check if video exists, if video exists remove hide the featured image. This shouldn’t be much tough if you have some PHP knowledge.

    Thanks

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: change so that I can choose to show video OR featured image
Your information: