This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

My little contribute to Vantage theme

Resolved 8 replies generalpremium
10 years ago · Last reply by Andrew Misplon 10 years ago

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

URL: http://nivescosebelle.it

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

8
  1. Dedalo70 10 years, 10 months ago

    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">','');
    			} ?>
  2. Dedalo70 10 years, 10 months ago

    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>
  3. Dedalo70 10 years, 10 months ago

    Theme Settings->Layout->Masthead Layout-> Default Masthead

    VoilĂ  my header it is fixed

    sorry for my bad english
    Bianchi James

  4. Andrew Misplon Staff 10 years, 10 months ago

    Hi Dedalo70

    Thanks for your contribution! Is your site live? If so, can we perhaps see this in action?

  5. Dedalo70 10 years, 10 months ago

    Hi Andrew.
    Yes my site Is live in beta version, go to http://nivescosebelle.it

  6. Andrew Misplon Staff 10 years, 10 months ago

    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.

  7. Dedalo70 10 years, 10 months ago

    Thank to you! Your vantage theme is the best

  8. Andrew Misplon Staff 10 years, 10 months ago

    Thanks for your support! We really appreciate it.

    Chat soon.

    Cheers :)

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread