All Posts

Cornerstone Tips: Blur Modal Background

Published: January 2, 2023

Looking to add a touch of elegance to your Cornerstone modals? A soft blur effect can work wonders in creating a visually appealing background. With Cornerstone, the powerful WordPress tool, you can easily incorporate this effect without the hassle of diving into complex CSS. In this article, we’ll explore how to apply a backdrop blur to your Cornerstone modals, offering an effortless way to enhance their visual appeal.

/* Apply backdrop blur to elements with class "x-modal" and "x-active" */
.x-modal.x-active {
  -webkit-backdrop-filter: blur(5px); /* Apply blur effect in WebKit browsers */
  backdrop-filter: blur(5px); /* Apply blur effect in other browsers */

  /* Fallback for browsers that do not support backdrop-filter */
  background-color: rgba(0, 0, 0, 0.5); /* Fallback background color with transparency */

Backdrop Blur with Cornerstone:
Cornerstone simplifies the process of customizing WordPress themes and building captivating layouts. By leveraging Cornerstone’s user-friendly interface and a few lines of CSS code, you can add a backdrop blur effect to your modals effortlessly. This effect creates an elegant and modern look by blurring the background behind the modal, allowing the foreground content to stand out.

Adding the Backdrop Blur Effect:
To apply the backdrop blur effect to your Cornerstone modals, follow these simple steps:

  1. Copy the provided CSS code snippet.
  2. Access Cornerstone’s Global, Page, or Element CSS settings, depending on your desired scope.
  3. Paste the CSS code into the respective CSS editor.
  4. Adjust the blur pixels value to increase or decrease the blur effect intensity.
  5. Save the changes and witness the enhanced visual appeal of your modals.

No CSS Skills? No Problem!
If you prefer not to tinker with CSS code, there’s a hassle-free alternative. Download the pre-styled Modal Element, which comes with the backdrop blur effect already applied. This ready-to-use solution allows you to quickly incorporate stylish modals into your Cornerstone-powered website, without the need for any CSS modifications.

With Cornerstone and the backdrop blur effect, you can effortlessly elevate the visual appeal of your modals. Whether you choose to apply the effect by copying and pasting the provided CSS or by using the pre-styled Modal Element, the result will be a sophisticated and modern aesthetic that enhances the user experience. Don’t settle for ordinary modals – jazz them up with a soft blur and make them visually captivating in just a few simple steps using Cornerstone.