Tagged: search funtion of out whack
February 22, 2021 at 5:08 pm #503176
I use the Genesis Framework Agency Pro theme on my site at https://solohacks-academy.com.
If I use the a Search widget (even just the default one) in the sidebar, it works for searching all the words I can think of typing in ... except if I type my own name in it such as "Shobha" or in full form as "Shobha Ponnappa" ... when the entire layout goes wonky!!!!!
You can try it. I have no clue why this is happening, as I am not a techie. Could anyone please help me fix this.
I should think when type my own name in the search field I should get an archive that shows any posts where I have referred to myself by name, isn't that so? And why does the layout go out of whack?
Thanks for your urgent assistance,https://solohacks-academy.com/how-to-be-a-pro-at-copywriting-landing-pages-5-key-tips/
Child Theme: Agency ProFebruary 24, 2021 at 7:24 am #503196
I can tell you what's happening, but not why. When I view your search results source code in Firefox, I can see that you have some malformed HTML.
There are quite a few places where you have header tags and content wrapped in paragraph tags. The problem starts here:
<p><h3 style="color: #4a70ad;">Create A Membership Site Online By Mastering Six Key Aspects: Value-Creation, Strategy, Business Model, Technology, Member Experience, And Marketing.</h3> </p>
Just about every other header tag on the page has this as well.
Neither the Genesis Framework nor your Studio Press theme would generate this bad HTML. I suggest you look for plugin conflicts, maybe a typo in any custom code, or an error with your pagebuilder, if you're using one, that is.
February 24, 2021 at 8:06 am #503200
Thanks for the suggestions, Victor. But I have one doubt. If the HTML was the issue, then other search pages should also be having layout issues. But while worrying about this I found another possible reason, and would be grateful for your opinion on this.
My name appears on a page in default layout, as well as on some other pages in full width layout. I tried the search on other similar words (e.g. "bestselling book") which appears on a full width page. Again the layout goes out of whack. But if I search a word that only appears on default page layout (content on left with sidebar on right), then the search results are fine.
So there is some issue with the theme with respect to search done on full width pages. If this is so, is there any way to correct this?
Thanks and regards.February 24, 2021 at 3:11 pm #503205
No, I don't think so. I revisited your site and did some searches on other keywords. The bad HTML is on all of your search results pages. View the page source code in your browser tools and you'll see the bad HTML for yourself. I use Firefox because it's easier to see bad HTML. Bad HTML is highlighted in red.
February 24, 2021 at 5:59 pm #503208
OK, thanks so much. I'm going to have to clean out the HTML fully. Appreciate your advice.February 25, 2021 at 8:41 am #503213
Victor, there is definitely some fault in the Genesis themes with respect to search function on full-width pages. A programmer by the name of Sridhar Katakam specifically had an article on this problem as many Genesis users had the same problem.
This is where I found the solution:
He had therein supplied a code to slightly modify search.php (with some tweaks in css also) so that the theme is made to show search results as a list instead of its default format. Now the search is working absolutely fine.
You can see it at work on my site:
Just thought I would put this in the forum so that other people having the same problem can know there is a solution.
You must be logged in to reply to this topic.