body background
In some devices, my page height is smaller than the viewport. Because of this there is a white space below the page in these devices. It would be nice to make this space the same color as the background of my page. Is there a way to configure the viewport background, i.e., the body background color?
-
Hi Paulo,
Thank you for contacting us.
You can resolve this issue by setting a background color for the <body> tag to match your page's background. To do this, navigate to Appearance > Customize > Additional CSS in your WordPress dashboard and add the following CSS:
body {
background-color: #ffffff;
}Replace #ffffff with the background color code you prefer to use. This will ensure the viewport background matches your page's background, removing the white space on devices with a smaller page height.
Please try this and let me know how it goes.
Kind regards,
Ariel H.0 -
Thanks for you reply.
My Appearance menu only has Themes and Editor, ano no Customize submenu.0 -
Hello Paulo,
Under the "Appearance" menu you will find the "Customize" option when you are using a "Classic" themes like Astra, Blocksy, and Generate Press. If you use a "Block" theme like Twenty Twenty Four, you would not find this option. Kindly switch to a classic theme to access the "Customize" option under "Appearance" menu. You can read more about it at How to Fix Missing Theme Customizer in WordPress Admin
0
Please sign in to leave a comment.
Comments
3 comments