Home Forums Exoplanet Pro Increase size of site logo

This topic contains 4 replies, has 2 voices, and was last updated by  Gavin Bray 2 months, 2 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1591

    Gavin Bray
    Participant

    I am using Exoplanet Pro and would like to increase the size of the logo from 300 x 60 to say 400 x 150. Please help I cannot find where I can change this

    #1593

    Andy
    Keymaster

    Hi, you would need to override the settings by adding this code in a child theme

    function exoplanet_pro_child_theme_setup() {
    	add_theme_support('custom-logo', array(
    	'width' => '400',
    	'height' => '150',
    	) );
    }
    add_action( 'after_setup_theme', 'exoplanet_pro_child_theme_setup' );
    • Download the Exoplanet Child theme
    • Activate the child theme
    • Naviage to Appearance > Editor
    • Select theme to edit: Exoplanet Pro Child
    • Under ‘Templates’ select ‘Theme Functions (functions.php)’
    • Copy the above code into the functions.php file, making sure that you add the code below where it says ‘/* write custom functions below here */’
    #1596

    Gavin Bray
    Participant

    Thanks have added the code but doesn’t work when you go to add the logo it still says 300x 60 and tries to crop the images down

    #1600

    Andy
    Keymaster

    Sorry about that Gavin, my mistake. The code should be:

    function exoplanet_setup() {
    	add_theme_support('custom-logo', array(
    	'width' => '400',
    	'height' => '150',
    	) );
    }
    add_action( 'after_setup_theme', 'exoplanet_setup' );
    #1605

    Gavin Bray
    Participant

    Many Thanks That works perfectly

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

You must be logged in to reply to this topic.