👨🎨Homepage Sections Background Color
You can add a unique touch to your home page by assigning custom background colors to each section. This feature utilizes CSS variables, making it simple to apply your desired colors across different sections.
List of variables by sections:
1 + 2 light background
--section-one-plus-two-light-bg1 + 2 dark background
--section-one-plus-two-dark-bg1 (Featured) + 2 light background
--section-one-featured-plus-two-light-bg1 (Featured) + 2 dark background
--section-one-featured-plus-two-dark-bg1 + 3 light background
--section-one-plus-three-light-bg1 + 3 dark background
--section-one-plus-three-dark-bg1 (Featured) + 3 light background
--section-one-featured-plus-three-light-bg1 (Featured) + 3 dark background
--section-one-featured-plus-three-dark-bgList with sidebar featured posts light background
--section-list-sidebar-with-featured-posts-light-bgList with sidebar featured posts dark background
--section-list-sidebar-with-featured-posts-dark-bgList with sidebar latest posts light background
--section-list-sidebar-with-latest-posts-light-bgList with sidebar latest posts dark background
--section-list-sidebar-with-latest-posts-dark-bgList with sidebar (with image) featured posts light background
--section-list-with-img-sidebar-with-featured-posts-light-bgList with sidebar (with image) featured posts dark background
--section-list-with-img-sidebar-with-featured-posts-dark-bgList with sidebar (with image) latest posts light background
--section-list-with-img-sidebar-with-latest-posts-light-bgList with sidebar (with image) latest posts dark background
--section-list-with-img-sidebar-with-latest-posts-dark-bgPosts with date + sidebar featured posts light background
--section-posts-with-date-sidebar-with-featured-posts-light-bgPosts with date + sidebar featured posts dark background
--section-posts-with-date-sidebar-with-featured-posts-dark-bgPosts with date + sidebar latest posts light background
--section-posts-with-date-sidebar-with-latest-posts-light-bgPosts with date + sidebar latest posts dark background
--section-posts-with-date-sidebar-with-latest-posts-dark-bgCategories (tags) tabs light background
--section-categories-tabs-light-bgCategories (tags) tabs dark background
--section-categories-tabs-dark-bgGrid 2 column light background
--section-grid-two-column-light-bgGrid 2 column dark background
--section-grid-two-column-dark-bgGrid 2 column + sidebar with featured posts light background
--section-grid-two-column-sidebar-with-featured-posts-light-bgGrid 2 column + sidebar with featured posts dark background
--section-grid-two-column-sidebar-with-featured-posts-dark-bgGrid 2 column + sidebar with latest posts light background
--section-grid-two-column-sidebar-with-latest-posts-light-bgGrid 2 column + sidebar with latest posts dark background
--section-grid-two-column-sidebar-with-latest-posts-dark-bgGrid 3 column light background
--section-grid-three-column-light-bgGrid 3 column dark background
--section-grid-three-column-dark-bgGrid 4 column light background
--section-grid-four-column-light-bgGrid 4 column dark background
--section-grid-four-column-dark-bgBig slider light background
--section-big-slider-light-bgBig slider dark background
--section-big-slider-dark-bgMedium slider light background
--section-medium-slider-light-bgMedium slider dark background
--section-medium-slider-dark-bgSlider 2 posts light background
--section-slider-two-posts-light-bgSlider 2 posts dark background
--section-slider-two-posts-dark-bgSmall slider light background
--section-small-slider-light-bgSmall slider dark background
--section-small-slider-dark-bgMedium posts + small posts light background
--section-medium-small-posts-light-bgMedium posts + small posts dark background
--section-medium-small-posts-dark-bgMembership light background
--section-membership-light-bgMembership dark background
--section-membership-dark-bgSubscribe banner light background
--section-subscribe-banner-light-bgSubscribe banner dark background
--section-subscribe-banner-dark-bgAuthor name with image and bio light background
--section-with-author-light-bgAuthor name with image and bio dark background
--section-with-author-dark-bgSubscribe banner with benefits light background
--section-subscribe-banner-with-benefits-light-bgSubscribe banner with benefits dark background
--section-subscribe-banner-with-benefits-dark-bg
Access your website's CSS file or an area where you can input custom CSS, often found within the site settings or theme customization panel.
Define the desired background color for the section by using the CSS variable. For example, to change the 1 + 2 light background color to a soft pink, you would write:
:root { --section-one-plus-two-light-bg: #ffc0cb; }Save your changes. This will apply the new background color to the specified section across your website. Repeat these steps for any other sections you wish to customize.
To customize a section's background color, follow these steps:
Identify the CSS variable associated with the section you wish to customize. Each section has a designated variable, such as
--section-one-plus-two-light-bgfor the 1 + 2 light background section.Go to Settings > Code injection from the admin panel
Open Site header tab
Specify your preferred variables along with their corresponding colors in the following manner:
<style>
:root {
--section-membership-light-bg: #EFF8FC;
--section-subscribe-banner-dark-bg: #212121;
}
</style>
Click Save
This method provides you with the flexibility to experiment with and update the aesthetics of your home page.
To customize the sidebar's banner widget input's background color, follow these steps:
Go to Settings > Code injection from the admin panel
Open Site header tab
Add the following code and specify your preferred color
<style>
:root {
--input-background-color: YOUR_PREFFERED_COLOR;
}
</style>

Click Save
Last updated