polylang fucks up the is_front_page

This commit is contained in:
Vasil Kolev 2014-10-07 16:17:11 +03:00 committed by Openfest
parent 3ad8d6db7b
commit 3d699d9852
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@
</div> </div>
</nav> </nav>
<?php <?php
if(is_front_page()){ if($wp->query_vars['pagename']=='home' || $wp->query_vars['pagename']=='home-2'){
echo '<section class="banner cf"><img src="'.get_template_directory_uri().'/img/banner.png" alt="" /></section>'; echo '<section class="banner cf"><img src="'.get_template_directory_uri().'/img/banner.png" alt="" /></section>';
} }
?> ?>