Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
I made a small change for fixed header
In to my child theme i have put
vantage-child/style.css
/*
Theme Name: Vantage Child
Author: SiteOrgin
Template: vantage
Version: 1.0
*/
@import url("../vantage/style.css");
.custom-fixed-header {
position: fixed;
top: 0;
width: 100%;
z-index: 3000;
}
#main .full-container {
padding-top: 120px;
}
vantage-child/header.php
vantage-child/header.php
<?php /** * The Header for our theme. * * Displays all of the <head> section and everything up till <div id="main"> * * @package vantage * @since vantage 1.0 * @license GPL 2.0 */ ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <meta http-equiv="X-UA-Compatible" content="IE=10" /> <title><?php wp_title( '|', true, 'right' ); ?></title> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <?php do_action('vantage_before_page_wrapper') ?> <div id="page-wrapper"> <?php do_action( 'vantage_before_masthead' ); ?> <?php get_template_part( 'parts/masthead', apply_filters( 'vantage_masthead_type', siteorigin_setting( 'layout_masthead' ) ) ); ?> <?php do_action( 'vantage_after_masthead' ); ?> <?php vantage_render_slider() ?> <?php do_action( 'vantage_before_main_container' ); ?> <div id="main" class="site-main"> <div class="full-container"> <?php do_action( 'vantage_main_top' ); ?> <?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<p id="breadcrumbs">',' '); } ?>vantage-child/parts/masthead.php
<?php /** * Part Name: Default Masthead */ ?> <div class="custom-fixed-header"> <header id="masthead" class="site-header" role="banner"> <div class="hgroup full-container"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home" class="logo"><?php vantage_display_logo(); ?></a> <?php if( is_active_sidebar('sidebar-header') ) : ?> <div id="header-sidebar" <?php if( siteorigin_setting('logo_no_widget_overlay') ) echo 'class="no-logo-overlay"' ?>> <?php // Display the header area sidebar, and tell mobile navigation that we can use menus in here add_filter('siteorigin_mobilenav_is_valid', '__return_true'); dynamic_sidebar( 'sidebar-header' ); remove_filter('siteorigin_mobilenav_is_valid', '__return_true'); ?> </div> <?php else : ?> <div class="support-text"> <?php do_action('vantage_support_text'); ?> </div> <?php endif; ?> </div><!-- .hgroup.full-container --> <?php get_template_part( 'parts/menu', apply_filters( 'vantage_menu_type', siteorigin_setting( 'layout_menu' ) ) ); ?> </header><!-- #masthead .site-header --> </div>Theme Settings->Layout->Masthead Layout-> Default Masthead
VoilĂ my header it is fixed
sorry for my bad english
Bianchi James
Hi Dedalo70
Thanks for your contribution! Is your site live? If so, can we perhaps see this in action?
Hi Andrew.
Yes my site Is live in beta version, go to http://nivescosebelle.it
Ahh very nice. For anyone reading, @Dedalo70 has made the entire header sticky, not just the menu sticky on scroll. The child theme changes are included above.
@Dedalo70, thanks for your share :)
All the best.
Thank to you! Your vantage theme is the best
Thanks for your support! We really appreciate it.
Chat soon.
Cheers :)