• Resolved pubeofdeath

    (@pubeofdeath)


    Hi there,
    How can I change the aspect ratio / size of the site banner? I’d like an image to run across my whole site without the height increase.

    Alternatively, is it possible to at least center the site banner?

    You can see what i mean at https://www.imakewebstores.com.au

    ps. i know i’m not using the theme for what it’s intending ??

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    Maybe this custom CSS will help you:

    .site-banner img { width: 100%; }
    

    If you want to resize the banner image, you need to override it via your child theme’s functions.php file:

    function my_image_sizes( $image_sizes ) {
     // Overriding default values from https://github.com/webmandesign/auberge/blob/master/inc/setup.php#L486
     $image_sizes['auberge_banner'] = array(
      1920,
      1000,
      true,
      __( 'In front page banner.', 'wm_domain' )
     );
    
     return $image_sizes;
    }
    
    add_filter( 'wmhook_wm_setup_image_sizes', 'my_image_sizes' );
    

    And finally, if you upgrade to Auberge Plus, you can set up your own slider there.

    Regards,

    Oliver

    Thread Starter pubeofdeath

    (@pubeofdeath)

    awesomely prompt, thanks so much Oliver

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing site banner aspect ratio / centering’ is closed to new replies.