NameSilo

Need some help with wordpress template

Spaceship Spaceship
Watch

FPForum

Top Member
Impact
1,436
Hey everyone. I am trying to add a banner to my wordpress theme but having much difficulties. I want to use an up-and-down (120x600) add to appear in the small amount of open space that's left on the far right of my page...When looking in the sidebar.php I noticed there are two "div class="sidebar" sections..one includes categories & archives...and the other includes search & meta..I have tried adding some code sort of like "<div align="right""..before/after and inbetween these other two div sections but cannot get the banner to display nicely. It always seams to disrupt the other div classes..does anyone know where I would want to add this banner code and how I would want to add it so it will display nicely on the far right without disturbing the current div classes?? I hope this makes sense :\
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
list the sidebar.php out to let us see if we can help or not.
 
0
•••
<div class="sidebar">

<ul>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>

<li><div class="sidebar_header"><?php _e('Categories'); ?></div>
<ul>
<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
</ul>
</li>

<li><div class="sidebar_header"><?php _e('Archives'); ?></div>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>
<div id="sidebar_blogroll">
<?php wp_list_bookmarks('title_before=<div>&title_after=</div>'); ?>
</div>
<?php endif; ?>

</ul>
</div><!-- end first sidebar -->

<div class="sidebar">

<ul>

<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?>

<li id="search"><?php include (TEMPLATEPATH . '/searchform.php'); ?></li>

<?php include( "/home/clubdrew/public_html/linkex/data/output/1001" ); ?>

<li><div class="sidebar_header"><?php _e('Meta'); ?></div>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<?php wp_meta(); ?>
</ul>
</li>

<?php endif; ?>

</ul>

</div><!-- end second sidebar -->

That is the whole sidebar.php without me trying to add in the code for the banner I want to add..
 
0
•••
there are too many php functions inside the script.

do you try open it with dm8 using php type to open?

for insert vertical banner like yours, you better need the help of dm8
to modify the layout.
 
0
•••
sorry I do not know exactly what dm8 is..I am not a pro with php or wordpress. I will try to look that up though. thanks
 
0
•••
FPForum said:
sorry I do not know exactly what dm8 is..I am not a pro with php or wordpress. I will try to look that up though. thanks


nevermind,

dm8 is dreamweaver version 8, it is a webpage creator or editor.
you can edit the .php pages with this tools easily.
:laugh:
 
0
•••
Can you show me the theme ? Also where exactly in sidebar are you adding the code.
 
0
•••
iWonder said:
Can you show me the theme ? Also where exactly in sidebar are you adding the code.

sent you a PM..thanks!
 
0
•••
I am guessing you want it in either sidebar . Just put the banner code into a div

<div align="center"><!-Ad Code-></div>

Putting it after first one might mess up as both div are "floating" .

Let me know exactly where you need it and what was the problem.

Hope it helps
 
0
•••

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back