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 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.