Community Forums › Forums › Archived Forums › Design Tips and Tricks › Genesis Sample Child Theme
Tagged: Logo Dimensions
- This topic has 3 replies, 2 voices, and was last updated 10 years ago by Anita.
-
AuthorPosts
-
April 8, 2014 at 7:25 pm #99247LandonMember
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
April 8, 2014 at 11:14 pm #99297AnitaKeymasterOpen up the functions.php file. You will see the area for support for custom header to your logo size. Then upload it again.
Love coffee, chocolate and my Bella!
April 9, 2014 at 6:25 am #99323LandonMemberThat'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' ) );
April 9, 2014 at 6:47 am #99326AnitaKeymasterTry 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, ) );
Love coffee, chocolate and my Bella!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.