Remove thumbs entirely from menu search

Posted in: Newsmag
Post count: 9544

Hi folks
could not find theme panel option for this, or forum topic for newsmag, though I know it’s been covered before.

What is best way to disable the thumbs from the menubar search to just have “results” but no thumbnail at all? Basically just text-based results and not the placeholder thumb.

I know there is template for this someplace. 🙂

Thanks!

Chris

Post count: 9544

Actually, if I’m having a search box at top of the sidebar, maybe its redundant to even have the search icon in the menu bar. Presumably I could edit the menu header module being used to remove the search box div/span?

Sorry — maybe two options, and this would make a great tutorial since this comes up a lot if memory serves.

a) how to remove the thumbs entirely from the ajax search box; mod a template for ajax search?

b) how to remove the search span/div entirely from xx menu bar file ?

Thanks as ever. Obviously I’m redoing stuff for v3 which is why I hadn’t needed to pester y’all about this stuff since v2 launched 🙂

Post count: 6535

Hi

For the moment the theme dos not have an option to hide the thumbnail on live search. A possible solution would be to edit td_module_mx2.php file and remove the featured image form module’s structure. You can also change the module used for ajax search with one which does not display the feature image: http://screencast.com/t/XQJmTMvIfh It can be used module 9 for example: http://demo.tagdiv.com/newsmag/category/module-9-category/

The search field is generated in header-menu.php, this is the code for it: http://screencast.com/t/odiDmTfyloOW

Let me know if you need further assistance on this.
Thanks!

Post count: 9544

Awesome sauce !

Thanks, I’ll play with that 🙂

I’d rather not turn on the thumbs for the search, but like the search in the top bar, so this should work.

Post count: 9544

Hm.

Well couple of wrinkles.

1) changing the mx2 to mx9 still tries to load a large thumbnail 511×400

		//build the results / try mx9 vs mx2 8.22.16
		if (!empty($td_query->posts)) {
			foreach ($td_query->posts as $post) {
				$td_module_mx9 = new td_module_mx9($post);
				$buffy .= $td_module_mx9->render();
			}
		}

2) removing the thumbnail from the mx2 module leaves the blank space; so I tried removing the outer div, and then applying a style class override at bottom of style.css to make all text font size 15px; but had no impact.

Still playing with this. Seems like I need to double check the mx2 module not being used in anything else first. Might need to make new module like x2search then revise the CSS for that to remove the thumbnail indent padding before the text loop.

———— EDIT ———–
oh, duh — perhaps I should try module 9 vs mx9 ? LOL.

THis worked (and double duh)

//build the results / try _9 vs mx2 8.22.16
if (!empty($td_query->posts)) {
foreach ($td_query->posts as $post) {
$td_module_9 = new td_module_9($post);
$buffy .= $td_module_9->render();
}
}

  • This reply was modified 9 years by simchris.
  • This reply was modified 9 years by simchris.
  • This reply was modified 9 years by simchris.
Post count: 6535

Hi

Glad you have managed to find a solution.
Thanks for letting us know and for sharing your solution here.
Have a good day!

Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.