Created
February 20, 2020 09:10
-
-
Save onuproy/22494aedcfa7b6202a1c55bd0556b7e2 to your computer and use it in GitHub Desktop.
Custom Front Page Templates WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( is_front_page() ) : | |
get_header( 'front' ); | |
else : | |
get_header(); | |
endif; | |
<?php if(is_front_page()){ ?> | |
<div class="logo"> | |
<a href="<?php echo get_home_url();?>"><img src="<?php echo $coder['logouploader']['url']; ?>" alt="Logo"></a> | |
</div> | |
<?php } | |
else { ?> | |
<div class="logo"> | |
<a href="<?php echo get_home_url();?>"><img src="<?php echo $coder['logouploader_2']['url']; ?>" alt="Logo"></a> | |
</div> | |
<?php }?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you so much!