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!! π
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!
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.
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 π
