WordPress.org

Support

Support » Themes and Templates » Do I do add divs to a Genesis header?

Do I do add divs to a Genesis header?

  • OK, so know how to resize the header width/height in CSS, but how can I have it so a large Adsense horizontal banner is covering the right of my header and a smaller logo is next to it on the left?

    I know this is done by creating DIVs, but it doesn’t seem to be so straight forward when using the Genesis theme.

    Where do these Divs actually go? The Child theme doesn’t have a header.php and the Genesis header.php has:

    do_action( 'genesis_doctype' );
    do_action( 'genesis_title' );
    do_action( 'genesis_meta' );
    
    wp_head(); /** we need this for plugins **/
    ?>
    </head>
    <body <?php body_class(); ?>>
    <?php
    do_action( 'genesis_before' );
    ?>
    <div id="wrap">
    <?php
    do_action( 'genesis_before_header' );
    do_action( 'genesis_header' );
    do_action( 'genesis_after_header' );
    
    echo '<div id="inner">';
    genesis_structural_wrap( 'inner' );
Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator Andrew Nevins

    @anevins

    Forum moderator

    We can’t help with Genesis themes, but that theme’s vendors already provide support.

    Their support form is ‘dead’ – nobody replies to forum posts on there.

    Hence why I’ve tried here.

    Dont mess with the genesis header just create a header.php and put it in your child theme. Throw something like this in there. I hope this helps.

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    
    <head>
    	<meta charset="<?php bloginfo('charset'); ?>" />
    
    	<?php if (is_search()) { ?>
    	   <meta name="robots" content="noindex, nofollow" />
    	<?php } ?>
    
    	<title>
    		   <?php
    		      if (function_exists('is_tag') && is_tag()) {
    		         single_tag_title("Tag Archive for ""); echo '" - '; }
    		      elseif (is_archive()) {
    		         wp_title(''); echo ' Archive - '; }
    		      elseif (is_search()) {
    		         echo 'Search for "'.wp_specialchars($s).'" - '; }
    		      elseif (!(is_404()) && (is_single()) || (is_page())) {
    		         wp_title(''); echo ' - '; }
    		      elseif (is_404()) {
    		         echo 'Not Found - '; }
    		      if (is_home()) {
    		         bloginfo('name'); echo ' - '; bloginfo('description'); }
    		      else {
    		          bloginfo('name'); }
    		      if ($paged>1) {
    		         echo ' - page '. $paged; }
    		   ?>
    	</title>
    
    	<link rel="shortcut icon" href="/favicon.ico">
    
    	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
    
    	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
    
    	<?php if ( is_singular() ) wp_enqueue_script('comment-reply'); ?>
    
    	<?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
     <div id="inner">

    Hey I wanted to make a revision on the above header.php code for a genesis child theme.

    <?php
    				do_action( 'genesis_doctype' );
    				do_action( 'genesis_title' );
    				do_action( 'genesis_meta' );
    		   ?>
    
    	<?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
    <div id="inner">

    When I put that in header.php in the minimum folder, it suppressed the header entirely.

    WPyogi

    @wpyogi

    Forum Moderator

    If you are using Genesis – you’ll need to ask for help here:

    http://www.studiopress.com/

    Put it in the child theme of your folder. NOT in the genesis folder

    abir43tee

    @abir43tee

    Thank you so much!!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Do I do add divs to a Genesis header?’ is closed to new replies.
Skip to toolbar