Can I have different templates for main page and s
-
Hello,
I’m quite a beginner in WP and my question is related to templates. What I want to achieve:
1. For the main blog page, i will use the default 2-columns template.
2. Now, when I will display single article page, I’d like to have completely different design: there will be only one column – with the article text and comments, and above the article, there will be the “path” to that article, like “myblogsite.com -> Category XYZ -> Article ABC”. So, the blog title and the right panel will not be displayed.
How can I achieve this in some standard way? When I look at the URL’s, I see that there is only one template, index.php, which is called with different parameters for all pages. Now, when I want different layouts for index page and article page, or maybe even different for category page, should I create another php file for article, like “article.php”, which will be called from main index.php, or should I stick just with index.php and achieve my goal with php code? Or is there yet another solution?
Thank you,
Soso
- The topic ‘Can I have different templates for main page and s’ is closed to new replies.