Where to place code on sidebar

  • EdwardOwen

    #3878

    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!

    ed

    Prasanna SP

    #26429

    Remove the ad code from theme core file and use a plain text widget to add your Adsense code.

    EdwardOwen

    #26430

    Thanks, but thats not the question. I’ve already removed the theme added Adsense code.

    What I want to add is not Adsense links, but other items, but I’m not sure where to put them in the code.

    John McCubbin

    #26431

    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

    Prasanna SP

    #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.

    Tee

    #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

    EdwardOwen

    #26435

    Perfect! Love that widget add in. Did some experimentation and it works like a charm. Thanks guys!

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!