New Artisteer Version Page Issues
One thing we found with the new Artisteer version 2.3 is that by default Pages allow comments. You can disable allowing comments when you create your page but then you still get the “Comments are closed” notice at the bottom of the page. What we do is create a new page template by copying the “page.php” file and renaming it “page-comments.php” . You have to add the following code to the top of the new page-comments.php file.
<?php /* Template Name: Page Comments */ ?>
Then we edit the “page.php” file and remove the following line.
<?php comments_template(); ?>
So now your default page template has no comments at all, and if you want a page to have comments you just select your new page-comments template when creating your page. We do this with many other themes also. Not only Artisteer.
Add Single Post Templates To WP
When you create a website or blog you want your visitors to get a variety of information. It’s always much nicer to have a
few different styles to your pages and posts so you don’t bore people with the same look everywhere they go. This has always been possible with WordPress pages, where all you do is make a copy of your page.php file, rename it, add a little code to the top, upload it to the theme folder, and then when you create pages you get to select the page template you want to use. So by also copying your sidebar files and renaming those and also uploading them to the theme folder you can now call your different sidebars from your different templates. In your new sidebars you can code in different ads or widgets giving that page a different look to it. If you know what you are doing with the code you can also make page templates that display your page differently altogether like maybe full width and no sidebars at all.
Now you can do the same thing with your posts. Using the plugin called the “Single Post Template Plugin” , by Nathen Rice, you can do the exact same thing with your posts or articles. With this you copy the single.php file and insert the template code at the top just like in a page template. You can do the different sidebar thing or code in different ads to the top or bottom of your new templates. Just like a Page, when you edit or create a Post, you have a drop down to select the the post template you want to use.
This pluging does require a little extra work but it adds a nice touch to your blog or website and gives it additional functionality to set it apart from the rest.
Nathen Rice has some other nice plugins too and you can check them all out at http://www.nathanrice.net/plugins/
Making a Page Template
First, look in your theme folder for a file named page.php – make a copy of it and rename it an appropriate name – we’ll use page-without-sidebar.php for this example.
Next, open the new file (page-without-sidebar.php) and copy and paste this into your file at the very top (change the name ‘page without sidebar’ in the code to the name of your choice – this is the actual name of the template that will be listed when selecting the template from within the Write/Manage Page editor.
<?php
/*
Template Name: Page without sidebar
*/
?>
Now when you go to save a page you should see this as a page template choice. You can make your code changes to this file and then use it to display pages of your choice. A simple example is you could paste code for an advertisement before your post content. Then pages you publish using this template would have the ad included.









Recent Comments