Hi Guys, I use the header part to put my logo at the maximum size and i decide to don't show the orange "buy yourself" button. Is there any way to insert her a square spot for me to put and ad 220px x 140px right align (to be precise a logo of a company which support me in my project)?? Thanks in advance Kriss
So your looking for a place in the header to add a custom ad? Geocraft has various coded layouts already per-styled for your use. If you inspect some of your pages you will notice that there are some class's attached to some div elements with such values as: "grid" "omega" and "alpha" They use these to determine which are to be floated right or left, and the size of the div they are putting stuff into. For your specifications you may need to re-arrange your div classes in your header.php file. If you supply me with your complete header.php code, I can be of more assistance.
PHP: <?php/*** The Header for our theme.** Displays all of the <head> section and everything up till <div id="main">**/?><!DOCTYPE html><!--[if IE 6]><html id="ie6" <?php language_attributes(); ?>><![endif]--><!--[if IE 7]><html id="ie7" <?php language_attributes(); ?>><![endif]--><!--[if IE 8]><html id="ie8" <?php language_attributes(); ?>><![endif]--><!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!--><html <?php language_attributes(); ?>><!--<![endif]--> <head> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> <title> <?php /* * Print the <title> tag based on what is being viewed. */ global $page, $paged; wp_title('|', true, 'right'); // Add the blog name. bloginfo('name'); // Add the blog description for the home/front page. $site_description = get_bloginfo('description', 'display'); if ($site_description && ( is_home() || is_front_page() )) echo " | $site_description"; // Add a page number if necessary: if ($paged >= 2 || $page >= 2) echo ' | ' . sprintf(__('Page %s', THEME_SLUG), max($paged, $page)); ?> </title> <?php if (is_front_page()) { ?> <?php if (geocraft_get_option('inkthemes_keyword') != '') { ?> <meta name="keywords" content="<?php echo geocraft_get_option('inkthemes_keyword'); ?>" /> <?php } else { } ?> <?php if (geocraft_get_option('inkthemes_description') != '') { ?> <meta name="description" content="<?php echo geocraft_get_option('inkthemes_description'); ?>" /> <?php } else { } ?> <?php if (geocraft_get_option('inkthemes_author') != '') { ?> <meta name="author" content="<?php echo geocraft_get_option('inkthemes_author'); ?>" /> <?php } else { } ?> <?php } ?> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" /> <?phpwp_head();?> </head> <body <?php body_class() ?>> <!--Start top strip--> <div class="top_strip"> <div class="container_24"> <div class="grid_24"> <div class="menu"> <?php // top strip menu wp_nav_menu( array('container_class' => 'menu-container','theme_location' => 'secondary' ) ); ?> </div> <div class="clear"></div> </div> </div> <div class="clear"></div> </div> <!--End top strip--> <div class="clear"></div> <!--Start Header Wrapper--> <div class="header_wrapper"> <div class="header"> <!--Start Container--> <div class="container_24"> <div class="grid_24"> <div class="logo_wrapper grid_10 alpha"> <div class="logo"> <a href="<?php echo home_url(); ?>"><img src="<?php if (geocraft_get_option('inkthemes_logo') != '') { ?><?php echo geocraft_get_option('inkthemes_logo'); ?><?php } else { ?><?php echo get_template_directory_uri(); ?>/images/logo.png<?php } ?>" alt="<?php bloginfo('name'); ?>" /></a></div> </div> <div class="grid_14 omega"> <!-- COMMENTING OUT THE BUTTON --> <?php //$pkg_cost = get_onetime_pkg_price(); //$pkg_cost = $pkg_cost->package_cost; //$currency_symbol = get_option('currency_symbol'); ?> <!--<a class="post_btn" href="<?php //echo site_url('/?page_id=' . get_option('geo_submit_listing')); ?>"><span class="btn_left"></span><span class="btn_center"><?php //if(geocraft_get_option('post_btn') != ''){ echo geocraft_get_option('post_btn'); } else { ?>Post Your Business Listing at <?php //if($pkg_cost) echo $currency_symbol.$pkg_cost; else echo '$0'; }?></span><span class="btn_right"></span></a>--> <!-- START ADING YOUR CUSTOM AD IMAGE HERE --> </div> <div class="clear"></div> </div> </div> <!--End Container--> <div class="clear"></div> </div> <div class="clear"></div> <!--Start Menu Wrapper--> <div class="menu_wrapper"> <div class="top_arc"></div> <div class="menu-container"> <div class="container_24"> <div class="grid_24"> <?php inkthemes_nav(); ?> </div> </div> <div class="clear"></div> </div> <div class="clear"></div> <div class="bottom_arc"></div> </div> <!--End Menu Wrapper--> <div class="clear"></div> <!--Start Container--> <div class="container_24"> <div class="grid_24"> <?php if (file_exists(TEMPLATE_PATH . '/home_searchform.php')): require_once TEMPLATE_PATH . '/home_searchform.php'; endif; ?> </div> <div class="clear"></div> </div> <!--End Container--> <div class="clear"></div> </div> <!--End Header Wrapper--> <div class="clear"></div> <div class="wrapper"> <!--Start Container--> <div class="container_24"> <div class="grid_24"> There you go man. All I did was SWITCH the grid numbers, and commented out the button. Now all you have to do is add an image src code, and link it to an image you upload to your media server. So what I did, was switch it so that the logo has the small space in the header, and the bigger space is to be for the Ad. I think this is what you are requesting. FYI: An image src code looks like this: <img src="http://www.yoursite.com/yourmedia/yourimage.jpg" /> Add a link to it, by using this code: <a href="http://www.yoursiteyouwanttoadvertise.com" target="_blank"> <img src="http://www.yoursite.com/yourmedia/yourimage.jpg" /> </a> The target="_blank" opens the link in a new window. Be sure to change the link, and the link to the image.
Thanks a lot for that... Just an error probably when i paste the code and ad my links n source i get that : Parse error: syntax error, unexpected T_STRING in /home/content/70/10938670/html/wp-content/themes/geocrafttheme/header.php on line 29
herm, then here do this: PHP: <?php/*** The Header for our theme.** Displays all of the <head> section and everything up till <div id="main">**/?><!DOCTYPE html><!--[if IE 6]><html id="ie6" <?php language_attributes(); ?>><![endif]--><!--[if IE 7]><html id="ie7" <?php language_attributes(); ?>><![endif]--><!--[if IE 8]><html id="ie8" <?php language_attributes(); ?>><![endif]--><!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!--><html <?php language_attributes(); ?>><!--<![endif]--> <head> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> <title> <?php /* * Print the <title> tag based on what is being viewed. */ global $page, $paged; wp_title('|', true, 'right'); // Add the blog name. bloginfo('name'); // Add the blog description for the home/front page. $site_description = get_bloginfo('description', 'display'); if ($site_description && ( is_home() || is_front_page() )) echo " | $site_description"; // Add a page number if necessary: if ($paged >= 2 || $page >= 2) echo ' | ' . sprintf(__('Page %s', THEME_SLUG), max($paged, $page)); ?> </title> <?php if (is_front_page()) { ?> <?php if (geocraft_get_option('inkthemes_keyword') != '') { ?> <meta name="keywords" content="<?php echo geocraft_get_option('inkthemes_keyword'); ?>" /> <?php } else { } ?> <?php if (geocraft_get_option('inkthemes_description') != '') { ?> <meta name="description" content="<?php echo geocraft_get_option('inkthemes_description'); ?>" /> <?php } else { } ?> <?php if (geocraft_get_option('inkthemes_author') != '') { ?> <meta name="author" content="<?php echo geocraft_get_option('inkthemes_author'); ?>" /> <?php } else { } ?> <?php } ?> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" /> <?phpwp_head();?> </head> <body <?php body_class() ?>> <!--Start top strip--> <div class="top_strip"> <div class="container_24"> <div class="grid_24"> <div class="menu"> <?php // top strip menu wp_nav_menu( array('container_class' => 'menu-container','theme_location' => 'secondary' ) ); ?> </div> <div class="clear"></div> </div> </div> <div class="clear"></div> </div> <!--End top strip--> <div class="clear"></div> <!--Start Header Wrapper--> <div class="header_wrapper"> <div class="header"> <!--Start Container--> <div class="container_24"> <div class="grid_24"> <div class="logo_wrapper grid_10 alpha"> <div class="logo"> <a href="<?php echo home_url(); ?>"><img src="<?php if (geocraft_get_option('inkthemes_logo') != '') { ?><?php echo geocraft_get_option('inkthemes_logo'); ?><?php } else { ?><?php echo get_template_directory_uri(); ?>/images/logo.png<?php } ?>" alt="<?php bloginfo('name'); ?>" /></a></div> </div> <div class="grid_14 omega"> <?php $pkg_cost = get_onetime_pkg_price(); $pkg_cost = $pkg_cost->package_cost; $currency_symbol = get_option('currency_symbol'); ?> <a class="post_btn" href="<?php echo site_url('/?page_id=' . get_option('geo_submit_listing')); ?>"><span class="btn_left"></span><span class="btn_center"><?php if(geocraft_get_option('post_btn') != ''){ echo geocraft_get_option('post_btn'); } else { ?>Post Your Business Listing at <?php if($pkg_cost) echo $currency_symbol.$pkg_cost; else echo '$0'; }?></span><span class="btn_right"></span></a> <!-- START ADING YOUR CUSTOM AD IMAGE HERE --> </div> <div class="clear"></div> </div> </div> <!--End Container--> <div class="clear"></div> </div> <div class="clear"></div> <!--Start Menu Wrapper--> <div class="menu_wrapper"> <div class="top_arc"></div> <div class="menu-container"> <div class="container_24"> <div class="grid_24"> <?php inkthemes_nav(); ?> </div> </div> <div class="clear"></div> </div> <div class="clear"></div> <div class="bottom_arc"></div> </div> <!--End Menu Wrapper--> <div class="clear"></div> <!--Start Container--> <div class="container_24"> <div class="grid_24"> <?php if (file_exists(TEMPLATE_PATH . '/home_searchform.php')): require_once TEMPLATE_PATH . '/home_searchform.php'; endif; ?> </div> <div class="clear"></div> </div> <!--End Container--> <div class="clear"></div> </div> <!--End Header Wrapper--> <div class="clear"></div> <div class="wrapper"> <!--Start Container--> <div class="container_24"> <div class="grid_24"> And keep the button off like you had it before. I guess you cant comment out that code.
Hey, i cannot comment, but look like it works good.. Last issue is the alignment. http://about-saintmartin.com/
try to add this class to your link: class="alignright" this is a pre-set wordpress style that will align right.
Code: <a target="_blank" href="http://sxmweddings.com" class="alignright"> <img src="http://about-saintmartin.com/wp-content/uploads/2013/07/header_ad.png"> </a> ^^
Hey, Its XMAS before the date for me tonight. Everyhting is as i wanted it. Thank you very much for so much help. You are the reason why i like Internet... guys with a spirit to share. Thanks again so much. The las question : To start to learn that kind of chineese language, wich book or online class you couls suggest me? Kriss (Happiest guy in the world tonight)