Wordpress resize header image for mobile8/26/2023 ![]() ![]() You don’t need to fix that, because that is the exact piece of code I will ask you to change, in order to achieve no.2 and 3 from your list. Change the Border Width to 2px and the Border Color to white. To manually hide your header site description, you would need to find out what ID each page has (inspecting the element) and then add the following (Forum page ID is 98). This can fix screen and (max-width: 767px)Īs for the position of your image, this code makes its width 70% (same as site-header) and centers it. Have attached an image of the phone view and my header.php file (Theme: Nisarg, am working on child theme). make a class for the header image and add the properties to the style.css file. Thankfully, you can change the thumbnail size by going to Settings > Media > Image sizes > Thumbnail size and changing the width and height of. Ask Question Asked 9 years, 10 months ago. It works fine on the desktop and is 1600x400 pixels. WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. I notticed that on mobile devices the header had a unecesary margin to the right. 1 I'm having trouble with my Wordpress header: when I open my site on my phone (in vertical view), the image is cropped. Instead, this does the trick: margin:0 auto Īlso, background-color should be either in rgb: rgb(135,173,155) or in hex: #87ad9b but not both. Although centered might be intuitive, it does’t work. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |