0

Trying to figure out how to change the height of the header image, as it looks fine on the home page but is cropped awkwardly on every other page.

0

Please paste below code to your header.php file,

<?php 

    if (!is_front_page() ) { 
         echo '<style>.custom-header {height:500px;}</style>';
         } ?>

This code will check if current page is not home page then it will assign a new height to the header image. Change the value according to your wish

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.