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 » Montezuma Theme »

[SOLVED] Trouble adding METEOR SLIDESHOW to template


  #1  
Old Jun 12, 2013, 12:11 AM
eddiefrankie
 
12 posts · Jun 2013
[SOLVED] Trouble adding METEOR SLIDESHOW to template

I'm trying to insert a slideshow to my index.php, so it looks like this"
Code:
<?php get_header(); ?>

<?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow( "slides", "" ); } ?>

<div id="main" class="row">
	
		<div id="content" class="cf col9">
		
		<?php bfa_content_nav( 'multinav1' ); ?>
		
		<?php bfa_loop( 'postformat' ); ?>
		
		<?php bfa_content_nav( 'multinav2' ); ?>
		
	</div>
	
	<div id="widgetarea-one" class="col3">
		<?php dynamic_sidebar( 'Widget Area ONE' ); ?>
	</div>

</div>
	
<?php get_footer(); ?>
i can get it to work using the shortcode for a post, but somehow when i use the php, it doesn't work. does anyone have any experience with using the meteor slideshow in montezuma?

thanks so much.
  #2  
Old Jun 12, 2013, 02:47 AM
CrouchingBruin's Avatar
CrouchingBruin
 
299 posts · Aug 2010
Santa Monica, CA
The virtual PHP files only allow a limited set of PHP code to be executed. You can view the allowable function calls by clicking on the gray Limited PHP Code in the upper right corner of the PHP options pages.

That being said, there is a way to get around it. You can create a widget area where you want your slideshow to appear, then drag a text widget into it, paste your PHP code into the text widget, and then install a plugin called Exec-PHP (HT to JuggleDad) so your PHP code will execute.

To create a widget area, insert a call to dynamic_sidebar with the name of your new widget area, for example:
<?php dynamic_sidebar( 'Widget Area Meteor' ); ?>
I would probably put a DIV around it with a unique ID so you could pretty it up in the CSS files later.
Save your options, then go to Appearances > Widgets and you should see your new widget area there (i.e., Widget Area Meteor), waiting for you to drag in a Text widget. Then just paste in your Meteor PHP code and you should be set.
__________________
My Montezuma-themed sites: ESHS Girls Basketball Team, Venice Hongwanji Buddhist Temple
Please consider making a donation to BytesForAll for their great themes!
  #3  
Old Jun 13, 2013, 03:56 AM
eddiefrankie
 
12 posts · Jun 2013
thanks for looking into this.

you actually solved my problem in this post

Quote:
As far as the rotating images go, that's a plugin that is part of a class of plugins known as sliders or carousels. If you do a search on the Wordpress.org site for sliders, you should be able to find a lot. The one I'm using is called Weptile Image Slider. It's a nice simple plugin to use, but more importantly it is responsive (i.e., resizes according to the viewport size). The only tricky thing is that it is a widget plugin, meaning that you have to create a widget area to put the widget into. With Montezuma, that's very easy to do, because you can create a widget area in the header, footer, main body, wherever you want, and not just in a "side bar." I created a widget area in my header called Widget Area Header and just dragged the widget into it. One nice thing about using a widget plugin is that you don't have to worry about trying to insert a plugin's short code or PHP code into your virtual .PHP files, which won't work.
i used weptile instead and created a widget area like you described. much thanks. i'm learning so much new stuff.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] page template jquery slideshow sstudebaker Atahualpa 3 Wordpress theme 9 Mar 24, 2013 11:44 AM
[SOLVED] Meteor Slide Plugin 'Judders' secretsquirrel Header configuration & styling 8 Jun 24, 2012 01:49 PM
Adding Page template eyarnell Atahualpa 3 Wordpress theme 1 Nov 30, 2010 03:46 PM
Trouble Adding External Link on Page Menu chrisp Page & Category Menu Bars 1 Jul 13, 2010 11:36 AM


All times are GMT -6. The time now is 06:41 AM.


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