Within the WordPress Reading subpanel under the main Options panel is where you start seeing the versatility of a WordPress blog. You can specify a static page or the normal blog of the latest posts. Posts and pages are different; when you write a post it goes into the blog "loop". Writing a page is static and does not appear in the loop but is shown as a link somewhere on the sidebar.
If you choose the static page option be warned that some themes will not show the sidebar on pages. If this is the case you can add the sidebar to WordPress static pages very easily.
Click on Presentation from the main panel and then Theme Editor. On the right side you will see a list of the current theme's templates. If you see a "Page Template" click that and the code will appear in the editor box. Copy all the code in the editor and paste it into Notepad for backup. Now at the very top of the editor box you should see this bit of code: That is telling the page template to get the themes header, what we are going to do is tell the page template to also get the sidebar. Place your mouse directly behind the above code and hit the enter key once. Now paste this code directly below that: and click "Update File"
If you don't see a "Page Template" then try the same steps above with the "Main Index Template" but be sure to copy the unedited code first into Notepad so you can put things back if things go wrong. Keep in mind that all WordPress themes are a little different and made by many different people so the files in them will vary.
If you managed to corrupt your theme's templates files and it's not displaying properly or worse you can't even see your blog; go back and paste in the unedited text you saved in Notepad and click "Update File" to put things back. What? You didn't save a backup? Well then you will need to delete the corrupt file in your hosting account and upload an unedited version of it. Not sure what file you messed up? Man, you are a butcher! Then upload a complete unedited version of the entire template to your hosting account.
Knowing how to add the Wordpress sidebar to a static page is a great way to use a specific landing page that doesn't change yet still looks like the rest of your Wordpress blog.
Website: http://www,esmartjob.com/blog
More Articles About Blogging
Popular Articles
|
Recent Articles
|
Not What You Were Looking For?
|
|