Support

Account

Home Forums Add-ons Flexible Content Field Flex duplicate content Reply To: Flex duplicate content

  • Hi @renee

    It seems that you forgot to close the if logic. Could you please try this code:

    <?php if( get_row_layout() == 'hero_images' ) { ?>
        <header class="container-fluid photo-box" style="background: url(<?php the_sub_field('hero_image'); ?>) no-repeat center center fixed;">
            <div class="fore-image" style="background: url(<?php the_sub_field('fore_image'); ?>) no-repeat center;"></div>
        </header>
    <?php } ?>

    Hope this helps 🙂