File Editor
Directories:
.. (Back)
css
fonts
images
inc
js
languages
sections
Files:
404.php
archive-download.php
archive.php
class-tgm-plugin-activation.php
comments.php
content-archive-download.php
content-large.php
content-none.php
content-page-no-title.php
content-page.php
content-single-download.php
content-single.php
content.php
footer.php
front-page.php
functions.php
header.php
home.php
index.php
license.txt
page.php
readme.txt
rtl.css
search.php
sidebar.php
single-download.php
single.php
style.css
template-blog-large.php
template-blog.php
template-fullwidth-no-title.php
template-fullwidth.php
woocommerce.php
Create New File
Create
Edit File: header.php
<?php /** * The Header for our theme. * Displays all of the <head> section and everything up till <div id="content"> */ ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <?php zerif_top_head_trigger(); ?> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> <?php wp_head(); ?> <?php zerif_bottom_head_trigger(); ?> </head> <?php if(isset($_POST['scrollPosition'])): ?> <body <?php body_class(); ?> onLoad="window.scrollTo(0,<?php echo intval($_POST['scrollPosition']); ?>)"> <?php else: ?> <body <?php body_class(); ?> > <?php endif; zerif_top_body_trigger(); /* Preloader */ if(is_front_page() && !is_customize_preview() && get_option( 'show_on_front' ) != 'page' ): $zerif_disable_preloader = get_theme_mod('zerif_disable_preloader'); if( isset($zerif_disable_preloader) && ($zerif_disable_preloader != 1)): echo '<div class="preloader">'; echo '<div class="status"> </div>'; echo '</div>'; endif; endif; ?> <div id="mobilebgfix"> <div class="mobile-bg-fix-img-wrap"> <div class="mobile-bg-fix-img"></div> </div> <div class="mobile-bg-fix-whole-site"> <header id="home" class="header" itemscope="itemscope" itemtype="http://schema.org/WPHeader"> <div id="main-nav" class="navbar navbar-inverse bs-docs-nav" role="banner"> <div class="container"> <div class="navbar-header responsive-logo"> <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse"> <span class="sr-only"><?php _e('Toggle navigation','zerif-lite'); ?></span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <?php $zerif_logo = get_theme_mod('zerif_logo'); if(isset($zerif_logo) && $zerif_logo != ""): echo '<a href="'.esc_url( home_url( '/' ) ).'" class="navbar-brand">'; echo '<img src="'.esc_url( $zerif_logo ).'" alt="'.esc_attr( get_bloginfo('title') ).'">'; echo '</a>'; else: echo '<a href="'.esc_url( home_url( '/' ) ).'" class="navbar-brand">'; if( file_exists(get_stylesheet_directory()."/images/logo.png")): echo '<img src="'.get_stylesheet_directory_uri().'/images/logo.png" alt="'.esc_attr( get_bloginfo('title') ).'">'; else: echo '<img src="'.get_template_directory_uri().'/images/logo.png" alt="'.esc_attr( get_bloginfo('title') ).'">'; endif; echo '</a>'; endif; ?> </div> <?php zerif_primary_navigation_trigger(); ?> </div> </div> <!-- / END TOP BAR -->
Save Changes
Rename File
Rename