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 »

Slider only on Front page


  #1  
Old Sep 13, 2010, 08:08 PM
bswb97
 
158 posts · Aug 2010
I'm using Smooth Slider to showcase featured content, but I've only been able to put it above the loop on the main index template. This causes it to show up anywhere. Where can I put it so that it only shows up on the home page?
  #2  
Old Sep 14, 2010, 03:43 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
wrap the html in a PHP if statement
HTML Code:
<?php if (is_front_page) { ?>
your html here
<?php }; ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Sep 15, 2010, 12:38 AM
bswb97
 
158 posts · Aug 2010
Smooth Slider is actually called with a PHP statement:

PHP Code:
<?php if ( function_exists'get_smooth_slider' ) ) {
     
get_smooth_slider(); } ?>
I tried this:

PHP Code:
<?php if (is_front_page
if ( 
function_exists'get_smooth_slider' ) ) {
     
get_smooth_slider(); } ?>
But that didn't seem to make any difference. I'm sure this will work but what's the right way to wrap the statement?
  #4  
Old Sep 16, 2010, 07:36 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
try this
HTML Code:
<?php if (is_front_page) {  
	if ( function_exists( 'get_smooth_slider' ) ) { 
     get_smooth_slider(); } }?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Sep 16, 2010, 10:47 AM
paulae's Avatar
paulae
 
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
No need to mess with the theme files. In the theme options, style and edit center column/content above the loop, just put
Code:
<?php
if (is_home() AND function_exists( 'get_smooth_slider' ) ) {
     get_smooth_slider(); } ?>
I use it on http://aghca.org.
  #6  
Old Sep 16, 2010, 11:46 AM
Henrietta's Avatar
Henrietta
 
10 posts · Aug 2010
NW PA USA
Thanks so much for this post! I am feeling pretty darn good about being able to figure this out with the help here! I got the Easing Slider Plugin to work and show only on my home page using this code in Above the Loop!

<?php if( is_front_page() AND function_exists('easing_slider')) { easing_slider(); } ?>

Woot

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best Featured Content Slider for Atahualpa? droidsync Header configuration & styling 3 Sep 6, 2010 01:16 PM
Image slider/scroll/carousel SamBarker Plugins & Atahualpa 2 Aug 3, 2010 02:20 PM
Added a Jquery slider and header no longer rotates Elms123 Header configuration & styling 2 Jul 30, 2010 07:35 AM
Doubts on Smooth Slider plugin jagadeeshamk Header configuration & styling 2 Feb 8, 2010 01:19 PM
Smooth Slider Plug in does not work twola Plugins & Atahualpa 4 Oct 29, 2009 02:19 PM


All times are GMT -6. The time now is 10:53 AM.


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