Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jan 2018
    Posts
    8
    Member #
    58123

    Installed child theme

    Hi All,

    I am totally new to wordpress. I installed a child theme, and I would like to customize my header because currently the header does not go all the way up to the top of the page.

    header.jpg

    I pasted the header code from the child theme below. Do you know how I could update this to get rid of that empty space in the header?

    I think the reason the space is there is because it's trying to put in a logo for the site. I think if I get rid of the logo code, that space will go away. Perhaps the problem isn't with the header at all, and I need to figure out how to delete the logo code? These are the files listed for the child theme. Maybe I just need to delete one of these, or deactivate it?

    404.php
    archive.php
    comments.php
    content-page.php
    content-single.php
    content.php
    footer.php
    front-page.php
    header.php
    inc/post-formats.php
    inc/related-posts.php
    index.php
    navigation.php
    no-results.php
    page-templates/contact.php
    page-templates/page-builder.php
    page.php
    search.php
    searchform.php
    sidebar-footer.php
    sidebar-left.php
    sidebar.php
    single.php


    Thanks!!


    .................................................. ..................................


    Header code:


    <?php
    /**
    * Theme Header Section for our theme.
    *
    * Displays all of the <head> section and everything up till <div id="main" class="clearfix"> <div class="inner-wrap">
    *
    * @package ThemeGrill
    * @subpackage ColorMag
    * @since ColorMag 1.0
    */
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <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
    /**
    * This hook is important for wordpress plugins and other many things
    */
    wp_head();
    ?>
    </head>

    <body <?php body_class(); ?>>

    <?php do_action( 'colormag_before' ); ?>

    <div id="page" class="hfeed site">
    <?php do_action( 'colormag_before_header' ); ?>

    <?php
    // Add the main total header area display type dynamic class
    $main_total_header_option_layout_class = get_theme_mod( 'colormag_main_total_header_area_display_type', 'type_one' );

    $class_name = '';
    if ( $main_total_header_option_layout_class == 'type_two' ) {
    $class_name = 'colormag-header-clean';
    } else if ( $main_total_header_option_layout_class == 'type_three' ) {
    $class_name = 'colormag-header-classic';
    }
    ?>

    <header id="masthead" class="site-header clearfix <?php echo esc_attr( $class_name ); ?>">
    <div id="header-text-nav-container" class="clearfix">

    <?php colormag_top_header_bar_display(); // Display the top header bar ?>

    <?php
    if ( get_theme_mod( 'colormag_header_image_position', 'position_two' ) == 'position_one' ) {
    colormag_render_header_image();
    }
    ?>

    <?php colormag_middle_header_bar_display(); // Display the middle header bar ?>

    <?php
    if ( get_theme_mod( 'colormag_header_image_position', 'position_two' ) == 'position_two' ) {
    colormag_render_header_image();
    }
    ?>

    <?php colormag_below_header_bar_display(); // Display the below header bar ?>

    </div><!-- #header-text-nav-container -->

    <?php
    if ( get_theme_mod( 'colormag_header_image_position', 'position_two' ) == 'position_three' ) {
    colormag_render_header_image();
    }
    ?>

    </header>

    <?php do_action( 'colormag_after_header' ); ?>
    <?php do_action( 'colormag_before_main' ); ?>

    <div id="main" class="clearfix">
    <div class="inner-wrap clearfix">
    Last edited by erikjones861; Jan 21st, 2018 at 05:39 AM.

  2.  

  3. #2
    Junior Member
    Join Date
    Jan 2018
    Posts
    8
    Member #
    58123
    I wonder if it has something to do with this line:

    <?php do_action( 'colormag_before_header' ); ?>

  4. #3
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,686
    Member #
    5580
    Liked
    716 times
    Give me a link to your site ... I want to see the HTML of the actual page.


  5. #4
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    Quote Originally Posted by erikjones861 View Post
    I wonder if it has something to do with this line:

    <?php do_action( 'colormag_before_header' ); ?>
    The function 'colormag_before_header' is probably defined in functions.php. See if you can find that.

    Most likely, that's not going to be it. It will probably be a CSS issue.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:21 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com