motti_b
Member
Posted 3 years ago #
Hi there,
First of all I am not sure what version of PW I have. However, maybe I can get help with this one:
1. When clicking on a post it opens in a separate page that looks exactly like the home page. Is it possible to create the 'Post Pages' different than the home page?
For example, can I have it without the side bar? Or can I have a different banner? Anything to make it different.
Thank you,
Motti
Motti,
The short answer is yes, all of this can be done. However, in order to make these changes you will have to makes some changes to your theme. To start learning how to do this read up on theme development. And to do exactly what you want to do above read up on this conditional tag.
motti_b
Member
Posted 3 years ago #
Hi RedMedia,
Thanks, I am reading about it right now. I actually did some editing to my blog (www.blogbymotti.com) but I never saw anywhere a code that determines how single pages will look.
I just would like to know (if you know) if the changes should be done to the:
- page template html code or,
- main index template html code or,
- side bar html code
Any help is appreciated
Thanks,
Motti
motti_b
Member
Posted 3 years ago #
Hi ReMedia,
Here is snpiet code I have in my sisebar html page
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar() )
I want to add the snippet
} elseif (is_single()) {
So when viewing a single post no sidebar is there
I know nothing in PHP so how do I write it together?
Thank you,
Motti
To make your side bar disappear on a single post edit your sidebar code like so:
At the very top of your sidebar file paste:
<?php if(is_single()){}else{ ?>
At the very end of your sidebar file paste:
<?php } ?>
That should make your sidebar disappear when viewing a single post.
motti_b
Member
Posted 3 years ago #
RedMedia,
Great! It worked. Thank you!
My next step is to make the post the full width of my page, any suggestions? Would be appreciate.
That would make it really different than the main page's post.
My plan is to insert a 'more' break and have most of my post with more photos and text appear as a real article when clicking 'more'.
Thank you again,
Motti