Search results page displays to far right side of page instead of in main content area. - Forum | JoomShaper
Staff replied Helix Framework

Search results page displays to far right side of page instead of in main content area.

Asked by Shirley Craig 3 years ago Last activity 3 years ago

The Joomla search results page displays to the far right of the page. The search results page should show (was showing) in the main content area and now it's on the right. This is not in a module position. I tested the search in Joomla Protostar and it displays fine.

https://screenrec.com/share/I518RaPYiy

4 replies

Paul Frankowski Senior Staff
3 years ago · edited

Hi Shirley,

Ok, I see... It looks that somebody from your "team" added & used that

.search {
  margin-left: 880px;
}

to extra default.css file.

info_56_2023.jpg

yes, small mistake! Easy correct 4 you.

Shirley Craig Asked this
3 years ago · edited

Thank you, however, I placed the margin code in there to position the search bar in the top position to the right of the page, otherwise it displays behind the logo like this:
https://screenrec.com/share/9zanNC63RU
How to position the search bar where I need it in the upper right and still have the search results come up normally?

With regards to "ALT also is a tragedy in most cases" ...do you mean that I need to place descriptive text into the ALT tags for all images?

Paul Frankowski Senior Staff

Sorry, but joomshaper support is not here to teach CSS and SEO. Support Policy rules.

If you really have to use left-margin but for

#sp-search { }

not.search {} as you did.

But I would use different style than margin.

Log in to reply.