My 7-Day Dev Diary: Customizing Fertilys for a Medical Clinic

发布于 2026-07-23 10:33:13

We Built a Maternity Healthcare Site in 7 Days (A Real Dev Diary)


Day 1: Set Up and Initial Impressions

A regional healthcare clinic reached out last week. They needed a clean, approachable website for their new IVF and maternity unit. Because health sites need to feel extremely safe and clean, I skipped my usual custom blank setups and picked the Fertilys – IVF, Pregnancy & Maternity Healthcare WordPress theme to use as our development base.

I installed it on my local staging server. The installation process was straightforward, and the healthcare layout imported without any database issues. The pastel colors, appointment grids, and medical team listings looked great right away. However, as an experienced developer who builds fast sites, I know that visual appeal is only half the battle. I knew we had some under-the-hood optimization work ahead of us to make sure mobile visitors on slower connections didn't bounce.


Day 3: The Slow Load Speed Issue

While testing the page weight on day three, I noticed a performance hit. The theme comes with a nice clinic location feature. But it was loading the heavy Google Maps JavaScript API across every single page on the site, including the home page and individual service pages where no maps were present. This was delaying the site's First Contentful Paint.

I do not like using bulky optimization plugins for things I can fix with clean code. So, I added this PHP hook to the child theme’s functions.php file to only load the maps script on the actual contact page:

add_action('wp_print_scripts', 'fertilys_dequeue_google_maps', 100);
function fertilys_dequeue_google_maps() {
    // Only load the script if we are on the contact page
    if (!is_page('contact') && !is_page('locations')) {
        wp_dequeue_script('google-maps');
        wp_dequeue_script('fertilys-gmaps-init');
    }
}

Once saved, this eliminated a couple of heavy HTTP requests on our main pages, shaving nearly 0.6 seconds off the loading times.


Day 5: Adding Medical Forms and Plugins

On day five, I worked on the site’s patient intake and contact forms. Because medical data is highly sensitive, I set up a secure local database solution to encrypt form entries rather than relying on standard email transmissions. I also installed some Must-Have Plugins to handle WebP image compression, local page caching, and local schema markup to help Google understand the clinic’s physical location.

To finish up the database cleanup, I logged into the server terminal and ran a quick WP-CLI command to reset unused default widgets that were bloating the admin panel and loading extra dynamic queries:

wp widget reset-sidebars --yes

Day 7: Launch and Final Thoughts

By day seven, the site was ready to go live. I ran a final audit on PageSpeed Insights and saw some really decent scores.

Here is my honest take on this medical theme:

  • The Good: The layout structures are highly targeted for maternity and IVF clinics. The content flow is highly logical, making it easy for patients to find doctors and book appointments.
  • The Bad: Out of the box, the assets are a bit unoptimized. Global scripts like the Google Maps API load everywhere by default, which can slow down mobile loading times if you don't use custom filters.

In the end, the project came together smoothly. It is a solid, practical theme for healthcare projects as long as you spend a little time optimizing the asset loading.

0 条评论

发布
问题