I'm trying to make my search bar like the one in this forum. I'm using the PostNuke Xanthia theme that shipped with PostNuke and my search bar is twice as tall as the search box itself. I want a little space on each side, but not double the height. How do I do this?
I've tried editing the HTML wthout luck.
I've tried editing the CSS without luck.
Where do I look next?
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Search Bar Modification
-
- Rank: Developer
- Registered: Feb 23, 2005
- Last visit: May 09, 2010
- Posts: 399
Well, you could cheat a bit. If you are using firefox it makes life easier cause you should have the developers bar extention installed. Thennnnnn, view the source of this page to see what styles are used for that search box up there next, look at the CSS for this page for the stlyes and copy it to see how it works.
Of cause it would be a good idea to then write your own style and search box to suit your theme. You'll find thats how mostpeople do it besides bying somebooks and vistiting sites to learn about styles. -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Mar 31, 2005
- Posts: 11
I never thought about installing that extension, Thanks! I found the CSS style that is used long ago, but nothing I do with that style changes the height of that bar. I can add padding and cell padding, etc, but the height of the div layer dosen't change. It just uses the background color. -
- Rank: Developer
- Registered: Feb 23, 2005
- Last visit: May 09, 2010
- Posts: 399
Are you reloading the templates after each time to change some thing in the theme or CSS? No changes will show up unless you reload the templates in template admin.
You also need to remeber that if your trying to change the front page, there is a home.htm in the modules folder that is inside the templates folder. Editing the master.htm won't show up on the fron page -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Mar 31, 2005
- Posts: 11
Got it figured out! I was looking for something designating the height of the div layer, but nothing does. I guess it is just using the default height. I took your adivice on finding more info on CSS and wound up on the www.w3schools.com site. There I learned that CSS has a height tag. Once I added that to the style ued for the search bar. Got it changed! Thanks for your help and direction!
Just our of curiosity where is the search function that the template calls actually located? -
- Rank: Developer
- Registered: Feb 23, 2005
- Last visit: May 09, 2010
- Posts: 399
Have a look in modules/Xanthia/plugins, it's in there. If you read up on the Xanthis docs you'll see that you can have theme specific plugins too by putting a plugins folder in your theme
- Moderated by:
- Support
