Changing header image height in Agentpress theme

Community Forums Forums Design Tips and Tricks Changing header image height in Agentpress theme

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  john gronley 6 months, 3 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #64867

    john gronley
    Participant
    Post count: 124

    Hello;

    In Agentpress the header is added through the admin panel and is set for 960 px x 125 px. I know how to change the header area but the theme won’t let me upload anything more than 125px in height. Is there a way to get around this function and add the header image through FTP and therefore increase the height of the header image?

    Thanks

    http://dlund.com
    #64878

    braddalton
    Participant
    Post count: 7473

    Change the values on Line 27 of your child themes functions file:

    /** Add support for custom header */
    add_theme_support( 'genesis-custom-header', array( 'width' => 960, 'height' => 125, 'textcolor' => '333' ) );
    

    The change the values in the CSS code:

    Line 174:

    #header {
    	color: #fff;
    	margin: 0 auto;
    	min-height: 125px;
    	text-shadow: 1px 1px #000;
    	width: 960px;
    }
    

    And line 231

    .header-image #title-area,
    .header-image #title,
    .header-image #title a {
    	display: block;
    	float: left;
    	height: 130px;
    	overflow: hidden;
    	padding: 0;
    	text-indent: -9999px;
    	width: 400px;
    }
    

    I think you can also upload the header to your images folder and simply change the CSS code without changing the PHP.


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #64886

    john gronley
    Participant
    Post count: 124

    Thanks Brad changing the functions php line 27 and also lines 174 and 231 in the style sheet did the job!

    Mucho Gracias

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Changing header image height in Agentpress theme’ is closed to new replies.