MG 2.1 Remove XFMG search tabs from search?

If you absolutely have to, you can also modify the search_form template:
HTML:
<xf:foreach loop="$tabs" key="$tabType" value="$tab">

Change to:
HTML:
<xf:foreach loop="$tabs" key="$tabType" value="$tab" if="!in_array($tabType, ['xfmg_album', 'xfmg_comment'])">

(I haven't tested that but it looks right...)
 
Yet another option (if hiding instead of removing would be acceptable)

Code:
html[data-template="search_form"] div.p-body-pageContent form[action="/search/search"]
{
    & a[href="/search/?type=xfmg_album"],
    & a[href="/search/?type=xfmg_comment"]
    {
        display: none;
    }
}
in extra.less
Thanks, I used that code to remove the Search Resources button on the search form.
 
Back
Top Bottom