Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Frontpage Styling


  #1  
Old Mar 21, 2011, 01: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, 02:27 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks



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


All times are GMT -6. The time now is 12:50 AM.


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