Notifications
Clear all

wpForo 1.x.x [Closed] Search Results Lowercase

6 Posts
2 Users
0 Reactions
745 Views
Posts: 27
 jim
Topic starter
(@jim)
Eminent Member
Joined: 4 years ago

The word or phrase that a user searches is showing up as all lowercase in the search results even though the CSS has text-transform set to none. It appears the text is getting converted and outputted to lowercase in the HTML itself. Is there a way to keep any uppercase letters as uppercase in the search results?

5 Replies
Tutrix
Posts: 1453
(@tutrix)
Noble Member
Joined: 5 years ago

@jim

the CSS formatting for this is empty in the wpforo style.css

#wpforo # wpforo-wrap .wpforo-search-wrap .wpforo-search-content .wpf-sword {}

probably formatted your Wordpress theme here

but you can add the following code to the custom code

#wpforo #wpforo-wrap .wpforo-search-wrap .wpforo-search-content .wpf-sword {
text-transform: none !important;
}

Dashboard > Forums > Settings > Style (custom css)

Posts: 27
 jim
Topic starter
(@jim)
Eminent Member
Joined: 4 years ago

Hi, the actual HMTL has already turned the word lowercase, though. The HTML is uppercase in the original post, but the HTML is lowercase in the search results. It's not the CSS affecting it.

1 Reply
Tutrix
(@tutrix)
Joined: 5 years ago

Noble Member
Posts: 1453

@jim

Test the searchform here, there is no change to lowercase

Posts: 27
 jim
Topic starter
(@jim)
Eminent Member
Joined: 4 years ago

I see what's happening. If I search for "Test the searchform here" it keeps the HTML search results uppercase, but if I search for "test the searchform here" it converts the HTML to lowercase. Is there a way for the search results to reflect the original post regardless of how the user enters the search string?

Posts: 27
 jim
Topic starter
(@jim)
Eminent Member
Joined: 4 years ago

Any answers to this?