Home Forums Pro Themes Teach Kiddo Pro Header image size reduction

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #210452
    Karl Bily
    Participant

    Need support as I want to reduce header image from 1200×528 to 1200×250 pix

    #210455
    Psink
    Keymaster

    To change the header image size in your theme, please follow these steps:

    – Install and activate the free plugin WPCode – Insert Headers and Footers + Custom Code Snippets

    – Go to Code Snippets → Add Snippet → Add Your Custom Code (PHP Snippet).

    – Paste the following code:

    add_filter( ‘teach_kiddo_pro_custom_header_args’, function( $args ) {
    $args[‘height’] = 250;
    $args[‘width’] = 1200;
    return $args;
    } );

    – Click Save Changes and Activate.

    After that:

    – Go to Appearance → Customize → Header Image.

    – Re-upload or re-crop your header image.
    It will now use the new size of 1200×250.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.