Can anyone point out the directions to have the search form in the header advertising area instead of the main menu
Search Form to Header Advertising Box
9 posts from 4 voices-
Posted 1 year ago #
-
In header.php delete following code:
<span class='search_site'> <?php /* * display the theme search form * the tempalte file that is called is searchform.php in case you want to edit it */ get_search_form(); ?> </span>and replace:
echo "<div class='paim ".$extraClass."'>".$advertising."</div>";with
echo "<div class='paim ".$extraClass."'>"; ?> <span class='search_site'> <?php /* * display the theme search form * the tempalte file that is called is searchform.php in case you want to edit it */ get_search_form(); ?> </span> <?php echo"</div>";Posted 1 year ago # -
Hello Peter
Thanks for the reply i tried what said its not working for me heave look
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta name="google-site-verification" content="5KxLNVqKFduHQNHhcMFXD6rRKA-V_2PjyJQ2EhcrYcc" />
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<?php
global $avia_config;/*
* outputs a rel=follow or nofollow tag to circumvent google duplicate content for archives
* located in framework/php/function-set-avia-frontend.php
*/
if (function_exists('avia_set_follow')) { echo avia_set_follow(); }?>
<!-- page title, displayed in your browser bar -->
<title><?php bloginfo('name'); ?> | <?php is_home() ? bloginfo('description') : wp_title(''); ?></title><!-- add feeds, pingback and stuff-->
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="alternate" type="application/rss+xml" title="<?php echo get_bloginfo('name'); ?> RSS2 Feed" href="<?php avia_option('feedburner',get_bloginfo('rss2_url')); ?>" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /><!-- add css stylesheets -->
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="stylesheet" href="<?php echo get_bloginfo('template_url'); ?>/js/prettyPhoto/css/prettyPhoto.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="<?php echo get_bloginfo('template_url'); ?>/js/projekktor/theme/style.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="<?php echo get_bloginfo('template_url'); ?>/css/<?php avia_option('stylesheet', 'light-skin.css'); ?>" type="text/css" media="screen"/>
<link rel="stylesheet" href="<?php echo get_bloginfo('template_url'); ?>/css/shortcodes.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="<?php echo get_bloginfo('template_url'); ?>/css/slideshow.css" type="text/css" media="screen"/><?php
/* add javascript */
wp_enqueue_script( 'jquery' );
wp_enqueue_script( 'avia-default' );
wp_enqueue_script( 'avia-prettyPhoto' );
wp_enqueue_script( 'avia-html5-video' );
wp_enqueue_script( 'avia-fade-slider' );/* We add some JavaScript to pages with the comment form
* to support sites with threaded comments (when in use).
*/
if ( is_singular() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); }?>
<!-- plugin and theme output with wp_head() -->
<?php/* Always have wp_head() just before the closing </head>
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to <head> such
* as styles, scripts, and meta tags.
*/wp_head();
?><!-- custom.css file: use this file to add your own styles and overwrite the theme defaults -->
<link rel="stylesheet" href="<?php echo get_bloginfo('template_url'); ?>/css/custom.css" type="text/css" media="screen"/>
<!--[if lt IE 8]>
<style type='text/css'> .one_fourth { width:21.5%;} </style>
<![endif]-->
<meta name="msvalidate.01" content="22E938EAC5AC4F3D9B70D9CD24099B20" /></head>
<body id="top" <?php body_class(avia_get_option('boxed'). " ".avia_get_browser()); ?>>
<div id='wrap_all'><!-- ####### HEAD CONTAINER ####### -->
<div class='container_wrap' id='header'><div class='submenu'>
<div class='container'>
<?php
/*
* display the main navigation menu
* modify the output in your wordpress admin backend at appearance->menus
*/
$args = array('theme_location'=>'avia2', 'fallback_cb' => '', 'max_columns'=>4);
wp_nav_menu($args);
?><ul class="social_bookmarks">
<li class='rss'>"><?php _e('Subscribe to our RSS Feed', 'avia_framework')?>
<?php
if($twitter = avia_get_option('twitter')) echo "<li class='twitter'>".__('Follow us on Twitter', 'avia_framework')."";
if($facebook = avia_get_option('facebook')) echo "<li class='facebook'>".__('Join our Facebook Group', 'avia_framework')."";
?><!-- end social_bookmarks-->
</div>
</div>
<div class='container'>
<?php
/*
* display the theme logo by checking if the default css defined logo was overwritten in the backend.
* the function is located at framework/php/function-set-avia-frontend-functions.php in case you need to edit the output
*/
echo avia_logo();// shows a partner image
if($advertising = avia_get_option('head_advertising', false, false, true))
{
$extraClass = "";
if(strpos($advertising, '<img') === false && strpos($advertising, '<script') === false) $extraClass = 'paim_framed';
echo "<div class='paim ".$extraClass."'>"; ?>
<span class='search_site'>
<?php
/*
* display the theme search form
* the tempalte file that is called is searchform.php in case you want to edit it
*/
get_search_form();
?></span>
<?php echo"</div>";
}
?></div>
<div class='main_menu'>
<div class='container'>
<?php
/*
* display the main navigation menu
* modify the output in your wordpress admin backend at appearance->menus
*/
$args = array('theme_location'=>'avia', 'fallback_cb' => 'avia_fallback_menu', 'max_columns'=>4);
wp_nav_menu($args);
?></div>
<!-- end container--></div>
</div>
<!-- end container_wrap_header --><!-- ####### END HEAD CONTAINER ####### -->
Posted 11 months ago # -
Hi Peter
After i reseted the theme the search bar aperred thanks for the help , hope you can help me to get rid of the right and left border as well having hard time fining where it coming from
Regards
Posted 11 months ago # -
Hey,
Glad Peter could help. Can you give us a link? I can't imagine where those right and left border appear.
Regards,
IsmaelPosted 11 months ago # -
Posted 11 months ago #
-
Hey,
You can drop this on your custom.css
.search_site { border: none!important; }Regards,
IsmaelPosted 11 months ago # -
Hi Ismael
I think looks little bit weird is there any way i cam get 1px border around the search. I was left with left and right border since i got rid the border from the tables by changing em in the custom css
/*table*/
th {
color: #fff;
border-right: 0px solid #eeeeee;
border-bottom: 0px solid #eeeeee;
border-top: 0px solid #eeeeee;
background: #555;
}th.nobg {
border-right: 0px solid #eeeeee;
color:#555;
}td {
border-right: 0px solid #eeeeee;
border-bottom: 0px solid #eeeeee;
background: #fff;
color: #777;
}td.alt {
background: #eee;
color: #777;
}th.spec {
border-left: 0px solid #eeeeee;
background: #fff;
color:#777;
}th.specalt {
border-left: 0px solid #eeeeee;
background: #eee;
color: #777;
}td:first-child{
border-left: 0px solid #eeeeee;
}Posted 11 months ago # -
Hi Artifactual,
Try adding the following CSS to your Quick CSS (located under the Styling Tab in the theme options) or the custom.css file in the css folder of your theme files:
.search_site { border: 1px; border-color: #333; border-style: solid; }Regards,
Devin
Posted 11 months ago #
Reply
You must log in to post.














