Adding and customizing the Search block

Permalink Browser Info Environment
I'm looking to add a search bar to the top of the web home page (or in the Header area) on each page the functionality is fine but the current search block display or presentation gives me a problem - I'm trying to get it to fit in a line and be about 60 pixels high.

The problem is that the standard display has too much white space around it.

Ideally, I'd like to use something that displays like the "Intelligent Search that shows when you are in the Dashboard.

I'm not sure how a change to the CSS affects the Viewport theme. (add to customization on the Theme or make a direct change in the CSS - where?? Main or...

Any thoughts or direction would be appreciated.

1 Attachment

Type: Discussion
Status: In Progress
HOBOcs
View Replies:
HOBOcs replied on at Permalink Reply 1 Attachment
HOBOcs
additional Display
c5mix replied on at Permalink Reply
c5mix
After adding the search block to the Header area, try adding this CSS to the "Add your CSS" box in the theme's customization panel:
header .ccm-search-block-form, header .ccm-search-block-form input {
margin-bottom:0px!important;
}
header .ccm-search-block-form h3 {
display:none!important;
}
HOBOcs replied on at Permalink Reply
HOBOcs
OK , I tried that and it appears to work (presentation wise) but when I invoke a search (with a defined results page) it puts the page list of search results in the header area ... and then it shows again on the "search page" as it should.

What if I put the search in the "Feature" area just below the menu. Is it just a matter of changing "Header" to Feature in your CSS code??


Also - spacing is an issue and I'd like to reduce white space 2 areas (1/2 inch) to something less .. found (1) under the top band (Home and date) and (2) between the Header and the Feature below the menu ... again more CSS
Thoughts
c5mix replied on at Permalink Reply
c5mix
You need to be able to remove the search block from the header on the search results page. But since it's a Global Area you won't really be able to do that. Maybe you can try hiding it with CSS on that page. Try adding this CSS to the "Header Extra Content" custom attribute field on that page:
<style>
header .ccm-search-block-form { display:none!important; }
</style>


Where exactly is the other spacing you'd like to reduce?

concrete5 Environment Information

# concrete5 Version
5.6.1.2

# concrete5 Packages
Advertisement (1.7.7), CoolInput Search (1.0), Easy Countdown (1.0.1), Galleria image gallery (2.0), SimpleEvent (5.0.1), Sortable Fancybox Gallery (1.17), ViewPort (1.0), Whale Nivo Image Slider (1.1).

# concrete5 Overrides
blocks/guestbook, mail/block_form_submission.php, mail/block_guestbook_notification.php

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.2.17

# PHP Extensions
bcmath, calendar, cgi-fcgi, ctype, curl, date, dom, exif, filter, ftp, gd, gettext, hash, iconv, imap, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, posix, pspell, Reflection, session, SimpleXML, sockets, SPL, SQLite, standard, tokenizer, xml, xmlreader, xmlwriter, xsl, Zend Optimizer, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 90M
post_max_size - 8M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 7M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
pcre.backtrack_limit - 100000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH

Browser User-Agent String

Mozilla/5.0 (Windows NT 5.1; rv:33.0) Gecko/20100101 Firefox/33.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.