Searchresult - title is broken by css

Discuss Search Engine Optimization in relation to Joomla! 3.x. This forum will also have discussions on SEF/SEO Joomla! 3.x extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Trigully
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Thu Dec 22, 2011 12:50 pm

Searchresult - title is broken by css

Postby Trigully » Fri Aug 18, 2017 11:03 am

When an article's title contain the searchword, the title gets broken with <span class="highlight">searchword</span>.

If my searcword is "stemme" - I get a results that's like this: Planbe<span class="highlight">stemme</span>lse. The title should say Planbestemmelse and not get broken like this.

Anyone who has a clue/solution? Most appreciated :)

User avatar
ranwilli
Joomla! Master
Joomla! Master
Posts: 19032
Joined: Sun Feb 19, 2006 6:47 pm
Location: Toledo, OH
Contact:

Re: Searchresult - title is broken by css

Postby ranwilli » Fri Aug 18, 2017 11:26 am

Adjust your css...

Make a "custom" css stylesheet if you don't already have one, so that your change doesn't get overwritten on upgrade.

Add the appropriate css probably like:
Existing:

Code: Select all

span.highlight {
    background-color: #FFFFCC;
    font-weight: bold;
    padding: 1px 0;
}

New:

Code: Select all

span.highlight {
    background-color: none;
    font-weight: normal;
    padding: 0;
}

if need be, you could add specificity to apply the "new" css only to titles.
Don't HACK the Joomla! core. Extend and Override.
Stay ON the update path.
http://harpervance.com

MaiklE
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Wed Apr 26, 2017 7:29 pm

Re: Searchresult - title is broken by css

Postby MaiklE » Fri Aug 18, 2017 11:40 am


Trigully
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Thu Dec 22, 2011 12:50 pm

Re: Searchresult - title is broken by css

Postby Trigully » Fri Aug 18, 2017 11:43 am

Ah, thanx :) I'll just wait for an update then :)


Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 3.x”

Who is online

Users browsing this forum: planteg and 9 guests