Case Study: Cleaning Up Old CSS and Page Headers on a Real Estate Agent’s Astra Website

A real estate professional's Astra site had old custom CSS, an intro slider that appeared before the homepage and inconsistent page headers. We cleaned it up in two quick orders and chose a light code change over rebuilding the news page, protecting existing post URLs and SEO.

Astra CSS & Header Cleanup

Table of Contents

Case Studies · real client work

In February 2024 a real estate professional asked me to make a few changes to his website, built with the Astra theme. Someone had added custom CSS in the past that he wanted changed or removed, he wanted the content width adjusted, and there was an image that popped up before the homepage loaded. He sent a document and a screen recording explaining each point. Over two quick orders we cleaned it all up and added matching page title headers to the main pages. Along the way we had to decide whether to rebuild his news page or make a small code change, and choosing the lighter option protected his existing post links and search rankings. This case study explains the decisions.

Project snapshot
  • Client: a real estate professional with an Astra-based website
  • Platform: WordPress, Astra, a slider plugin, a page builder on one page, custom CSS
  • Work: removing an intro slider, editing and removing old CSS, width adjustments, consistent page title headers, header CSS cleanup on the news page
  • Timeline: February 2024, two orders over two days
  • Result: a cleaner, consistent website without risking existing URLs or SEO

The brief, with a screen recording

The owner’s first message came with an attachment listing the changes. After visiting the site, I confirmed what I understood: the homepage hero was built with a slider plugin, and I wanted to be certain whether he meant removing that slider entirely. He replied with a quick screen recording showing exactly what he meant: not the whole hero, just the image that popped up for a moment before the homepage appeared.

That recording saved a lot of guesswork. A few seconds of video often explains more than paragraphs of text, especially for visual issues like a flash of an image during loading.

Round one: CSS, widths and the intro image

The first order covered the main list:

  • Removing the intro image that appeared before the homepage loaded.
  • Reviewing the old custom CSS and changing or removing the parts he no longer wanted.
  • Adjusting the content width so pages looked better on wider screens.
  • Small styling tweaks from his document.

Old custom CSS is a common source of trouble. Rules added years ago for a previous design can still override the theme’s current settings, which is why a change in the customiser sometimes seems to have no effect. Going through the CSS line by line and removing what is no longer needed makes the site easier to manage.

“Great work and very efficient!”

Real estate professional, February 2024

Round two: matching page headers

After seeing the result, he realised he had meant to ask for the same style of page title header on his other main pages too: About Us, Recent Closings, News and Market Trends, and Contact Us. These were extra items beyond the first order, so I explained that they would need a little more time, and we agreed a short second order. He also mentioned the contact form’s borders were hard to see. Because that form was generated by an external script, its styling could not be changed reliably from the website’s CSS, so he decided to handle that part with the form provider himself.

The news page puzzle

The News and Market Trends page behaved differently. When I tried to edit it, the page builder used there would not open with my access. He upgraded my user role to administrator, which was needed because the header area was controlled at theme level.

Looking closer, I found the page was Astra’s own blog archive, which lists posts automatically. Astra does not offer the same custom header controls for its archive pages. One option was to rebuild the page with a page builder to get the header we wanted.

He asked exactly the right questions before agreeing: would rebuilding keep his old posts, would it affect SEO and would the links to existing posts stay the same? I explained that the posts and their links would remain, but the current archive was very light and well structured for search engines, with sensible tags and image sizes. Rebuilding with a page builder would mean optimising everything again manually.

He then pointed out something useful: the header on that page came from an advanced header setting in the Additional CSS, and only part of that code needed deleting. That was a much smaller, safer change. I removed the unwanted header through code, while explaining that adding a brand new header purely with code was not something I would recommend there. He was happy with that outcome.

When not to rebuild

It is tempting for developers to suggest rebuilding a page whenever a theme limits what can be changed. Sometimes that is right, but it carries hidden costs: new layouts must be optimised from scratch, internal structure changes, and there is always a risk of breaking something that worked well. For a real estate site where the news section brings in search traffic, protecting that structure matters more than a perfect header. The owner’s instinct to ask about SEO and links before agreeing was exactly the right one, and the small code change gave him what he needed without those risks. Good advice sometimes means doing less.

Why consistent page headers matter

Page title headers seem like a small detail, but they shape how professional a site feels. When the homepage has a polished header and inner pages have plain titles, visitors subconsciously notice the inconsistency. A shared header style, with the same height, typography and background treatment on every main page, tells visitors they are still on the same trusted site as they move from About Us to Recent Closings to Contact. For a real estate agent, whose website is often a prospective client’s first impression, that consistency supports trust.

Housekeeping for themes like Astra

  • Keep custom CSS organised. Add comments explaining what each block does and when it was added.
  • Prefer theme settings over CSS. Use the customiser where possible; reserve CSS for what settings cannot do.
  • Remove old rules after redesigns. Leftover CSS causes confusing conflicts later.
  • Use one page builder. Mixing builders on different pages makes editing harder, as the news page showed.
  • Give developers their own account. With the right role for the task, and remove it afterwards.

Lessons for real estate websites

  • Record a quick video of issues. It removes ambiguity instantly.
  • Ask about SEO before rebuilding. Especially for blog and news pages that rank.
  • Keep headers consistent across key pages.
  • Check how forms are embedded. External forms need styling at the source.
  • Avoid intro images and preloaders. They delay the content visitors came for.

Need your theme cleaned up?

If old CSS, mixed builders or inconsistent headers are making your site harder to manage, I can tidy it up with the smallest safe changes, and tell you honestly when a rebuild is not worth it.

What a real estate website needs to do well

Beyond the specific fixes, this project is a good reminder of what matters most on an agent’s website. Visitors come with one of a few goals: to check the agent’s credibility, to see recent sales, to read local market news or to get in touch. Each of these deserves a clear, consistent page. The About page should feature a professional photo, experience, areas served and a short personal story. Recent Closings should show real properties with photos, locations and outcomes, which is the strongest proof of results. A News and Market Trends section, updated regularly, positions the agent as a local expert and brings in search traffic for neighbourhood questions. The Contact page should make it effortless to call, email or send a message, with the phone number tappable on mobile. When all of these pages share the same header style and layout, the site feels like a well-run business rather than a collection of pages built at different times.

Speed and first impressions

Removing the intro image also had a performance benefit. Preloaders and intro slides delay the moment visitors see real content, and on mobile connections that delay can be several seconds. Many visitors leave before the page appears. For a professional service business, the first screen should load quickly and immediately show who you are and how to reach you. Every element that loads before that, whether a slider, a large video or a decorative animation, should earn its place.

After this cleanup, the homepage loads straight into the main content, and the inner pages share one consistent header. The owner also knows exactly where his custom CSS lives and what it does, which will make future updates quicker and safer whenever he decides to refresh the design or add new sections for upcoming listings.

Small, careful changes like these keep a website healthy for years.

Work with meWordPress, Astra and Elementor expert help

CSS cleanups, header consistency and careful changes that protect your SEO and existing links.

View the Fiverr gig →

Have a list of small changes? Send me a short brief.

Frequently asked questions

Why do my Astra customiser changes have no effect?

Old custom CSS may be overriding them. Review Additional CSS and remove rules you no longer need.

Will rebuilding my blog page change my post URLs?

Usually not. Post URLs depend on permalink settings, not the archive page design, but layout and SEO structure can change.

How do I remove an image that flashes before my homepage loads?

It is often a slider or preloader setting. Disable the preloader or intro slide in the plugin or theme.

Why can't I style an embedded contact form?

Forms loaded by external scripts often ignore your site’s CSS. Use the form provider’s own styling options.

Free toolTry the Website Cost Calculator

Free, no sign-up, works on any device.

Open the free tool →
Written by Tanvir H

WordPress and Elementor web designer at Tanvir WebXprt, Bangladesh, with 7+ years of experience and 650+ projects. Tanvir builds the free tools on this site and writes practical guides for creators, learners and small businesses.

Learn more

Guides for this tool

Built by Tanvir WebXprt

Want a tool, website or app like this for your business?

Every free tool on this site is designed and coded by Tanvir H, a Bangladesh-based WordPress and Elementor web designer with 7+ years of experience and 650+ projects for clients worldwide. Fast, mobile-first, search-optimised websites that turn visitors into customers.

Website developmentWordPress, Elementor & e-commerce sitesfrom $899
Creative designWeb, graphic & brand identityfrom $220
SEO & paid adsRank on Google, run Meta & Google Adsfrom $300
Speed & fixesCore Web Vitals, bugs and upgradesCustom quote
  • 650+ projects
  • 7+ years
  • 4.9★ rating
  • Govt. registered freelancer

Contents

Was this helpful? Spread the word and share with your network!
Facebook
Pinterest
LinkedIn
Reddit
VK
X
Telegram
Threads
Tumblr
Email
WhatsApp
Pocket

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Article