StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
  #1  
Old 11-01-2012, 10:59 PM
mrsmarshah mrsmarshah is offline
Registered User
Genesis Member
 
Join Date: Jan 2012
Posts: 46
Default Diff Meteor Slide on Each Page + Genesis

I have created multiple slideshows with the Meteor Slides plugin. I would like to have Meteor Slide #1 on the "About Us" page and Meteor Slide #2 on "Home" (for example). Could someone help me with the code I would need to add to functions.php?

I came across this thread from WordPress.org, but I'm not sure how to make the code work with Genesis Framework.


...Thanks!
  #2  
Old 11-02-2012, 08:43 AM
NicktheGeek's Avatar
NicktheGeek NicktheGeek is offline
Forum Manager
 
Join Date: Feb 2010
Posts: 62,650
Default

you should be able to add the short code to your page editor.
__________________
Nick "Fred and/or George Weasley" Croft
Designs by Nick the Geek
@Nick_theGeek on Twitter

Make web design easier, get FireBug for FireFox

Want to learn more about Genesis? Check out my Genesis Explained Series

  #3  
Old 11-02-2012, 10:35 AM
mrsmarshah mrsmarshah is offline
Registered User
Genesis Member
 
Join Date: Jan 2012
Posts: 46
Default

Sorry Nick, I should have specified. I am using the Education theme and have the Meteor Slide in the Slide widget area.
  #4  
Old 11-02-2012, 10:43 AM
NicktheGeek's Avatar
NicktheGeek NicktheGeek is offline
Forum Manager
 
Join Date: Feb 2010
Posts: 62,650
Default

The slide widget area is only in the homepage. You would need to remove the add_action/function for it from the home.php file and move that to the functions.php file. Then you could use the Widget Logic plugin to insert multiple widgets for different pages.
__________________
Nick "Fred and/or George Weasley" Croft
Designs by Nick the Geek
@Nick_theGeek on Twitter

Make web design easier, get FireBug for FireFox

Want to learn more about Genesis? Check out my Genesis Explained Series

  #5  
Old 11-02-2012, 12:44 PM
mrsmarshah mrsmarshah is offline
Registered User
Genesis Member
 
Join Date: Jan 2012
Posts: 46
Default

Thank you for the help Nick!

Site: http://designedbymarsha.com/wordpress2/

I moved the following from home.php to functions.php

Code:
/** Slide Sidebar */
function education_home_genesis_meta() {
	
	global $paged;
	
	if( $paged < 1 ) {
		if ( is_active_sidebar( 'slider' ) || is_active_sidebar( 'intro' ) || is_active_sidebar( 'featured' ) || is_active_sidebar( 'call-to-action' ) ) {
		
			add_action( 'genesis_before_content', 'education_home_loop_helper', 1 );
	
		}
	}
	
}
I installed the Widget Logic plugin and tried out is_single() and left Metadata blank. The slideshow only works on my homepage and I am guessing that is because in the code above, it has a conditional statement already. I tried removing bits of this code but I can't seem to get it right.
  #6  
Old 11-02-2012, 02:02 PM
NicktheGeek's Avatar
NicktheGeek NicktheGeek is offline
Forum Manager
 
Join Date: Feb 2010
Posts: 62,650
Default

you have to get just the part for the slider. you will need to make your own action for it or you can add that to the Genesis Simple Hooks plugin. The code you copied just called the education_home_loop_helper function. That function has the code for the slider in it.
__________________
Nick "Fred and/or George Weasley" Croft
Designs by Nick the Geek
@Nick_theGeek on Twitter

Make web design easier, get FireBug for FireFox

Want to learn more about Genesis? Check out my Genesis Explained Series

 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:34 PM.

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