- This topic has 11 replies, 2 voices, and was last updated 16 years, 6 months ago by imported_Ryan.
-
AuthorPosts
-
April 30, 2008 at 9:05 pm #182jessMember
Sorry if this has been asked before, I searched around and didn’t see the topic… I am trying to add a search function to my nav bar and wondered if there is an easy way to do this using suckerfish? I tried adding one in the header.php file and it drops the search box below the nav bar to the content area. I’m sure there is something I’m missing that is easy and I’m overlooking. Thanks for any help. ” title=”Smiley” />
April 30, 2008 at 11:04 pm #2809imported_RyanMemberYep, what you need to do is to place the search form inside one of the list items. Then it will display on the menu bar. If you want to shunt it to the other end of the menu then apply float:right to that particular list item.
April 30, 2008 at 11:05 pm #2810jessMemberThanks! I think I have my coding wrong in the header because I don’t have a list of items. This is what I have… I mean, it works and all, but I think it’s coded wrong because when I add in the search it doesn’t work properly. THANK YOU ” title=”Wink” />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>" />
<title><?php if (is_single() || is_page() || is_archive()) { ?><?php wp_title(”,true); ?> | <?php } ?><?php bloginfo(‘name’); ?></title>
<link rel="shortcut icon" href="<?php bloginfo(‘template_directory’); ?>/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="<?php bloginfo(‘template_directory’); ?>/style.css" media="all" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo(‘name’); ?> RSS Feed" href="<?php bloginfo(‘rss2_url’); ?>" />
<link rel="pingback" href="<?php bloginfo(‘pingback_url’); ?>" />
<?php wp_head(); ?>
</head><body>
<div id="wrapper">
<div id="header">
</div>
<?php suckerfish(); ?>
April 30, 2008 at 11:10 pm #2811imported_RyanMemberAh, no.
The list items are INSIDE the [code:3gcq75xc]<?php suckerfish(); ?>[/code:3gcq75xc] function.
You either need to create your list manually (without using the suckerfish() function) or install the beta version of the plugin and use the custom code option.
April 30, 2008 at 11:11 pm #2812jessMemberAhh I thought that after I replied. I am using the beta so I will have to do the custom code option. Damn. Haha.
Thank you ” title=”Smiley” />April 30, 2008 at 11:13 pm #2813jessMemberOne last unrelated question… is it possible to have a little calendar that drops down for the archives instead of the list of months? I’ve seen this on other sites… thanks!
May 1, 2008 at 6:39 am #2814imported_RyanMember"jess" wrote:s it possible to have a little calendar that drops down for the archives instead of the list of months?That is a very good idea!
I’m not sure how it works, but there’s a widget that comes with WordPress which displays a calendar. If you could back engineer the PHP for that (or find some code for it online somewhere), all would would need to do is make sure the list item is wide enough, insert the PHP into the list item and your calendar would displayed ” title=”Smiley” />
Of course, you would need to know some PHP and quite a lot about how dropdowns work to achieve this.
I’d be keen to have a crack at trying it, but only as a paid job as it could quite a lot of time to prepare. If you are interested, contact me via our <a href="https://geek.hellyer.kiwi/contact/">contact page</a> for pricing information.
May 1, 2008 at 1:34 pm #2815jessMembercool, i’ll let you know.
so for the search, i have a custom menu now which looks great, but i am putting this code in for the search which is not working (well it works, but the search function doesn’t work and there is text in the search box):
<li class="search">
<form method="get" id="searchform" action="<?php bloginfo(‘home’); ?>">
<input type="text" class="textbox" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" />
<input type="submit" id="searchsubmit" value="Search" />
</form>
</li></ul>any help? thanks!!
May 1, 2008 at 1:39 pm #2816imported_RyanMemberHi Jess,
I can’t remember off the top of my head what the code required for a search box is. But if you grab the code from a theme which has a functioning search box, that should do the trick.Just to check … you aren’t entering this into the custom code box in the beta plugin by any chance? If so, that won’t work at all as it can’t parse PHP code.
May 1, 2008 at 1:42 pm #2817jessMemberThat’s basically what I did, just grabbed some from a theme and I put it in the custom code box in the WP admin suckerfish plugin area. But it doesn’t seem to be working right. I am using version 2.0. Thanks!
May 1, 2008 at 10:53 pm #2818jessMemberSooo I can’t use php in the version I’m using? Should I try a different approach? Anyone out there have any experience in this? I’ve scoured the web and have not found much help and I really don’t want to use a different drop down menu, I like the way this functions and spent the time creating it.
Thanks!May 2, 2008 at 11:21 am #2819imported_RyanMemberYep, a new approach is needed.
You will need to enter the PHP required to generate the code required to display the menu manually in your theme. If you just want a static menu which isn’t controlled by WordPress then this isn’t too difficult, however if you want a dynamic one with WordPress pages, categories etc. displayed, then you will need to use the WordPress PHP functions to display whatever code you are wanting rather than the suckerfish() function used by the dropdown plugin.
-
AuthorPosts
- You must be logged in to reply to this topic.