• Resolved aekae

    (@aekae)


    Hello and thank you for the wonderful work you have done.

    I am trying to display a youtube player on the index pages instead of the featured image/theme video thumb. Previously I was using the code below (in content.php) to display the youtube player for a specific category but after I upgraded my theme/wp it no longer worked:

    <?php if ( in_category( ‘reviews’ ) ): ?>
    <?php get_template_part(‘inc/post-formats’); ?>
    <?php else : ?>

    https://flight303.com/category/reviews/

    please let me know if anything has changed relating to this functionality. Also I am using a child theme of hueman but since it working for normal videos and not for the “reviews” category, I figure the child theme is not the issue.

    Thank you,
    Abe

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, aekae. In Hueman 3+ changed the way to post-formats.php – wp-content/themes/hueman/parts/post-formats.php

    Try replacing this
    <?php get_template_part('inc/post-formats'); ?>

    on this
    <?php get_template_part('parts/post-formats'); ?>

    Thread Starter aekae

    (@aekae)

    Works perfectly!!

    Thank you s7ranger!!

    I see this is already resolved but, as a side note, there are other changes in the new version of content.php. If you’re using a copy of that file from the previous version in your child theme I’d recommend you copy the same file from the new version to your child theme and reapply your changes.

    Thread Starter aekae

    (@aekae)

    Thank you, I created a child theme based on the latest version of Hueman

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display youtube player instead of featured image’ is closed to new replies.