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