Need help with code edits
-
The Issue:
I’m having a hard time with galleries and pages for said galleries. If I set the gallery module up on a page, it won’t display the featured image for each gallery listed. I don’t see a way to insert an image between the listed galleries either. If I set a featured image (which will show up), the featured image is shown on the gallery page at the top. I don’t want the featured image to show up here.The suspected fix:
If I delete the code below from the Theme Header section of the code, will this fix my problem? Is there a way to fix the issue without editing code?/* * If a regular post or page, and not the front page, show the featured image. * Using get_queried_object_id() here since the $post global may not be set before a call to the_post(). */ if ( ( is_single() || ( is_page() && ! twentyseventeen_is_frontpage() ) ) && has_post_thumbnail( get_queried_object_id() ) ) : echo '<div class="single-featured-image-header">'; echo get_the_post_thumbnail( get_queried_object_id(), 'twentyseventeen-featured-image' ); echo '</div><!-- .single-featured-image-header -->'; endif; ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Need help with code edits’ is closed to new replies.
