• Resolved Knallskalle

    (@knallskalle)


    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Knallskalle

    (@knallskalle)

    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.

    Thread Starter Knallskalle

    (@knallskalle)

    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"

    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;
    }

    Thread Starter Knallskalle

    (@knallskalle)

    Thank You. It worked.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove space above the header’ is closed to new replies.