Notifications
Clear all

wpForo 1.x.x Search Results Lowercase

6 Posts
2 Users
0 Likes
344 Views
jim
Posts: 17
 jim
Topic starter
(@jim)
Active Member
Joined: 2 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: 822
(@tutrix)
Noble Member
Joined: 3 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)

Reply
jim
Posts: 17
 jim
Topic starter
(@jim)
Active Member
Joined: 2 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.

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

Noble Member
Posts: 822

@jim

Test the searchform here, there is no change to lowercase

Reply
jim
Posts: 17
 jim
Topic starter
(@jim)
Active Member
Joined: 2 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?

Reply
jim
Posts: 17
 jim
Topic starter
(@jim)
Active Member
Joined: 2 years ago

Any answers to this?

Reply