Jump to content
SITE UPDATES
  • Welcome To Focuslinks Forum
  • Sharing Is Caring
  • invite your family and friends



How to solve broken UI of the search bar with the current Acme Theme with latest IPS


Focuslinks

Recommended Posts

  • Administrators

How to solve breaking the UI of the search bar with the current Acme Theme version posted here because of the improved UX in the latest version of the IPS.

Problem ??

search.thumb.png.74fbc686b88fa95c50ed33b4d114b4ea.png

 

Solution:

Go to Admin Panel and Navigate to customization, select themes then go to your current  themes and select Edit HTML and CSS

 

search3.thumb.png.17df8eace273749b3e8a6df2a4be3b45.png

 

 

 

then search for QIUCKSEARCH 

search2.thumb.png.414dce48378b4bc707edbc5c0eddc0f1.png

 

Then PASTE and replace with the code below

 

{{if !$preview and \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'search' ) ) AND !\in_array('ipsLayout_minimal', \IPS\Output::i()->bodyClasses )}}
	<div id="elSearchWrapper">
		<div id='elSearch' data-controller="core.front.core.quickSearch">
			<form accept-charset='utf-8' action='{url="app=core&module=search&controller=search&do=quicksearch" seoTemplate="search" noprotocol="true"}' method='post'>
                <input type='search' id='elSearchField' placeholder='{lang="search_placeholder"}' name='q' autocomplete='off' aria-label='{lang="search"}'>
                <details class='cSearchFilter'>
                    <summary class='cSearchFilter__text'></summary>
                    <ul class='cSearchFilter__menu'>
                        {{$option = \IPS\Output::i()->defaultSearchOption;}}
                        <li><label><input type="radio" name="type" value="all" {{if \IPS\Output::i()->defaultSearchOption[0] == 'all'}} checked{{endif}}><span class='cSearchFilter__menuText'>{lang="everywhere"}</span></label></li>
                        {{if \count( output.contextualSearchOptions )}}
                            {{foreach array_reverse( output.contextualSearchOptions ) as $name => $data}}
                                <li><label><input type="radio" name="type" value='contextual_{expression="json_encode( $data )"}'{{if \IPS\Output::i()->defaultSearchOption[0] == $data['type']}} checked{{endif}}><span class='cSearchFilter__menuText'>{lang="$name"}</span></label></li>
                            {{endforeach}}
                        {{endif}}
                        {{foreach output.globalSearchMenuOptions() as $type => $name}}
                            <li><label><input type="radio" name="type" value="{$type}"{{if empty(\IPS\Output::i()->contextualSearchOptions) and \IPS\Output::i()->defaultSearchOption[0] == $type}} checked{{endif}}><span class='cSearchFilter__menuText'>{lang="$name"}</span></label></li>
                        {{endforeach}}
                    </ul>
                </details>
				<button class='cSearchSubmit' type="submit" aria-label='{lang="search"}'><i class="fa fa-search"></i></button>
			</form>
		</div>
	</div>
{{endif}}

then click SAVE 

Enjoy  ?

Link to comment
Share on other sites





Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.

Public

Public

Please enter your display name

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

adblock.png.e109f4a5e532cb892362c02b893acd64.png

 

 

Please disable AdBlock to proceed with the destination page.

I Have Disable AdBlock