Remove thumbnails from search box results

Posted in: Newsmag
Post count: 9544

Howdy!
I know this is an old topic; and we tweaked this for 3.xx back in the day; so need to do same for 5xx.
Basically don’t want any thumbnails when seeing results from the search box in the menu bar.
I thought maybe there would be setting for this as toggle in a block someplace (‘search block’) or perhaps under the header section for search box (which seems like might be good place for this option).

Don’t want to hide with CSS as that still generates thumbs and loads them. Want to disable the function for thumbs.
I seem to recall maybe a function over-ride for this.

The old 3xx stuff we have running was so hacked up for speed years back, that trying to pull out mods to re-use is like punching myself. Some simple stuff like making footer full width to match top menu, I had handy so was simple.

Few other things I’m re-learning, as it’s been several years (like what, 2017?) πŸ™‚

THANKS FOLKS!! πŸ™‚

Post count: 35449

Hi,
Unfortunately, the option has been added only for the Newspaper theme.
For this, you need to edit a file from the theme wp-content/plugins/td-composer/legacy/Newsmag/includes/modules/td_module_mx2.php and comment the line for echo $this->get_image($image_size …) then you have to use css to adjust the layout, also for mobile, you have to edit other files.
Thank you!

Post count: 9544

Thanks! πŸ™‚

Post count: 9544

Hi
realized I could search forum for the old topic from 3xx days.

https://forum.tagdiv.com/topic/remove-thumbs-entirely-from-menu-search/

However the old screen cap no longer valid, so having trouble finding comparable template file to mod in the booster plugin folders.

Changing the module being used for results from mx2 to m9.

It might be simpler to just completely remove the search box from the menu, which would appears we might be able to edit this:

/tdcomposer/legacy/newsmag/parts/header/headermenu.php
//<div class="td-search-wrapper">

Suggestions helpful. Luckily I only need help with this every 5 years πŸ™‚
Thanks for your patience.

  • This reply was modified 3 years by simchris.
Post count: 35449

Hi,
The files mx2 and m9 can be found here:
wp-content/plugins/td-composer/legacy/Newsmag/includes/modules/td_module_mx2.php in my opinion it seems easier to comment in the mx2 file and use a css to give full width to the module content.
Thank you!

Post count: 9544

Thanks! πŸ™‚

Post count: 9544

Hi
just update for anybody else looking to remove the images from search box;
once I removed entirely the line from
echo $this->get_image($image_size …)

plugins/td-composer/legacy/Newsmag/includes/modules/td_module_mx2.php

I added this to our CSS
.td_module_mx2 .item-details {
margin: 0 20px 20px 20px;
display: block;
min-height: 60px;
}

Shazam! Works perfectly πŸ™‚

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