Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

Frontpage Styling


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Mar 21, 2011, 12:55 PM
emaildepot
 
4 posts · Nov 2010
Is there a way to exclude all posts and sidebars on the Frontpage?
Say, only a slider appears in the center?


Image/Header
Menu
Slider
Footer

Any idea on how to do it?
What I did was delete the code under THE LOOP in the center column. I thought I did it right. But upon testing, all the pages don't have any posts at all... so I was wrong.

I only wanted posts exclusion from the Frontpage.

Thanks in advance for the help.
  #2  
Old Mar 21, 2011, 01:06 PM
STB
 
762 posts · Apr 2010
Think this has been answered quiet a few times, I think you should be able to find 'how to do that' with a bit of searching.
  #3  
Old Mar 21, 2011, 01:27 PM
juggledad's Avatar
juggledad
 
19,970 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
The code in 'The LOOP' effects ALL the pages. If you want to prevent some of it from running at certain times, you need to put a PHP if statement around it testing for the case you want.

Say you didn't want it to display on an archive page, you could put
HTML Code:
<?php if (!is_archive() ) { ?>
as the first line and
HTML Code:
<?php } ?>
as the last line so nothing would show between the sidebars. You could take it a step further and add
HTML Code:
<?php if (is_archive() ) { echo 'Sorry the archives are not being displayed'; } ?>
at the end (note the first case uses the '!' which means NOT, so it is saying 'if this is NOT an archive page display the posts. The second case says 'if this is an archive page, display this message')

You can go to http://codex.wordpress.org/Conditional_Tags to see all the different conditional tags you can use.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Frontpage slideshow arothafel Atahualpa 3 Wordpress theme 5 Apr 10, 2010 10:44 PM
Frontpage slideshow positioning on frontpage amadeu Center area post/pages 0 Jan 15, 2010 10:16 AM
Frontpage Slideshow DanielGe Plugins & Atahualpa 0 Dec 14, 2009 02:15 AM
Frontpage only help! PKM@1LineMedai Atahualpa 3 Wordpress theme 8 Apr 2, 2009 04:22 AM
NO Sidebars on Frontpage manfredk Sidebars & Widgets 1 Feb 19, 2009 06:07 AM


All times are GMT -6. The time now is 05:32 AM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.