PDA

View Full Version : Code/plugin for putting your sidebar in your WordPress pages



RDude
09-03-2008, 10:15 PM
Hi there,

Does anyone know how to go about putting the sidebars you have in your blog entries into your actual pages? For example, I want to have the right hand side filled up with all my links, RSS feed etc. here - http://fetishladblog.com/videos/

I'm sure it's probably just some code that you can put in the page template file. I would rather have someone who has done this before give me the code and show me to where to put it in, rather than just trying it myself - even though I have gone out on many limbs in the past :D - and ruining what I've done. I always backup of course, but you know what I mean.

Does a plugin exist for this at all?

Thanks much!:cool:

RDude
09-03-2008, 11:01 PM
Sorry, that link I put up has changed now - http://fetishladblog.com/kinkboy-uk/

Gaystoryman
09-03-2008, 11:02 PM
I get a 404 for that link... but hit me up on ICQ if you want...19792784 not quite sure what you want to do. Is this for wordpress or for some other blog software?

RDude
09-03-2008, 11:07 PM
I just put up the new link. lol Sorry. As in my post title, it's for Wordpress. Thanks.

RDude
09-03-2008, 11:14 PM
I'm on now man! Still up? Guess not. I'm just about to crash myself.

Perhaps I was a bit confusing in what I'm trying to do. I'd like to have the sidebar visible in my pages as well as the blog entries. Otherwise you have this big empty space to the right of the videos. - http://fetishladblog.com/kinkboy-uk/

I'm sure just placing the sidebar code in your page template is the way to go here. But I'd like to hear from someone who has done this before with a Wordpress theme.

Thanks!

Gaystoryman
09-04-2008, 12:06 AM
Is your theme widgetized? If not, then you can either make it widgetized, or you can simply hard code your sidebar.php page with the codes you want to show. If it is widgetized, then you need to add the widgets you want under 'design > widgets'

RDude
09-04-2008, 07:44 AM
Is your theme widgetized? If not, then you can either make it widgetized, or you can simply hard code your sidebar.php page with the codes you want to show. If it is widgetized, then you need to add the widgets you want under 'design > widgets'

Yes, the theme is widgetized. However, that is only relevant in your blog posts, and not the pages themselves. I'd like to have the sidebar widgets showing up on the pages, as well as blog posts. The url I put up is a page, not a blog entry.

Thanks

Gaystoryman
09-04-2008, 09:07 AM
Well the sidebar usually appears in both Jeff, if your theme doesn't allow for that, you'll have to find the page template, and add the code to allow for the sidebar to show. You'd have to add the php code from the index.php that shows the sidebar, to add to the page template.php or else add to the php code to show the sidebar on pages as well.

Now if you followed all that, have a coffee... :bang: I'll check soon as I finish my coffee for the right code, but most themes have the sidebar in both. If the theme has options, it might be one of them, so check under 'design' to see if there are options you can turn on for it.

hth

RDude
09-04-2008, 09:43 AM
I see what you mean GSM. I'm somewhat familiar with php actually so I just checked the page.php file and the sidebar code is actually in it. LOL. Something strange is happening though, because it isn't showing up on the pages, and the template actually isn't showing up for a drop-down option in the page posting interface. Too weird. I tried creating my own php file with the same code from the page.php file and just renamed it. But it still didn't show up as an option in the drop-down field. Bizarre.

Gaystoryman
09-04-2008, 09:50 AM
have you tried a different theme, to see if the sidebar works in a page? using the 'theme viewer' plugin it can be easy to do without disturbing the live blog... but if something isn't working, sounds like something not compatible... is this drop down in your admin or in 'design'?

RDude
09-04-2008, 10:41 AM
Thanks for the advice GMS!! I didn't even know I was using an old version of that theme. It's one of the best I've ever used as far as really easy modification goes. While I like to create my own sometimes, time doesn't always permit itself for it.

So I updated the theme and got what I wanted. The solution was very simple, but sometimes it just takes another person to point out the obvious. I often try to do things the hard way. lol Here's what a page looks like now - http://fetishladblog.com/kinkboy-uk/ Bingo!!!

Thanks again my friend!

Gaystoryman
09-04-2008, 10:30 PM
Anytime Jeff, glad it all worked out. :cool: