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 » Plugins & Atahualpa »

Plug-in on static front page only


  #1  
Old May 12, 2010, 09:19 PM
tkeller
 
14 posts · Jun 2009
I have a slideshow plug-in (smooth slider) which I would like to appear on my stand-alone static front page only. My blogs are actually on a different page.

Where would I insert this code, or add to it, to make this work out right?

if ( function_exists( 'get_smooth_slider' ) and is_home() ) {
get_smooth_slider(); }
  #2  
Old May 13, 2010, 04:49 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what version of Atahaupa and WP?
what is the url?

you could use the 'Exec-PHP' plugin and put that code on the page...
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old May 13, 2010, 09:27 AM
tkeller
 
14 posts · Jun 2009
WP 2.9.2 and Ata 3.4.6. I didn't know about exec-php, I'll check that out
  #4  
Old May 20, 2010, 04:09 PM
inkan's Avatar
inkan
 
22 posts · Dec 2009
Jönköping, Sweden
Send a message via Skype™ to inkan
tkeller,
I did exactly what you are asking for - if I understand you correctly. It is here: http://www.bjuroklubb.se/

In the Atahualpa Theme Options, choose Style & edit CENTER COLUMN.

In the Content ABOVE the LOOP box, type the code. You can use mine as example:

Code:
<?php if(is_front_page()) { ?>

<?php
  $content = "[smooth=id: 4; width:500; height:200; timed:true; arrows:true; carousel:false; links:true; info:true; align:center; frames:false; delay:11000; transition:fade;]";
  smooth_show($content);
?>
<?php
}
?>
The green part is the smooth slider code. The php code if(is_front_page()) before the green code and the end bracket is the trick for making it show only at the first page.

I hope it helped!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
static front page, page title on header, remove content but keep sidebar questions Magic Atahualpa 3 Wordpress theme 0 Jan 25, 2010 12:12 AM
Default Non-static Front Page (Home Page) Is Missing (Atahualpa Theme) SavvyBaker Center area post/pages 0 Jan 18, 2010 04:02 PM
[SOLVED] Posting Static content for my Front Page supergper Atahualpa 3 Wordpress theme 3 Dec 10, 2009 06:37 AM
How Do I Add Recent Post To A Static Front Page??? Sunmarket Excerpts, Read more, Pagination 2 Nov 23, 2009 07:56 PM
Inserting Excerpts into Static Front Page Mac Excerpts, Read more, Pagination 0 Feb 28, 2009 04:30 AM


All times are GMT -6. The time now is 04:54 PM.


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