top of page
Filter by Category

20:40

5283

The Wix Wiz

NEW! Custom CSS in Wix Studio and Editor X

NEW! Custom CSS in Wix Studio and Editor X


Hey design enthusiasts, welcome back to NewForm! Today, we're diving into a game-changing feature that Wix has recently rolled out—Custom CSS. For those of you who have been working with Wix, this is a landmark development. The rollout of Custom CSS in the new Wix Studio and Editor X marks a significant leap forward in terms of customization and design flexibility. Let’s explore how you can maximize this feature and take your web designs to the next level.


Why is Custom CSS a Big Deal for Wix Users?


Before diving into the nuts and bolts of how to use Custom CSS, let's take a moment to appreciate what this means for Wix Studio users. Traditionally, Wix offered a robust design panel where you could tweak elements like sizes, colors, and various properties without diving into the complexities of CSS. However, if you wanted more granular control, your options were limited. Enter Custom CSS—a feature that opens up the full CSS spectrum for any element on your site, making Wix an even more potent platform for web designers.


Think of it as Wix handing the CSS keys to everyone, allowing users to write any CSS for elements, thus taking design customization several notches higher. This isn't entirely new territory for Wix, as previously there were limited CSS tweaks accessible through Velo for a few elements. However, these could only change some background or font properties, which was pretty restrictive. With Custom CSS, that backdoor is wide open now.


How to Access and Use Custom CSS in Wix Studio


If you're on the new Wix Studio, adding Custom CSS is pretty straightforward:


1. Access the Code Panel: On the left side of the editor, you have a Code Panel that lets you access the `global.css` file, where you’ll write your custom CSS rules.


2. Write Your CSS: Use standard CSS syntax to write styles. You can start with simple modifications like changing a button’s background color and then build up to more complex customizations.


3. Custom Classes: All Wix elements have one or more pre-defined CSS classes. For instance, a text element might have classes like `.richText` and `.richText__text`. You can add your own classes via the Code Panel to apply specific styles.


Applying Custom CSS with Velo Code


One of Wix Studio’s most powerful features is the ability to manipulate CSS dynamically using Velo. With Velo, you can write logic to conditionally apply CSS classes based on interactions or specific conditions, much like you would with JavaScript.


For instance:


javascript


=> {

$w('#myText').customClassList.add('customClass');


});


=> {

$w('#myText').customClassList.remove('customClass');


});


In this snippet, the hover effect is applied dynamically using Velo, which adds or removes the `customClass` when the mouse interacts with the text element.


From CodePen to Wix: Leveraging External CSS Snippets


If you’re looking for cool effects to amp up user interactions on your site, CodePen is a treasure trove. Users share innovative designs there that often revolve around CSS tricks. By copying the styles over to your Wix project, you can recreate similar magic on your sites.


Example: Copy a button hover effect CSS from CodePen, paste it into your `global.css` file, and apply it to a button. Just be mindful of compatibility and necessary HTML structures when transferring third-party code.


Navigating the Potential Pitfalls


Like any powerful tool, Custom CSS comes with potential challenges. Minor discrepancies, like the specificity of CSS selectors or the nuances between native HTML and Wix elements, can trip you up. It’s essential to understand the underlying structure of Wix’s elements to use CSS effectively.


Wrapping It Up


Custom CSS in Wix Studio and Editor X is a feature that promises immense potential for design innovation. It bridges the gap between ease-of-use and technical control, empowering Wix users to craft websites that truly stand out.


At NewForm, we’re here to support you as you hone your design skills, find opportunities in the marketplace, and connect with industry leaders. We offer monthly web design challenges with cash prizes, weekly skill-building events, and exclusive guest sessions with top professionals in web design. So, if you’re ready to take your skills to new heights and join a community of like-minded creatives, now’s the time! Head over to NewForm for more amazing opportunities!


Thanks for hanging out with us—now get out there and make something incredible!

bottom of page