How to Adjust Column Layouts in the Hestia Theme's Contact Section
Content
Many Hestia theme users want to customize the layout of the Contact section on their homepage. A common request is to remove the contact form entirely and have the contact information expand to fill the full width of the section, creating a single-column layout. This guide will explain why this happens and provide the most effective CSS solution.
Why This Layout Issue Occurs
The Hestia theme's frontpage sections, including the Contact section, are built with a predefined structure. The Contact section uses a two-column Bootstrap grid layout by default. The left column (`.col-md-5`) is designated for your contact information, while the right column (another `.col-md-5`) is for the contact form. Because both columns share the same class, applying a width change to one affects the other. This default design means that simply hiding the form does not automatically allow the information column to expand.
Step-by-Step Solution
Follow these steps to remove the contact form and create a single, full-width column for your contact info.
- Remove the Contact Form: Navigate to Appearance → Customize → Frontpage Sections → Contact. Find the field for the contact form shortcode and ensure it is completely empty. This will prevent the form from being generated.
- Add Custom CSS: To adjust the column width, you need to add custom CSS. Go to Appearance → Customize → Additional CSS.
- Paste the CSS Code: Copy and paste the following code snippet into the Additional CSS box. This code specifically targets the contact section on larger screens and adjusts the column widths.
@media (min-width: 992px) {
.hestia-contact .col-md-5 {
width: 100% !important;
}
}
Note: Using!importantand scoping the CSS with.hestia-contactensures these changes only affect the Contact section and override the default theme styles. - Publish Your Changes: Click the 'Publish' button to save and apply your changes.
Troubleshooting and Advanced Adjustments
- Clearing Cache: If you don't see the changes immediately, clear your browser cache and any caching plugins you have active on your site.
- Different Width Ratios: If you want to keep the form but change the column ratio (e.g., 25% for info, 75% for the form), you would need a more complex CSS solution that targets each column individually using more specific selectors, which often requires inspecting the page elements with your browser's developer tools.
- General Principle: For modifying other sections of the Hestia theme, the process is similar. You will need to use your browser's inspector tool to identify the correct CSS classes and then write targeted rules in the Additional CSS section.
By following this guide, you can effectively customize the Contact section to better fit your website's design without the need for additional plugins.
Related Support Threads Support
-
Hide contact formhttps://wordpress.org/support/topic/hide-contact-form/
-
How to display category names and title on the same row ?https://wordpress.org/support/topic/how-to-display-category-names-and-title-on-the-same-row/
-
2 column for features?https://wordpress.org/support/topic/2-column-for-features/
-
Two column page with Hestia – Right column “full screen”https://wordpress.org/support/topic/two-column-page-with-hestia-right-column-full-screen/
-
customize width of sides in hestiahttps://wordpress.org/support/topic/customize-width-of-sides-in-hestia/
-
how to disable the two columns on hestia in the very top barhttps://wordpress.org/support/topic/how-to-disable-the-two-columns-on-hestia-in-the-very-top-bar/
-
How to expand Row width to full width of screen?https://wordpress.org/support/topic/how-to-expand-row-width-to-full-width-of-screen/
-
Hestia Blog Frontpage Sectionhttps://wordpress.org/support/topic/hestia-blog-frontpage-section/
-
Parallaxhttps://wordpress.org/support/topic/parallax-13/
-
Contacto form widthhttps://wordpress.org/support/topic/contacto-form-width/
-
Add text or widgets to Hestia Top-barhttps://wordpress.org/support/topic/add-text-or-widgets-to-hestia-top-bar/
-
extend width of contact info on contact sectionhttps://wordpress.org/support/topic/extend-width-of-contact-info-on-contact-section/
-
Full width cover with normal width contenthttps://wordpress.org/support/topic/full-width-cover-with-normal-width-content/
-
Is there a list of shortcodes and divs for Lite?https://wordpress.org/support/topic/is-there-a-list-of-shortcodes-and-divs-for-lite/
-
Easy Appointment – not showing up in 2 columnshttps://wordpress.org/support/topic/easy-appointment-not-showing-up-in-2-columns/
-
Help to change class on start page for hestia-about-contenthttps://wordpress.org/support/topic/help-to-change-class-on-start-page-for-hestia-about-content/
-
How can i make every page look like home page?https://wordpress.org/support/topic/how-can-i-make-every-page-look-like-home-page/
-
Widgets in columnushttps://wordpress.org/support/topic/widgets-in-columnus/
-
How to change the positions of Sectionshttps://wordpress.org/support/topic/how-to-change-the-positions-of-sections/
-
post article full-widthhttps://wordpress.org/support/topic/post-article-full-width/
-
hestia add widget to big title areahttps://wordpress.org/support/topic/hestia-add-widget-to-big-title-area/
-
Hestia Title in one rowhttps://wordpress.org/support/topic/hestia-title-in-one-row/