Keeping the sidebar visible in WordPress

One of the default settings in WordPress is for sidebar on the right-hand side only to be visible when you enter the site from the start page, but not if you are on an individual post.

This makes it rather difficult to add a newsletter registration box there, if you want it to appear on every page, and also means that other important items such as the Feedburner icon are not always visible.

So I will be going through my blogs and making sure that the sidebar is visible at all times.

To do this, I need to edit the file single.php in the theme.  I then turn the content part from a widecolumn into a narrowcolumn.   Finally, at the end of the file I need to add the get_sidebar() function.

I know that some of my blog themes are already set to do this, but I will be going through them all to make sure.  I’ve made a start with this one, so you should definitely see the newsletter box on the right-hand side.  Have you signed up yet?

 

Content not available.
Please allow cookies by clicking Accept on the banner
About Graham

Graham Tappenden is a British ex-pat who first came to Germany as a placement student in 1993, returning in 1995 to live there permanently. He has been writing for AllThingsGerman.net since 2006. When not writing blog posts or freelancing for the Oberurseler Woche and other publications he works as a self-employed IT consultant and online community manager. In 2016 he gained German citizenship.

Speak Your Mind

*

Please click on ACCEPT to give us permission to set cookies [more information]

This website uses cookies to give you the best browsing experience possible. Cookies are small text files that are stored by the web browser on your computer. Most of the cookies that we use are so-called “Session cookies”. These are automatically deleted after your visit. The cookies do not damage your computer system or contain viruses. Please read our privacy information page for more details or to revoke permission.

Close