Problem with Static Front Page & K2 Theme
-
Hi guys
I’m making progress in putting together a website using WordPress for my girlfriend as a suprise at https://www.justineberry.co.uk
I have followed the technique below to get a static front page and put the blog entries in a page titled “Blog”:
The first thing you will want to do is to create a home page. You can do this by creating home.php in your theme directory. Next, create a blog template. The easiest way to do this is to create a file named blog.php with the following contents in your theme directory:
<?php
/*
Template Name: Blog
*/
?><?php query_posts(‘cat=-0’); //gets all posts
load_template( TEMPLATEPATH . ‘/index.php’); //loads index
?>
Log into WordPress and create a page named “Blog” with template “blog”. You’re done. The one last thing you will want to do is to update your permalinks structure to begin with “/blog/”, ie, “/blog/%year%/%monthnum%/%postname%/”. Now you have a WordPress-managed CMS with a unique front page and logically-structured blog content.The problem is that the wrong page tab is highlighted using this technique by the K2 theme I’m using.
How can I get the “Blog” page tab to know it’s the current page so it inherits the right CSS style?
Any help would be greatly appreciated!
?
- The topic ‘Problem with Static Front Page & K2 Theme’ is closed to new replies.