10 pointsGetting my WPMU DEV WingsI'm new here
Jarrah
Member
—
9th April 2010
Hi guys,
Is there an easy way to change the current banner (468x60px) advertising space to a leaderboard (728x90px) within the daily theme header? Just looking to increase the size of the advert currently to support a leaderboard.
I'm assuming the logo will need to shrink also. Which is fine. Just looking for the best way to do this.
Is there an easy way to change the current banner (468x60px) advertising space to a leaderboard (728x90px) within the daily theme header? Just looking to increase the size of the advert currently to support a leaderboard.
I'm assuming the logo will need to shrink also. Which is fine. Just looking for the best way to do this.
Great, that is all I needed.. I simply changed the layout.css file to accommodate the larger leaderboard advert (728x90px) and then re-sized the logo to be 200 x 90px which has worked fine.
and then re-sized the logo to be 200 x 90px which has worked fine.
Where exactly would I do that?
I edited the advert to 728x90, then added the new size for the logo to #header, 355 x 116, but when I upload it, it still wants to crop only a portion of the smaller logo.
What else do I need to do to align a 355x116 logo floating left in the header?
@georgef: Assuming you've done the above code to change the advert to fit it should work and you are not setting it for a square logo. What do you get currently?
Responses (7)
Theme Designer — 9th April 2010 #
@Jarrah: You'd have to edit library/components/advert-header.php and also header.php. How you edit sort of depends on what you want to do really.
In header.php there is the following code:
<?php locate_template( array( '/library/components/advert-header.php' ), true ); ?><div id="logo">
<?php
$logo_on = get_option('dev_buddydaily_header_image');
$logo_image = get_option('dev_buddydaily_header_logo');
$description_on = get_option('dev_buddydaily_header_description_on');
$description = get_option('dev_buddydaily_header_description');
$square_logo = get_option('dev_buddydaily_header_image_square');
$square_image = get_option('dev_buddydaily_header_logo_square');
$site_title = get_option('dev_buddydaily_header_title');
?>
<?php
if($logo_on == "no" && $square_logo == "yes"){
?>
" title="<?php _e( 'Home', 'buddypress' ) ?>"><img src="<?php echo $square_image; ?>" alt="<?php bp_site_name() ?>" class="logo-square"/>
<h1 class="square-header">" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php echo stripslashes($site_title); ?></h1>
<?php
}
else if($logo_on == "yes" && $square_logo == "no"){
?>
" title="<?php _e( 'Home', 'buddypress' ) ?>"><img src="<?php echo $logo_image; ?>" alt="<?php bp_site_name() ?>" class="full-logo"/>
<?php
}
else{
?>
<h1>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php echo stripslashes($site_title); ?></h1>
<?php
}
?>
</div>
<div class="clear"></div>
Now you could remove the logo calls if putting a file in yourself or making a smaller one.
You can also try just editing the css in _inc/css/layout.css:
.top-advert-block{height: 60px;
width: 468px;
float: right;
text-align: center;
}
Hope that helps but I've not actually edited the size so you will need to experiment a little.
Member — 10th April 2010 #
Great, that is all I needed.. I simply changed the layout.css file to accommodate the larger leaderboard advert (728x90px) and then re-sized the logo to be 200 x 90px which has worked fine.
Thanks for your assistance!
Jarrah
Member — 14th April 2010 #
Where exactly would I do that?
I edited the advert to 728x90, then added the new size for the logo to #header, 355 x 116, but when I upload it, it still wants to crop only a portion of the smaller logo.
What else do I need to do to align a 355x116 logo floating left in the header?
Member — 14th April 2010 #
Just realized that the two together would be too long (of course), but still would like to know how to get the logo of 355x116 positioned. thanks!
Theme Designer — 14th April 2010 #
@georgef: Assuming you've done the above code to change the advert to fit it should work and you are not setting it for a square logo. What do you get currently?
Member — 14th April 2010 #
Think I got it figured out for now, thank you!
Member — 14th April 2010 #
@Tammie Thanks, didn't see you reply when I replied.
I just added it in the header settings. Didn't know it was possible from there.
Thanks, Awesome theme!
Become a member