Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   [SOLVED] Placing ads in sidebars (http://forum.bytesforall.com/showthread.php?t=4721)

Withnail Dec 4, 2009 02:13 PM

[SOLVED] Placing ads in sidebars
 
Guys,

I need to know how to create a new widget or place my BlogAds code in between existing widgets. Can you tell me how to do that or point me in the right direction to a post that explains that? I saw this page: http://codex.wordpress.org/User:Tomh...s_to_Wordpress
but that talks about a sidebar.php and from what I can see, you've merged sidebar.php into header and footer, no?

Thanks!

Mark

juggledad Dec 4, 2009 02:20 PM

if you are going to create a widget, tehn you should go read the material at wordpress.org about doing that.

You can add a widget to teh sidebar by going to dashboard->appearances->widgets and dragging a widget to the sidebar you want it to display in.

Withnail Dec 4, 2009 02:23 PM

I know how to add existing widgets to sidebars but I don't know what the easiest way is of getting my ad code into the sidebar where I want it. Is it creating a widget or editing a specific .php file?

Thanks!

juggledad Dec 4, 2009 02:29 PM

Not knowing what your code is makes it hard t tell you. If it is just HTML, stick it in a text wdget. If it is PHP, stick it in a text widget and get the exec-php plugin

I haven't run into anyone who has had to code their own widget for ad's.

Withnail Dec 4, 2009 02:37 PM

Ah! Hadn't seen the Text widget. It's like an all-purpost blank slate, no? Can I use Javascript in one?

juggledad Dec 4, 2009 02:40 PM

Don't know about javascript, best to check at wordpress.org since it is one of the default wordpress widgets.

Withnail Dec 4, 2009 03:10 PM

Thanks! It seems to be working. Just by pasting the script into the Text widget.


All times are GMT -6. The time now is 07:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.