August 9, 2011 at 12:58 pm #5370
I could not find the answer to my question on the forum. Maybe I overlook it, but this is my question:
I would like a static main page for the website with the slider (filled with the blog-posts) in it.
I would like 3 menu items to 3 different categories of posts.
How can I arrange this?
MauriceAugust 9, 2011 at 1:27 pm #49904
1) It’s not directly possible. You can use a workaround though. Open up index.php and replace:
$additional_loop = new WP_Query("cat=".$negative_cats."&paged=$paged");
$additional_loop = new WP_Query(array('post_type' => 'page', 'post__in' => array(50)));
and instead of 50 fill in the ID of your page. Then search for:
<?php the_excerpt() ?>
and replace it with:
<?php the_content() ?>
<a href="<?php echo get_permalink() ?>" class="more-link"><?php _e('Read more','newscast'); ?></a>
2) You can use the menu manager (Appearance > Menus ) to add any content you like. I posted a tutorial here: http://www.kriesi.at/support/topic/i-can%E2%80%99t-create-a-custom-menu-the-menu-behaves-weirdAugust 9, 2011 at 2:57 pm #49905
Thank you for your quick response, this almost works as I intended! ;’>
I would like the article on the first page to be “big” (two colums wide) and the articles on the menued pages to be small (2 small next to eachother). Is that also possible ?
You can have a look at: http://www.laarhoven-ict.nl/wp
the main page should be big and the posts on the “Voorstellingen 2011″ page should all be small…
Thanx a lot.August 9, 2011 at 3:55 pm #49906
Yes that’s possible. A quick hack:
Open up archive.php and replace:
if ($fullsized > 0) :
if (0 > 0) :August 9, 2011 at 5:28 pm #49907
Great, sometimes simple things can just do what jou want ….
Thanx a lot for your support!!!
MauriceAugust 9, 2011 at 5:43 pm #49908September 27, 2011 at 11:19 pm #49909
Hi, I’m working with Nike theme and need a static page with the slider functioning. The above instructions don’t work for this theme. Can you please give me instructions for the Nike theme that will allow me to have the slider plus a static page?
LeannaSeptember 28, 2011 at 8:29 am #49910
The topic ‘static main page with slider’ is closed to new replies.