Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Inline styles for site identity logo have to go!

Discussion in 'Misc WordPress Requests' started by skyrant, Mar 27, 2018.

  1. skyrant

    Guest

    Reply To: Inline styles for site identity logo have to go!, by skyrant


    The reason the width and height attributes are 200 and 74 respectively in your example is because those are the dimensions of your image. Your image is 200×74.

    No, my image is 300×112. It get’s forcefully resized by WordPress when i change it through the theme customisation (site identity -> logo) and then what get’s included is the cropped image. It even has cropped in the name!|

    I want it to set the width and height to the actual image size i use. No matter what size the image is. If i want to upload a 4000×4000 logo then let me do it. These restrictions are not helping at all.

    PS: The code you provided does not work.

    add_action( 'after_setup_theme', 'yit_child_theme_setup', 20 );

    if ( ! function_exists( 'yit_child_theme_setup' ) ) {
    /**
    * load child language files
    *
    *
    * @return void
    * @since 1.0.0
    * @author Francesco Licandro
    */
    function yit_child_theme_setup() {
    load_child_theme_textdomain( 'yit', get_stylesheet_directory() . '/languages' );

    remove_theme_support('custom_logo');
    $defaults = array(
    'height' => 112,
    'width' => 300,
    'flex-height' => true,
    'flex-width' => true,
    );
    add_theme_support( 'custom-logo', $defaults );
    }
    }

    Reply To: Inline styles for site identity logo have to go!
     
    #1

Share This Page

Monarch Social Sharing Plugin