WordPress.org

Ready to get started?Download WordPress

Forums

Nusantara
[resolved] Header image (2 posts)

  1. dario.plebani
    Member
    Posted 1 year ago #

    Hello!
    I think that it's easy, but I would like to know how to enlarge the header image.
    I noticed that, changing the image with a wider one, the width remains always the same, while the height decreases.

    any suggestions?

  2. dario.plebani
    Member
    Posted 1 year ago #

    Ok, thanks to a friend, we found an easy solution.

    In the functions.php file, in the code:

    function nusantara_excerpt_more( $more ) {
    		return ' …' . nusantara_continue_reading_link();
    	}
    	add_theme_support( 'custom-header', array(
                   'default-image'=> get_template_directory_uri() . '/images/logo-nusantara.png',
                   'header-text'=> false,
                   'flex-width'    => true,
                   'width'=> 300,
                   'flex-height'   => true,
                   'height'=> 139));
    	if ( ! function_exists( 'get_custom_header' ) ) {
    		define('HEADER_TEXTCOLOR', '');
    		define('HEADER_IMAGE', '%s/images/logo-nusantara.png');
    		define('HEADER_IMAGE_WIDTH', 700);
    		define('HEADER_IMAGE_HEIGHT', 139);
    		define('NO_HEADER_TEXT', true);
    	}

    edit the line

    'width'=> 300,

    with the width that you need.

    Thanks for deleting all my previous "UP"

    D.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic