WordPress.org

Ready to get started?Download WordPress

Forums

Do I do add divs to a Genesis header? (10 posts)

  1. muchacho79
    Member
    Posted 1 year ago #

    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' );
  2. Andrew
    Forum Moderator
    Posted 1 year ago #

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

  3. muchacho79
    Member
    Posted 1 year ago #

    Their support form is 'dead' - nobody replies to forum posts on there.

    Hence why I've tried here.

  4. maximusmccullough
    Member
    Posted 1 year ago #

    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">
  5. maximusmccullough
    Member
    Posted 1 year ago #

    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">
  6. kenlyle
    Member
    Posted 1 year ago #

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

  7. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    If you are using Genesis - you'll need to ask for help here:

    http://www.studiopress.com/

  8. maximusmccullough
    Member
    Posted 1 year ago #

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

  9. kenlyle
    Member
    Posted 1 year ago #

  10. abir43tee
    Member
    Posted 8 months ago #

    Thank you so much!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags