diff --git a/functions.php b/functions.php index 4fac8aa..c6af45e 100644 --- a/functions.php +++ b/functions.php @@ -218,6 +218,10 @@ function transportation_posttype() { ); } +function openfest_home_page() { + return !($wp->query_vars['pagename']=='home' || $wp->query_vars['pagename']=='home-2'); +} + add_action( 'init', 'transportation_posttype' ); pll_register_string('Schedule','Програма'); pll_register_string('Others','Други'); diff --git a/header.php b/header.php index 030fa7b..d17135b 100644 --- a/header.php +++ b/header.php @@ -31,7 +31,7 @@ query_vars['pagename']=='home' || $wp->query_vars['pagename']=='home-2'){ + if(openfest_home_page()){ echo ''; } ?> diff --git a/page.php b/page.php index 52f3a86..41a57d1 100644 --- a/page.php +++ b/page.php @@ -8,9 +8,18 @@ if ( $pagename == 'about' || wp_nav_menu( array( 'theme_location' => 'subnav-menu', 'container_class' => 'content subnav cf' ) ); echo '
'; } + +if (openfest_home_page()) { + $coldiv1=''; + $coldiv2=''; +} else { + $coldiv1='