Where to place code on sidebar
First off, thanks in advance. I’m working on the blog http://www.mickeyopolis.com
If you look at the site, you’ll see some Google ads on the left side at the bottom. I’ve programmed these in manually using Dreamweaver. It was pretty easy to figure out in the sidebar-two.php where to put these at the bottom.
My lack of php programming has me confused as to where I can program in items to go ABOVE or BETWEEN the ‘categories’, ‘archives’ or ‘latest tweets’ widgets.
I want to put in some custom promotional boxes, and maybe shift my ads around.
Again, any help is appreciated!
AnonymousMarch 16, 2012 at 3:13 pm #26429
Remove the ad code from theme core file and use a plain text widget to add your Adsense code.
if its PHP code download and install http://wordpress.org/extend/plugins/wp-php-widget/
and if its html in widgets area choice text box and put it where you want same for the php plugin in widget editor hope this helps
AnonymousMarch 16, 2012 at 5:26 pm #26432
If you want to put things in the places other than sidebar, make use of the action hook widgets. And, yes, you can use PHP Widget plugin to add php codes to the theme without hacking the parent theme.
AnonymousMarch 16, 2012 at 5:27 pm #26433
This is what you can do, Like what John said above you can download a widget that allows you to use PHP coding on widgets.
On your sidebar add the text/html widget in between your current widgets “Categories, Archives, & Latest Tweets.” Once you added the widget in between those, you can go ahead and put your codes in whether it be html, php, java etc etc. Then find the ID tag of your widget and style it on your CSS hope that helps.Mod
Viewing 8 posts - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.