WordPress.org

Ready to get started?Download WordPress

Forums

Attitude
[resolved] Remove space above the header (5 posts)

  1. Knallskalle
    Member
    Posted 8 months ago #

    Hi

    I am using the attitude theme, I have removed the searchbar and above my jpeg.header there is a white empty area.

    The code for the this area when i look it up in google chrome

    <div class="hgroup-wrap clearfix">

    The header php (no changes so far so i have not put it in my child-theme yet).

    <?php
    /**
     * Displays the header section of the theme.
     *
     * @package Theme Horse
     * @subpackage Attitude
     * @since Attitude 1.0
     */
    ?>
    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    
    	<?php
    		/**
    		 * attitude_title hook
    		 *
    		 * HOOKED_FUNCTION_NAME PRIORITY
    		 *
    		 * attitude_add_meta 5
    		 * attitude_show_title 10
    		 *
    		 */
    		do_action( 'attitude_title' );
    
    		/**
    		 * attitude_meta hook
    		 */
    		do_action( 'attitude_meta' );
    
    		/**
    		 * attitude_links hook
    		 *
    		 * HOOKED_FUNCTION_NAME PRIORITY
    		 *
    		 * attitude_add_links 10
    		 * attitude_favicon 15
    		 * attitude_webpageicon 20
    		 *
    		 */
    		do_action( 'attitude_links' );
    
    		/**
    		 * This hook is important for wordpress plugins and other many things
    		 */
    		wp_head();
    	?>
    
    </head>
    
    <body <?php body_class(); ?>>
    	<?php
    		/**
    		 * attitude_before hook
    		 */
    		do_action( 'attitude_before' );
    	?>
    
    	<div class="wrapper">
    		<?php
    			/**
    			 * attitude_before_header hook
    			 */
    			do_action( 'attitude_before_header' );
    		?>
    		<header id="branding" >
    			<?php
    				/**
    				 * attitude_header hook
    				 *
    				 * HOOKED_FUNCTION_NAME PRIORITY
    				 *
    				 * attitude_headerdetails 10
    				 */
    				do_action( 'attitude_header' );
    			?>
    		</header>
    		<?php
    			/**
    			 * attitude_after_header hook
    			 */
    			do_action( 'attitude_after_header' );
    		?>
    
    		<?php
    			/**
    			 * attitude_before_main hook
    			 */
    			do_action( 'attitude_before_main' );
    		?>
    		<div id="main" class="container clearfix">

    How do i remove this empty space?

  2. Knallskalle
    Member
    Posted 8 months ago #

    I found a solution.
    The white space is for the header in theme options, and I put my header in the admin-panel.

    I removed the header in the admin-panel and put it in theme-options instead.

  3. Knallskalle
    Member
    Posted 8 months ago #

    Now it is less space around my logo. But it is still space, i have identified it that the clearfix is to big. Can I do anything to change this?

    It is

    class="hgroup-wrap clearfix"
    and
    id="site-logo" class="clearfix"
  4. rahul3010
    Member
    Posted 8 months ago #

    Add this into Theme options->Custom CSS. It worked for me. Change Padding-top and bottom according to your need.

    #site-logo
    {
    float: left;
    margin-top: 0px;
    }

    .hgroup-wrap
    {
    padding-top: 10px;
    padding-bottom: 10px;
    }

  5. Knallskalle
    Member
    Posted 8 months ago #

    Thank You. It worked.

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.