Remove Search Widget from HTML5 target?

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
dizzo
Propeller Head
Posts: 21
Joined: Sun Jul 27, 2014 10:47 am

Remove Search Widget from HTML5 target?

Post by dizzo »

Is there a way to completely remove the search widget from the HTML5 target?

In the skin editor, I can easily find how to customize and stylize that search widget, but not remove it. I am interested in removing that widget.

Thanks,

-Patrick
2bemused
Propeller Head
Posts: 10
Joined: Fri Aug 08, 2014 6:12 am
Location: Ireland
Contact:

Re: Remove Search Widget from HTML5 target?

Post by 2bemused »

You can't remove the widget but you can make it disappear.

In the Styles option of the Skin Editor, for all the Search options, set all borders to 0px and all background colours to transparent, even the gradients.

The widget will now merge into the background.

Philip
To do is to be - Socrates
Doooby doooby doo - Sinatra
Yabba Dabba Doo - Fred Flintstone
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Remove Search Widget from HTML5 target?

Post by NorthEast »

To remove it, just set Search Bar > Layout > Display - none.
2bemused
Propeller Head
Posts: 10
Joined: Fri Aug 08, 2014 6:12 am
Location: Ireland
Contact:

Re: Remove Search Widget from HTML5 target?

Post by 2bemused »

Dave Lee wrote:To remove it, just set Search Bar > Layout > Display - none.
An altogether much more elegant solution. Thanks Dave.

Philip
To do is to be - Socrates
Doooby doooby doo - Sinatra
Yabba Dabba Doo - Fred Flintstone
dizzo
Propeller Head
Posts: 21
Joined: Sun Jul 27, 2014 10:47 am

Re: Remove Search Widget from HTML5 target?

Post by dizzo »

Thanks everyone, most excellent and it works. Much appreciate the Mad Wisdom. :)
Matt Collins
Propeller Head
Posts: 33
Joined: Thu Apr 17, 2014 7:01 am
Location: Columbus, Georgia, United States.

Re: Remove Search Widget from HTML5 target?

Post by Matt Collins »

What if I wanted to move the Search widget from the header to the toolbar?
The reasonable man adapts himself to the world,
the unreasonable man persists in trying to adapt the world to himself.
Therefore all progress depends on the unreasonable man.

- George Bernard Shaw
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Remove Search Widget from HTML5 target?

Post by NorthEast »

Matt Collins wrote:What if I wanted to move the Search widget from the header to the toolbar?
You can't do that using the skin editor.

You might be able to do it using a little bit of scripting; if you have experience and that sounds up your street, then have a look at my blog post here about how to modify the skin:
https://ukauthor.wordpress.com/2014/08/08/customising-the-flare-html5-skin/
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Remove Search Widget from HTML5 target?

Post by NorthEast »

Matt Collins wrote:Is there a quick version of how do move the search widget to the skin's toolbar you could share here?
In the skin toolbar script, try something like:

Code: Select all

$(document).ready(function(){
	$("div.search-bar").appendTo("div.buttons");
});
It'll probably need some refinement though.
Post Reply