Hello, Wix enthusiasts! Welcome to Wix Ideas, your go-to destination for actionable web design tips and tricks. I'm Walter, and today, I'm going to show you how to take your Wix Studio website to the next level with a unique feature: a custom text highlighter that uses your brand colors! Gone are the days of settling for the default blue selection highlight; instead, you can make every aspect of your site resonate with your brand identity. Ready to add that special touch? Let's dive in!
Why Customize Your Text Highlighter in Wix Studio?
When site visitors interact with your content, even in small ways like selecting text, they’re engaging with your brand. By swapping out the default blue highlight with a color that reflects your brand, you create a seamless and memorable experience. This little change can go a long way in building your brand’s unique aesthetic and strengthening the connection with your audience. Plus, it’s a quick update that makes your site stand out!
What You’ll Need
This tutorial will only require a small amount of CSS code, making it beginner-friendly for anyone who’s looking to make custom tweaks on Wix Studio. Whether you're running an online store, a blog, or a service-based business, this little code snippet will ensure your text highlight color aligns perfectly with your brand.
Step-by-Step Guide to Adding a Custom Text Highlighter
Here’s how to customize the text selection color on your Wix Studio site using CSS:
Open Global CSS Settings:
Head over to your Wix Studio editor.
Locate and open the "Global CSS" section, where we’ll be adding the custom code.
Adding Your Custom Selection Code:
Copy and paste the CSS code below into the Global CSS section:
In the code:
Replace #6a1b9a with the hex code of your brand's primary color.
The !important flag ensures that these style changes override default settings.
Here, the selection background color will match your brand, and the text color will change to white for readability.
Ensuring Compatibility with Firefox:
Firefox requires an additional tweak to recognize custom text highlighter colors. To ensure consistency across browsers, add this line directly below your initial code:
This line specifically targets Firefox, ensuring that your custom text highlight displays correctly on that browser too.
Preview and Test:
Now, it’s time to see your work in action! Go to the preview mode and try selecting any text on your website.
You’ll notice that the selection color now reflects your brand’s color scheme, adding a cohesive and engaging touch to your site.
Extra Tips for Perfecting Your Brand's Look
Experiment with Text Colors: If white doesn’t suit your brand, feel free to change the text color to something that complements the background.
Test Across Devices: Always check how the custom text highlighter looks on mobile and desktop to ensure a uniform experience.
Final Thoughts:
Using your brand color for text highlighting is a small but effective way to make your website look professional and memorable. It shows attention to detail, which can impress visitors and encourage them to explore further. I hope this tutorial helped you add an extra layer of personalization to your Wix Studio site!
If you enjoyed this guide, be sure to subscribe to Wix Ideas on YouTube. Like this post, share it with fellow Wix users, and leave a comment to let us know if this tutorial helped you! Also, if there are any other design tweaks you’d like to see covered, don’t hesitate to reach out.
Thank you for stopping by Wix Ideas. Until next time, happy designing!
Code
Leave a comment (0)
Thanks for leaving a comment🎉
ahmed
May 19, 2024
wix form data
Hi i need your help also in wix form submission
the problem is that some fields are generated when $w.onReady(function () { like day & date and when i choose the student name i get the phone number from database .
and the form save only the field u fill it by ur self like input or dropdown
Reply
Walter Odibi
January 20, 2000
bromar
Sep 29, 2023
Love the tutorial!!!
You are truly great at creating these instructional videos!! Thank you! I am having trouble figuring out . . 'the triggered email' . . it is not being sent to the user submitting the form, the form and the email to the admin works great. . Could you point me to where this might have already been addressed? or any other help? On a second note. .the submit button success/failure message will go back to the default message once it's connected to the data set(I couldn't figure that out either. )
Reply
Walter Odibi
January 20, 2000
kaan
Jun 4, 2023
wishlist and rating system
hello sir I try today 2 hours but not working if you want I pay money can you do this 2 ( wishlist and rating star) system please I send to you invaid
Reply
Walter Odibi
January 20, 2000
Hi there, you can contact me here using the in-app chatbox
Waqas
Apr 16, 2023
Triggered Email Backend
Hi mate please can you send email by backend
Reply
Walter Odibi
January 20, 2000
Hi Waqas, there isn't a backend code for this tutorial. The emails will be sent from the client-side.
Ghan
Dec 29, 2022
Great Tutorial
Hi !
First of all, I want to thank you for your great tutorials, they helped us a lot with the coding.
But I still need your help, if you don't mind. I have based on Save Calculated Field using Wix Data Hooks Codes, to code my form . but the problem is I don't know why the code only reads the computation for "week2" computation and not the "weeks"
here is the code
I also did a separate column in the dataset where the chosen datas for both fields will be placed.
$w.onReady (() => {
$w("#Person").onChange(() => {
$w("#weeks").onChange(() => {
$w("#week2").onChange(() => {
let person = Number($w("#Person").value);
let weeks = Number($w("#weeks").value);
let week2 = Number($w("#week2").value);
$w("#totalLabel").show();
$w("#totalLabel").text = `"${String(weeks * Number(person))}페소"`; //DESIGN YOUR MESSAGE
$w("#totalLabel").text = `"${String(week2 * Number(person))}페소"`; //DESIGN YOUR MESSAGE
});
});
});
});
Reply
Walter Odibi
January 20, 2000
Hi there, thanks for your comment. I see why this is a problem. The onChange() function seems wrong in combination.
To combine onChangeFunctions use this method
$w("#Person, #weeks, #weeks2").onChange(() => {
//code here
});
Walter
Aug 8, 2022
More Details? Watch video
Hi, you can click here to watch the video https://www.youtube.com/watch?v=9bx7-nBeZ5c
Reply
Walter Odibi
January 20, 2000
Walter
Jul 11, 2022
For you
📺 WATCH THE VIDEO https://www.youtube.com/watch?v=AgPJEU8wpp0
Reply
Walter Odibi
January 20, 2000
Walter Odibi
Apr 18, 2022
Awesome Feature
This tutorial shows you how to display views on your Wix repeater.
📺WATCH VIDEO HERE https://www.youtube.com/watch?v=Iz7SdaCSdXg
Reply
Walter Odibi
January 20, 2000
Walter Odibi
Apr 18, 2022
Amazing tutorial
This amazing tutorial will show you how to a comment section to your WIX dynamic page.
📺WATCH VIDEO HERE https://www.youtube.com/watch?v=f8-vJQFNZ_c
Reply
Walter Odibi
January 20, 2000
Walter Odibi
Apr 10, 2022
Great Feature🎉
This amazing tutorial will show you how to add a visitor view counter to your WIX dynamic page.
🚩MORE TUTORIALS https://www.wixgenius.com/wix-tutorials
Reply
Walter Odibi
January 20, 2000