Support Forums

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Joomla Search - Add Highlighted Search Terms to Search Results

Featured Lock Resolved Task
Hi team,

I found this blog here,

https://www.joomshaper.com/blog/how-to-improve-search-results-page-in-joomla-3-4

Super helpful, but I cannot add highlighted search term to Joomla Search.

I have tried to add,

<span class="highlight">Joomla</span>

To my template.css file by going to Extensions > Template Manager > My Template > css > template.css

But the highlighted search terms still do not work.

The rest of that blog was so helpful but really need this feature to work.

Can you please offer some insights or additional steps to try?

Thanks

4 Answers

Paul Frankowski - Staff

More than a month ago #Permalink
Hi,
first, be smart and NEVER edit template core files, you have to use custom.css file instead. More in Helix Documentation.

second, about what helix we are talking about? helix3 or Helix Ultimate.
Mentioned blog post (mine) was written 4 years ago.

Paul Frankowski - Staff

More than a month ago #Permalink
In Helix Ultimate you can use below example code (where? Read in Helix Manual)

.highlight {background: yellow; padding:0 4px;}


yellow.jpg

Attachments (1)

  • yellow.jpg
    yellow.jpg 70.6 KB

Tuan

More than a month ago #Permalink
Thank you for your reply.

I'm sorry I wasn't clear. The search results have highlight search terms, but I actually need the articles itself to have highlighted search terms once clicked on the search results.

This way, once my users click on a search result title, the article that opens will have highlighted search terms as well.

I am using Helix Ultimate.

Any insights you can provide would be greatly appreciate.


Thanks

Paul Frankowski - Staff

More than a month ago #Permalink
It requests PHP customization probably, sorry I cannot help.


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 135
Sifat

Sifat

Total Accepted Answers: 86
Toufiq

Toufiq

Total Accepted Answers: 53
Pavel

Pavel

Total Accepted Answers: 6
Rifat Wahid Alif

Rifat Wahid Alif

Total Accepted Answers: 5

114

Templates

293144

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us