A contact section with office details: address, phone, email and opening hours beside an office photo, with Call us and Get directions buttons for Gutenberg.
Also known as: contact us section, office address and opening hours, gutenberg contact block, contact information layout, visit us section with photo
This contact section with office details is a Gutenberg pattern for a contact us page or a "visit us" block on a homepage. It lists the address, phone, email and opening hours next to an office photo and adds Call us and Get directions buttons, giving you a contact information layout built from core WordPress blocks only.
How it works
A full-width white Group with 112px vertical padding contains a Columns block with two 50% columns, vertically centered. The left column has an orange eyebrow, an h2 heading, a short intro in warm stone gray, a List block with bold labels for each detail, and a Buttons block with a filled and an outline button. The right column is an Image block cropped to a 4:5 portrait ratio with 20px rounded corners. Core WordPress has no form block, so the buttons link to #: point them to a tel: link and a maps URL. On phones the photo moves below the contact details.
How to use it
Copy the block markup.
Paste it into an empty paragraph in the block editor.
Replace the address, phone, email, hours, button links and the photo.
Customization
Button color: select the "Call us" button, Color > Background #ea580c and Text #ffffff. The outline "Get directions" button uses Color > Text #c2410c; its border follows the text color.
Button links: select a button and set the link, for example tel:+15035550148 and your Google Maps or OpenStreetMap URL.
Body text color: the intro paragraph uses Color > Text #78716c (warm stone); the list uses #44403c.
Detail list: select the List block, Typography > Size 17px, Appearance 400 and Line height 2. Labels are bold text inside each list item; add or remove items as needed.
Photo shape: select the Image, Styles > Aspect ratio 4:5 and Border > Radius 20px. Choose 1:1 or 3:2 for a shorter image.
The office photo comes from Unsplash; replace it with a photo of your own office or storefront.
Use cases
Agencies and studios: invite clients to the office with address and hours.
Clinics, salons and local shops: show opening hours and a call button for mobile visitors.
Law and accounting firms: present office contact details on the contact page.
Restaurants and cafes: combine directions, phone and hours beside an interior photo.
Accessibility
The photo has descriptive alt text. Contact details are a real list, so screen readers announce four items, and the bold labels make each line clear. Text colors on white meet WCAG AA; the outline button uses the darker #c2410c for readable text. Both buttons are standard links reachable with the keyboard.
Can I use the Contact Section with Office Details code for free?
Yes. You can copy or download the block markup and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.
How do I add it to my WordPress site?
Copy the block markup, open a page in the block editor, click into an empty paragraph and paste. WordPress turns it into regular blocks that you can edit like any other content. You can also paste it in the Code editor view (Options menu > Code editor).
Does it need a page builder or plugin?
No. The pattern is built only from core blocks such as Group, Columns, Heading, Image and Buttons, so it works without Elementor, Spectra, Kadence or any other plugin. Colors and spacing are set on the blocks themselves; headings and text use your theme's fonts.
Will it look the same in my theme?
The layout, colors and spacing come with the blocks, so they carry over. Fonts, link styles and the content width follow your theme, so small differences are normal. The live demo shows the pattern in the default Twenty Twenty-Five theme. It works best with block themes; in classic themes the block editor still renders it, with your theme's styles.
Does it work on mobile?
Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.
How to install
Copy the block markup above.
Open a page or post in the WordPress block editor, click into an empty paragraph and paste. The editor turns the markup into blocks.
Replace the sample text and images. To reuse it, select the blocks and choose Create pattern from the block toolbar menu.
Uses only core WordPress blocks, so no plugin is needed. Tested with WordPress 6.8 and later. Fonts come from your theme; the live demo uses the default Twenty Twenty-Five theme. WebDevSnippets is not affiliated with or endorsed by the WordPress Foundation.
Bootstrap 5 contact section with four office cards showing a city photo, address, phone, email, live local time, open/closed badge and directions link.