1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Adding banners to wordpress blog.

Discussion in 'Blogging' started by ratonjd, Dec 4, 2008.

  1. ratonjd

    ratonjd Regular Member

    Joined:
    Oct 10, 2008
    Messages:
    267
    Likes Received:
    16
    Location:
    CO
    Hello everyone, I'm trying to put some banner ads in my wordpress blog but is a little bit confusing, i tried to add the -max banner ads plug in- but it didn't work at all, any suggestions to simply add the banners code correctly? Thank you so much.:)
     
  2. theadultsplayground

    theadultsplayground BANNED BANNED

    Joined:
    Jan 24, 2008
    Messages:
    1,202
    Likes Received:
    336
    If you're trying to add a banner to the header or footer just insert the html code directly (go to the current theme and edit the header.php file
     
    • Thanks Thanks x 1
  3. ratonjd

    ratonjd Regular Member

    Joined:
    Oct 10, 2008
    Messages:
    267
    Likes Received:
    16
    Location:
    CO

    Thank you for the quick response, I'm trying to add banners to the sides of my blog , basically anywhere.:)
     
  4. y2kh8r

    y2kh8r Junior Member

    Joined:
    Nov 9, 2008
    Messages:
    146
    Likes Received:
    84
    to add a banner to your sidebar, insert a text widget, then paste your banner code in there.
     
  5. ratonjd

    ratonjd Regular Member

    Joined:
    Oct 10, 2008
    Messages:
    267
    Likes Received:
    16
    Location:
    CO
    Is the text widget a plug in already installed in wordpress? thanks!:)
     
  6. xplicit

    xplicit BANNED BANNED

    Joined:
    Jul 21, 2008
    Messages:
    1,119
    Likes Received:
    1,053
    If you want to add an image to the sidebar without using a widget, you can insert this code. Go to design, then theme editor, and then sidebar.php on the right hand side.

    Look for this code.

    Code:
    	<h2>Pages</h2>
    			<ul>
    			<?php wp_list_pages('title_li='); ?>
    			</ul>
    		</li>
    		
    And under that you can add the code below (You do not have to add it under the Categories, You can add it it anywhere in the sidebar. Just make sure you add it after the </li> code.)

    Code:
    	<h2>Advertising</h2>
    		
    		<img alt="" src="http://YOURSITE.com/images/IMAGE.JPG" width="120" height="600" />
    
    Of course you edit it to your sites needs and the image height and width, You can also change the "Advertising" to whatever you want. and of course to center the banner just wrap the center code around it. like below

    Code:
    <div align="center">   Image code   </div>
    Hope that helps
     
    • Thanks Thanks x 5
  7. godgirlsjulie

    godgirlsjulie Newbie

    Joined:
    Nov 29, 2008
    Messages:
    35
    Likes Received:
    2
    wow xplicit...nice guide...thanks...Can I add some banners with this guide?
     
  8. sidddd

    sidddd Power Member

    Joined:
    May 15, 2008
    Messages:
    749
    Likes Received:
    460
    Ok.. I can help u out as I am a semi - expert in wordpress :)

    This is actually simple.. just login to your admin panel and Go to Design and then Widgets .. now you will find Text Widget box in the left sidebar.Just add it and then expand the Text box .. you will have to insert the banner ad code and "Change" it.Save the options and you are done.

    If you want to add the banner to header,footer or in the content area then go to Admin panel --> Design --> Theme editor --> and you will find lot of files in the right sidebar.

    Alternately you can select "Sidebar.php" file and add the banner code there and if you want to add the banner to header then open header.php and insert the code :)
     
  9. xplicit

    xplicit BANNED BANNED

    Joined:
    Jul 21, 2008
    Messages:
    1,119
    Likes Received:
    1,053
    Yes its standard with all WP themes
     
  10. y2kh8r

    y2kh8r Junior Member

    Joined:
    Nov 9, 2008
    Messages:
    146
    Likes Received:
    84
    It comes standard with any widget-ready theme. Go to design tab then to widgets.
     
  11. ratonjd

    ratonjd Regular Member

    Joined:
    Oct 10, 2008
    Messages:
    267
    Likes Received:
    16
    Location:
    CO
    Thank you so much for all your help!:) I love this forum!
     
  12. kecoaksaru

    kecoaksaru Junior Member

    Joined:
    Oct 4, 2008
    Messages:
    160
    Likes Received:
    248
    Location:
    Indonesia
    I think you should learn wordpress more and more. It's the most popular cms for seo, including black hat seo.
     
  13. Jacko

    Jacko Registered Member

    Joined:
    Dec 13, 2007
    Messages:
    71
    Likes Received:
    9
    Hey thanks for posting that question. I have been trying to get this to work for awhile now. I could never get it to work until now. Thanks again.
     
  14. ratonjd

    ratonjd Regular Member

    Joined:
    Oct 10, 2008
    Messages:
    267
    Likes Received:
    16
    Location:
    CO
    This is the code I have in my sidebar.php but I can't edit the banner code..

    <!-- begin sidebar -->
    <div id="menu">

    <ul>
    <?php /* Widgetized sidebar, if you have the plugin installed. */
    if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
    <?php wp_list_pages('title_li=' . __('Pages:')); ?>
    <?php wp_list_bookmarks('title_after=&title_before='); ?>
    <?php wp_list_categories('title_li=' . __('Categories:')); ?>
    <li id="search">
    <label for="s"><?php _e('Search:'); ?></label>
    <form id="searchform" method="get" action="<?php bloginfo('home'); ?>">
    <div>
    <input type="text" name="s" id="s" size="15" /><br />
    <input type="submit" value="<?php _e('Search'); ?>" />
    </div>
    </form>
    </li>
    <li id="archives"><?php _e('Archives:'); ?>
    <ul>
    <?php wp_get_archives('type=monthly'); ?>
    </ul>
    </li>
    <li id="meta"><?php _e('Meta:'); ?>
    <ul>
    <?php wp_register(); ?>
    <li><?php wp_loginout(); ?></li>
    <li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
    <li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
    <li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li>
    <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
    <li><a href="http://wordpress.org/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.'); ?>"><abbr title="WordPress">WP</abbr></a></li>
    <?php wp_meta(); ?>
    </ul>
    </li>
    <?php endif; ?>

    </ul>

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


    What should I do? Thanks,.
     
  15. stechuskaktus

    stechuskaktus Newbie

    Joined:
    Nov 18, 2008
    Messages:
    8
    Likes Received:
    0
    there are so much widget out there?!
    for example:

    http://wordpress.org/extend/plugins/smart-ads/
    http://wordpress.org/extend/plugins/adsense-sidebar-widget/
    http://wordpress.org/extend/plugins/adsense-manager/
     
  16. emgxxg

    emgxxg Registered Member

    Joined:
    Nov 3, 2008
    Messages:
    93
    Likes Received:
    523
    ratonjd,

    your theme is already widget ready, hence you do not need to install any plugins.
    just goto => Design => widgets => 'ADD' the text widget and insert your code there.

    And also change the code to => ( or else with the current setup everything else will vanish from the sidebar)
    Code:
    <!-- begin sidebar -->
    <div id="menu">
    
    <ul>
    <?php /* Widgetized sidebar, if you have the plugin installed. */
    if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
    <?php endif; ?>
    <?php wp_list_pages('title_li=' . __('Pages:')); ?>
    <?php wp_list_bookmarks('title_after=&title_before='); ?>
    <?php wp_list_categories('title_li=' . __('Categories:')); ?>
    <li id="search">
    <label for="s"><?php _e('Search:'); ?></label>
    <form id="searchform" method="get" action="<?php bloginfo('home'); ?>">
    <div>
    <input type="text" name="s" id="s" size="15" /><br />
    <input type="submit" value="<?php _e('Search'); ?>" />
    </div>
    </form>
    </li>
    <li id="archives"><?php _e('Archives:'); ?>
    <ul>
    <?php wp_get_archives('type=monthly'); ?>
    </ul>
    </li>
    <li id="meta"><?php _e('Meta:'); ?>
    <ul>
    <?php wp_register(); ?>
    <li><?php wp_loginout(); ?></li>
    <li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
    <li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
    <li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li>
    <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
    <li><a href="http://wordpress.org/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.'); ?>"><abbr title="WordPress">WP</abbr></a></li>
    <?php wp_meta(); ?>
    </ul>
    </li>
    
    </ul>
    
    </div>
    <!-- end sidebar -->
    
     
  17. emgxxg

    emgxxg Registered Member

    Joined:
    Nov 3, 2008
    Messages:
    93
    Likes Received:
    523
    Sorry I forgot to mention, you also have the choice to not change the code as I suggested earlier and everything through widgets which will give you additional flexibility in terms of changes in the order etc of existing items and the banner codes.

    The Widgets you will need to add are:
    Text
    Pages
    Links
    Categories
    Search
    Archives
    Meta
     
  18. ratonjd

    ratonjd Regular Member

    Joined:
    Oct 10, 2008
    Messages:
    267
    Likes Received:
    16
    Location:
    CO
    Hello emgxxg, thank you so much for your explanation but I still have some questions.. still a newbie..:)
    What you mean changing the code to => ? for some reason wordpress is not allowing me to change the code.. this is what i get...

    You need to make this file writable before you can save your changes. See the Codex for more information.

    how should I fix this? thanks!:D
     
  19. emgxxg

    emgxxg Registered Member

    Joined:
    Nov 3, 2008
    Messages:
    93
    Likes Received:
    523
    To make the files writable you will need to access you blog via ftp, navigate to:

    Wordpress Folder => wp_content => themes => Right-click on the folder for the theme you are using , select "File Attributes" and change the Numeric Value to 777, after that select Recurse Into Subdirectories "Apply to Files only" and hit ok.

    Btw these are the steps if you are using Filezilla, the titles/names following the right-click may vary depending on the software you are using.

    Alternatively, as I mentioned in my last post, you need not necessarily change this code. You can add the widgets in the order I specified and the sidebar look will remain the same.

    Cheers!!

    Note: Do a google search for tutorials to perform a CHMOD change using whichever software you use and you can find the steps.
     
  20. istarapol

    istarapol Junior Member

    Joined:
    Jun 3, 2008
    Messages:
    110
    Likes Received:
    228
    Occupation:
    Graphic Designer
    Location:
    Under Your Bed
    Home Page:
    CHMOD to 755 is enough.

    msg too short