Website
44

5 Best WordPress eCommerce Plugins For Your Online Store in 2023
eEommerce, Technology, Website
Maximizing Your Digital Impact: Planning a Website Redesign That Works
SEO, web design, Website, WordPress
Revolutionize Your Website: Why Headless is the Clear Winner
eEommerce, web design, Website, WordPress
Website Design – 8 Best Tips for a Stand-Out Web design and Brand!
web design, Website, WordPress
Powerful Custom WordPress Development: Website That Fits Your Vision
eEommerce, Technology, web design, Website, WordPress
In 2023, why is it important to have an ecommerce website?
eEommerce, web design, Website
How to Create a Stand-Out E-commerce Website Design in 2023: Try These Tips
eEommerce, SEO, Technology, web design, Website
Top reasons why SME business needs an e-commerce website in 2022
Digital marketing, eEommerce, Website
Website Redesign: How Do You Plan?
eEommerce, SEO, Technology, web design, Website
Future of Marketing After Pandemic – COVID-19
Digital marketing, SEO, Technology, Website
How To Increase Organic Traffic From SEO
SEO, Technology, Website
Clarviz Agency Ranked 20 As Top 20 Web Development Agency
review, Technology, Website
/* This is the CSS for the highlight effect */
.highlighted-term {
background-color: #FFD700; /* A nice gold/yellow color */
color: #000000;
padding: 2px 4px;
border-radius: 4px;
font-weight: bold;
}
// Wait for the entire page to load before running the script
window.addEventListener('load', function() {
// Bricks Dynamic Data gets the current archive category/term name
const termToHighlight = 'Website' ;
// This is the CSS class you added to your posts container in Step 1
const searchArea = document.querySelector('.posts-highlight-area');
// If we don't find the term or the search area, stop the script
if (!termToHighlight || !searchArea) {
return;
}
// This is a regular expression to find the term.
// 'gi' means Global (find all matches) and Case-Insensitive.
const regex = new RegExp(`(${termToHighlight})`, 'gi');
// Get all descendants of the search area
const allElements = searchArea.getElementsByTagName('*');
// Loop through every element inside your posts container
for (const element of allElements) {
// Only look at the direct text content of an element
if (element.children.length === 0 && element.textContent) {
// Replace the found text with the same text wrapped in our styled span
// We use a function here to preserve the original casing of the found text
element.innerHTML = element.innerHTML.replace(regex, (match) => `<span class="highlighted-term">${match}</span>`);
}
}
});












