Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( is_front_page() ) {?>
- <div class="hero-header">
- <?php if (get_field('project_name')): ?>
- <h1><?php the_field('project_name');?></h1>
- <?php endif;?>
- <?php if (get_field('protect_hero_header_2')): ?>
- <h1><?php the_field('protect_hero_header_2');?></h1>
- <?php endif;?>
- </div>
- <?php
- } else {?>
- <div class="hero-header">
- <?php $project_logo = get_field('project_logo'); ?>
- <img src="<?php if( !empty($project_logo) ): echo $project_logo['url']; ?>" alt="<?php echo $project_logo['alt']; endif;?>" />
- </div>
- <?php } ?>
- <div class="hero-header">
- <?php if (get_field('project_name')): ?>
- <h1><?php the_field('project_name');?></h1>
- <?php endif;?>
- <?php if (get_field('protect_hero_header_2')): ?>
- <h1><?php the_field('protect_hero_header_2');?></h1>
- <?php endif;?>
- <?php if ( is_singular( 'project' ) ) : ?>
- <?php $project_logo = get_field('project_logo'); ?>
- <img src="<?php if( !empty($project_logo) ): echo $project_logo['url']; ?>" alt="<?php echo $project_logo['alt']; endif;?>" />
- <?php endif; ?>
- </div>
Add Comment
Please, Sign In to add comment