Genesis Sample Child Theme

Community Forums Forums Design Tips and Tricks Genesis Sample Child Theme

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  AC 7 months, 3 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #99247

    Landon
    Participant
    Post count: 64

    I am building a theme based on the Sample Child Theme. The logo.png is 320 x 80 however the .title-area is 320 x 164. How can I change the Genesis logo image dimensions to 320 x 80? On localhost now but if needed could upload to a dev server. Hopefully this is an easy one for you guys :)

    Thanks, Landon

    #99297

    AC
    Blocked
    Post count: 7712

    Open up the functions.php file. You will see the area for support for custom header to your logo size. Then upload it again.

    #99323

    Landon
    Participant
    Post count: 64

    That’s what I was looking for but there is no Custom Header in my functions.php.

    <?php
    //* Start the engine
    include_once( get_template_directory() . '/lib/init.php' );
    
    //* Child theme (do not remove)
    define( 'CHILD_THEME_NAME', 'Genesis Sample Theme' );
    define( 'CHILD_THEME_URL', 'http://www.studiopress.com/' );
    define( 'CHILD_THEME_VERSION', '2.0.1' );
    
    //* Enqueue Lato Google font
    add_action( 'wp_enqueue_scripts', 'genesis_sample_google_fonts' );
    function genesis_sample_google_fonts() {
    	wp_enqueue_style( 'google-font-lato', '//fonts.googleapis.com/css?family=Lato:300,700', array(), CHILD_THEME_VERSION );
    }
    
    //* Add HTML5 markup structure
    add_theme_support( 'html5' );
    
    //* Add viewport meta tag for mobile browsers
    add_theme_support( 'genesis-responsive-viewport' );
    
    //* Add support for custom background
    add_theme_support( 'custom-background' );
    
    //* Add support for 3-column footer widgets
    add_theme_support( 'genesis-footer-widgets', 3 );
    
     
    //* Add new featured image sizes
    add_image_size( 'home-bottom', 150, 100, TRUE );
    add_image_size( 'home-top', 400, 200, TRUE );
    
    /**
     * Register and Enqueue Header Navigation Menu Script
     * 
     * @author Brad Potter
     * 
     * @link http://www.bradpotter.com
     */
    function gst_headermenu_script() {
      	
    	wp_register_script( 'header-menu', get_stylesheet_directory_uri() . '/js/headermenu.js', array('jquery'), '1.0.0', false );
    	wp_enqueue_script( 'header-menu' );
    
     }
    add_action('wp_enqueue_scripts', 'gst_headermenu_script');
    
    /** Register widget areas */
     
    genesis_register_sidebar( array(
    	'id'				=> 'cta-1',
    	'name'			=> __( 'Call to Action #1', 'mp' ),
    	'description'	=> __( 'This is the call to action section.', 'mp' ),
    ) );
    
    add_action( 'genesis_before_footer', 'mp_cta_genesis' );
    
    /**
     * Add CTA widget support for site. If widget not active, don't display
     *
     */
    function mp_cta_genesis() {
     
      // Don't display the CTA on the home page, since it's built into the MP theme
      if ( is_home() ) {
    		return;
    	}
     
     
     
      // If it's a page with ID 101 or 102 or any page within my Portfolio CPT
      // Display CTA #2
    	elseif ( is_page( array(8) ) || ('portfolio' == get_post_type() ) ) {
    		genesis_widget_area( 'cta-1', array(
    			'before' => '<div id="cta"><div class="wrap"><div class="right"',
    			'after' => '</div></div></div>',
    		) );
     
    	}
    }	
    
    //* Add support for structural wraps
    add_theme_support( 'genesis-structural-wraps', array(
    	'header',
    	'nav',
    	'subnav',
    	'site-inner',
    	'footer-widgets',
    	'footer'
    ) );
    #99326

    AC
    Blocked
    Post count: 7712

    Try adding this in there. I am assuming you are using the most recent version of the sample.

    //* Add support for custom header
    add_theme_support( 'custom-header', array(
    	'header_image'    => '',
    	'header-selector' => '.site-title a',
    	'header-text'     => false,
    	'height'          => 175,
    	'width'           => 175,
    ) );
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.