php - Remove Parallax background on brooklyn theme -
i have index.php file need use custom page have use of themes styles , elements navigation, footer, contact form, etc.... default header seems calling body , difficult find parts of header. have been making considerable amount of changes file in drive should kept updated until resolved.
currently have page/code working @david , advice given in question:
run php application within wordpress
(links , files removed privacy, , search engine listings removal)
there few files missing cant test template itself.
but case of replacing php code calls variable actual output (from view source) create template want.
go using default index.php (remove header/footer calls). create new template code below , link (using rewrite code previous q linked above)
there quite bit of code in header.php calls variables set db below code remove parallex classes, if not copy header file , call header-custom.php. can replace get_header('custom') call header instead. anywhere see php tag inside html element tag, replace actual output can see in view source.
<?php /** * template displaying 404 pages (not found). * * @package unitedthemes */ get_header(); ?> <div class="grid-container"> <div id="primary" class="grid-parent grid-100 tablet-grid-100 mobile-grid-100"> <div class="grid-70 prefix-15 mobile-grid-100 tablet-grid-100"> <header class="page-header fullwidth ut-header-light"> <h1 class="page-title"><span><?php _e('repairstatus'); ?></span></h1> </header> <?php require_once get_stylesheet_directory().'/repairstatus/index.php'?> </div><!-- .page-header --> </div><!-- .grid-100 mobile-grid-100 tablet-grid-100 --> </div><!-- .grid-container --> <?php get_footer(); ?>
header-custom.php contents (call using get_header('custom');
)
<!doctype html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1"> <?php ut_meta_hook(); //action hook, see inc/ut-theme-hooks.php ?> <?php if ( defined('wpseo_version') ) : ?> <!-- title --> <title><?php wp_title(); ?></title> <?php else : ?> <?php ut_meta_theme_hook(); ?> <?php endif; ?> <!-- rss & pingbacks --> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <link rel="profile" href="http://gmpg.org/xfn/11"> <!-- favicon --> <?php if( ot_get_option( 'ut_favicon' ) ) : ?> <?php /* icon info */ $favicon = ot_get_option( 'ut_favicon' ); $favicon_info = pathinfo( $favicon ); $type = null; if( isset($favicon_info['extension']) && $favicon_info['extension'] == 'png' ) { $type = 'type="image/png"'; } if( isset($favicon_info['extension']) && $favicon_info['extension'] == 'ico' ) { $type = 'type="image/x-icon"'; } if( isset($favicon_info['extension']) && $favicon_info['extension'] == 'gif' ) { $type = 'type="image/gif"'; } ?> <link rel="shortcut icon" href="<?php echo $favicon; ?>" <?php echo $type; ?> /> <link rel="icon" href="<?php echo $favicon; ?>" <?php echo $type; ?> /> <?php endif; ?> <!-- apple touch icons --> <?php if( ot_get_option( 'ut_apple_touch_icon_iphone' ) ) :?> <link rel="apple-touch-icon" href="<?php echo ot_get_option( 'ut_apple_touch_icon_iphone' ); ?>"> <?php endif; ?> <?php if( ot_get_option( 'ut_apple_touch_icon_ipad' ) ) : ?> <link rel="apple-touch-icon" sizes="72x72" href="<?php echo ot_get_option( 'ut_apple_touch_icon_ipad' ); ?>" /> <?php endif; ?> <?php if( ot_get_option( 'ut_apple_touch_icon_iphone_retina' ) ) : ?> <link rel="apple-touch-icon" sizes="114x114" href="<?php echo ot_get_option( 'ut_apple_touch_icon_iphone_retina' ); ?>" /> <?php endif; ?> <?php if( ot_get_option( 'ut_apple_touch_icon_ipad_retina' ) ) :?> <link rel="apple-touch-icon" sizes="144x144" href="<?php echo ot_get_option( 'ut_apple_touch_icon_ipad_retina' ); ?>" /> <?php endif; ?> <!--[if lt ie 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <?php wp_head(); ?> </head> <?php /* |-------------------------------------------------------------------------- | needed settings |-------------------------------------------------------------------------- */ $scrollto = ot_get_option('ut_scrollto_effect'); $scrollto = !empty( $scrollto['easing'] ) ? $scrollto['easing'] : 'linear' ; $scrollspeed = ot_get_option('ut_scrollto_speed' , '650'); $ut_site_border_body_class = ot_get_option( 'ut_site_border', 'hide' ) == 'show' ? 'ut-site-border' : ''; $ut_site_top_header_body_class = ot_get_option( 'ut_top_header', 'hide' ) == 'show' ? 'ut-has-top-header' : ''; $ut_site_border_header_class = ot_get_option( 'ut_site_border', 'hide' ) == 'show' ? 'bordered-navigation' : ''; $ut_top_header_class = ot_get_option( 'ut_top_header' , 'hide' ) == 'show' ? 'bordered-top' : ''; ?> <body id="ut-sitebody" class="error404 " data-scrolleffect="easeinoutexpo" data-scrollspeed="1300"> <a class="ut-offset-anchor" id="top" style="top:0px !important;"></a> <?php /* |-------------------------------------------------------------------------- | pre loader overlay |-------------------------------------------------------------------------- */ if( ot_get_option('ut_use_image_loader') == 'on' ) : if( ut_dynamic_conditional('ut_use_image_loader_on') ) : ?> <div class="ut-loader-overlay"></div> <?php endif; ?> <?php endif; ?> <?php ut_before_header_hook(); // action hook, see inc/ut-theme-hooks.php ?> <?php /* |-------------------------------------------------------------------------- | navigation setting |-------------------------------------------------------------------------- */ /* skin */ $ut_navigation_skin = ot_get_option('ut_navigation_skin' , 'ut-header-light'); /* visibility */ $headerstate = null; if( is_home() || is_front_page() || is_singular('portfolio') || get_post_meta( get_the_id() , 'ut_activate_page_hero' , true ) == 'on' ) { if( ot_get_option('ut_navigation_state' , 'off') == 'off' ) { $headerstate = 'ha-header-hide'; } } /* width */ $navigation_width = ot_get_option('ut_navigation_width' , 'centered'); $logo_push = ( $navigation_width == 'fullwidth' ) ? 'push-5' : ''; $navigation_pull = ( $navigation_width == 'fullwidth' ) ? 'pull-5' : ''; /* main navigation settings*/ $mainmenu = array('echo' => false, 'container' => 'nav', 'container_id' => 'navigation', 'fallback_cb' => 'ut_default_menu', 'container_class' => 'grid-80 hide-on-tablet hide-on-mobile ' . $navigation_pull , 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', 'theme_location' => 'primary', 'walker' => new ut_menu_walker() ); /* mobile navigation settings */ $mobilemenu = array('echo' => false, 'container' => 'nav', 'container_id' => 'ut-mobile-nav', 'menu_id' => 'ut-mobile-menu', 'menu_class' => 'ut-mobile-menu', 'fallback_cb' => 'ut_default_menu', 'container_class' => 'ut-mobile-menu mobile-grid-100 tablet-grid-100 hide-on-desktop', 'items_wrap' => '<div class="ut-scroll-pane"><ul id="%1$s" class="%2$s">%3$s</ul></div>', 'theme_location' => 'primary', 'walker' => new ut_menu_walker() ); /* check if current page has option tp show hero */ //$ut_activate_page_hero = get_post_meta( get_the_id() , 'ut_activate_page_hero' , true ); $ut_activate_page_hero= false // --------------------------------------------------------------------------------------------------------------------------------------------------not sure returns.... ?> <!-- commented out -----------------------------------------------------> <?php // get_template_part( 'partials/top', 'header' ); ?> <!-- header section --> <header id="header-section" class="ha-header fullwidth ut-header-light "> <?php if( $navigation_width == 'centered' ) :?> <div class="grid-container"> <?php endif; ?> <div class="ha-header-perspective"> <div class="ha-header-front"> <div class="grid-20 tablet-grid-50 mobile-grid-50 <?php echo $logo_push; ?>"> <?php if ( get_theme_mod( 'ut_site_logo' ) ) : ?> <?php $sitelogo = !is_front_page() && !is_home() && ( $ut_activate_page_hero == 'off' || empty($ut_activate_page_hero) ) ? get_theme_mod( 'ut_site_logo_alt' ) : get_theme_mod( 'ut_site_logo' ); $alternate_logo = get_theme_mod( 'ut_site_logo_alt' ) ? get_theme_mod( 'ut_site_logo_alt' ) : get_theme_mod( 'ut_site_logo' ) ;?> <div class="site-logo"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img data-altlogo="<?php echo $alternate_logo; ?>" src="<?php echo $sitelogo; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"></a> </div> <?php else : ?> <div class="site-logo"> <h1 class="logo"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> </div> <?php endif; ?> </div> <?php /* main , mobile menu cache */ if( ot_get_option('ut_use_cache' , 'off') == 'on' ) { $language_prefix = defined('icl_language_code') ? '_' . icl_language_code : ''; $main_menu = get_transient('ut_main_menu' . get_the_id() . $language_prefix ); $mobile_menu = get_transient('ut_mobile_menu' . get_the_id() . $language_prefix ); $cachetime = ot_get_option('ut_cache_ltime' , '10'); if ($main_menu === false) { $main_menu = wp_nav_menu( $mainmenu ); set_transient('ut_main_menu' . get_the_id() . $language_prefix , $main_menu, 60*$cachetime); } if ($mobile_menu === false) { $mobile_menu = wp_nav_menu( $mobilemenu ); set_transient('ut_mobile_menu' . get_the_id() . $language_prefix , $mobile_menu, 60*$cachetime); } } else { $main_menu = wp_nav_menu( $mainmenu ); $mobile_menu = wp_nav_menu( $mobilemenu ); } ?> <?php if ( has_nav_menu( 'primary' ) ) : ?> <?php echo $main_menu; ?> <div class="ut-mm-trigger tablet-grid-50 mobile-grid-50 hide-on-desktop"> <button class="ut-mm-button"></button> </div> <?php echo $mobile_menu; ?> <?php endif; ?> </div> </div><!-- close .ha-header-perspective --> <?php if( $navigation_width == 'centered') :?> </div> <?php endif; ?> </header><!-- close header --> <div class="clear"></div> <!-- commented out ---------------------> <?php// get_template_part( 'template-part', 'hero' ); ?> <!-- in case commented out--> <?php // ut_before_content_hook(); // action hook, see inc/ut-theme-hooks.php ?> <div id="main-content" class="wrap ha-waypoint" data-animate-up="ha-header-hide" data-animate-down="ha-header-small"> <a class="ut-offset-anchor" id="to-main-content"></a> <div class="main-content-background">
Comments
Post a Comment