sandro13 Posted June 9, 2010 Posted June 9, 2010 hey there guys, any idea how can i make this to put the banner on the top instead of the footer? is there anyway to edit banner_manager.php? please let me know thanks
Guest Posted June 9, 2010 Posted June 9, 2010 Sandro, yes, you can create as many banner groups as you wish and locate the new banner group anywhere you want. You don't need to edit banner manager, you will use the admin banner manager as it is, but you will create code that matches the newly created banner group. For example, a banner group of 120x240 for the column can be created, then simply write the code for the column and place it in the appropriate column. Chris
sandro13 Posted June 10, 2010 Author Posted June 10, 2010 Chris, Thanks for the reply, but what i don't understand is that what you mean by "writing the code" ? you mean in the html column i should insert the code there?
Guest Posted June 10, 2010 Posted June 10, 2010 Sandro, For example, this code was created and named panel_top2.php for a banner across the full width of the top of the store (right under the header) <center> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="banner_02"><?php if ($banner = tep_banner_exists('dynamic', 'banner2')) { echo tep_display_banner('static', $banner); }?></td> </tr> </table> </center> I then added this to index.php: <?php include(DIR_WS_BOXES . 'panel_top2.php');?> In the stylesheet.css I added this class to ensure the banner was positioned properly. .banner_02 { text-align: center; padding:0px 0px 5px 0px; } All that is left to do is create the banner image and install it using the banner manager in the admin using Banner Group Banner2 Hope that helps. Chris
sandro13 Posted June 10, 2010 Author Posted June 10, 2010 Chris, Thanks for the info, i will try and get back to you if there's any problem :D
risela Posted September 25, 2010 Posted September 25, 2010 i have the same problem and i totally new to this so your explanation means nothing to me is there a more detailed like where i am supposed to insert this code. sorry i am totally lost here. i am trying to set-up my site and i need help. thanks so much. i need to put a banner on the very top of the site, header. sorry if this is confusing, but i am confused.... Sandro, For example, this code was created and named panel_top2.php for a banner across the full width of the top of the store (right under the header) <center> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="banner_02"><?php if ($banner = tep_banner_exists('dynamic', 'banner2')) { echo tep_display_banner('static', $banner); }?></td> </tr> </table> </center> I then added this to index.php: <?php include(DIR_WS_BOXES . 'panel_top2.php');?> In the stylesheet.css I added this class to ensure the banner was positioned properly. .banner_02 { text-align: center; padding:0px 0px 5px 0px; } All that is left to do is create the banner image and install it using the banner manager in the admin using Banner Group Banner2 Hope that helps. Chris
Recommended Posts
Archived
This topic is now archived and is closed to further replies.