Community Forums › Forums › Archived Forums › General Discussion › Minimum Pro Slideshow On Homepage
- This topic has 13 replies, 4 voices, and was last updated 11 years, 2 months ago by notfarnow.
-
AuthorPosts
-
October 3, 2013 at 4:19 pm #65265bamajrParticipant
Let me start off by saying, I have already read the other posts, specifically http://www.studiopress.community/topic/minimum-pro-slideshow-on-homepage/#post-59681 and if this topic wasn't closed, I'd ask this question there. My favorite part of this post is
No need to modify or remove any code whatsoever.
...yet the first thing that is done is code 😉
So, on to my question...
I'm wanting to do something very similar to the slideshow shown at http://tavphotography.com - its a great looking page and the slideshow works nicely. So, I'm leaning toward the Easing Slider Pro plug-in over the Genesis Responsive Slider.
My concern is, when the Minimum Pro Child Theme gets updated, the possibility of loosing the code, added to the function.php file.
So, is there not a way, to hook the Easing Slider Pro plug-in, using the Genesis Simple Hooks Plugin, without touching any code, in the function.php file?
http://worldwidevillage.orgOctober 3, 2013 at 5:59 pm #65283Brad DaltonParticipantYour child themes functions aren't changed when Genesis is updated.
You can easily hook in most slider plugins and the best methos of doing this is to use your child thees functions.php file.
All you need to do is paste the code from the snippet you linked to above in your child themes functions.php file.
You can also modify the code if you want to use the simple hooks plugin.
This tutorial includes the code you can use in simple hooks http://wpsites.net/best-plugins/8-ways-to-install-easing-slider-pro-version-on-your-home-page/
October 3, 2013 at 6:51 pm #65290bamajrParticipant@braddalton - Sorry, I wasn't talking about Genesis itself, being updated. I was talking about the Minimum Pro Child theme being updated. Sorry if I wasn't clear.
Also, I may not be clear on the use of the Genesis Simple Hooks plug-in. This plug-in already has a "genesis_after_header" hook. So, does one use:
function display_slider_after_header_home() { if (is_home() && function_exists('easingsliderpro') ) { easingsliderpro( 1 ); } }
or, does one use:
add_action('genesis_after_header', 'display_slider_after_header_home'); function display_slider_after_header_home() { if (is_home() && function_exists('easingsliderpro') ) { easingsliderpro( 1 ); } }
I'm asking because it seems to me that while the function could be put in the "genesis_after_header" hook area, of the Genesis Simple Hooks plug-in, the add_action still needs to occur.
October 3, 2013 at 7:36 pm #65296Brad DaltonParticipantI suggest you use the 2nd snippet in your child themes functions.php file as this is the best method for efficiency.
October 4, 2013 at 3:04 am #65327timbarryMemberI use the https://soliloquywp.com slider plugin on miminum - works really well.
To get in on the home page put this in the functions.php file:
/** Add the featured image section */ add_action( 'genesis_after_header', 'minimum_featured_image' ); function minimum_featured_image() { if ( is_home() ) { echo '<div id="slide-wrap">'; if ( function_exists( 'soliloquy_slider' ) ) soliloquy_slider( '26' ); echo '</div>'; } elseif ( is_singular( array( 'post', 'page' ) ) && has_post_thumbnail() ){ echo '<div id="featured-image">'; echo get_the_post_thumbnail($thumbnail->ID, 'header'); echo '</div>'; } }
October 4, 2013 at 6:38 am #65335bamajrParticipant@braddalton & @timbarry - I appreciate both of your suggestions and feedback.
I'm not saying your suggested methods wont work. I'm absolutely sure they will. However, what I'm asking is:
Is there is an effective and efficient way to hook the EasingSliderPro, from within the Genesis Simple Hooks plug-in, rather than directly modifying the functions.php file, of the child theme?
October 4, 2013 at 5:54 pm #65406Brad DaltonParticipantOctober 5, 2013 at 9:41 am #65471bamajrParticipantAwesome @braddalton! That is what I was looking for!
I'm using images that are 1600px X 1050px and the slideshow is not centered (I'm sure this is a basic CSS change), nor is it stretching to the full width of the screen, as the images do on http://tavphotography.com/ I know the EasingSliderPro settings only you to specify the dimensions in pixels and then whether or not you want to make it responsive. So I'm curious if these two issues are a setting I'm missing, or more code I need to modify?
October 5, 2013 at 7:04 pm #65505Brad DaltonParticipantI used the Soliloquy slider for this and it worked perfectly. http://wpsites.net/best-plugins/installing-full-width-responsive-slider/
October 7, 2013 at 11:21 am #65684bamajrParticipantSo again, @braddalton, I'm not the PHP expert I should be, but I want to use Genesis Simple Hooks to hook this plugin.
When you helped me with the EasingSliderPro, the PHP looked like this:
<?php if ( is_front_page() && function_exists('easingsliderpro') ) { easingsliderpro( 1 ); } ?>
So, would the same format work, for the Soliloquy Slider?
Would it look like this:
<?php if ( is_front_page() && function_exists('soliloquy_slider') ) { soliloquy_slider( 'home-page' ); } ?>
...or did I mess that up, completely? 😉
October 7, 2013 at 1:01 pm #65695bamajrParticipantOk, ok...
I answered my own question.
Yes, the Soliloquy Slider can be hooked with the Genesis Simply Hooks plugin, using the following php:
<?php if ( is_front_page() && function_exists('soliloquy_slider') ) { soliloquy_slider( 'Soliloquy-Slider-ID-No' ); } ?>
Now, to get the slider image to fill the screen, at 100% width...
October 17, 2013 at 6:13 pm #67240bamajrParticipantOctober 18, 2013 at 2:22 am #67288Brad DaltonParticipantI think you may need to use the same slider as used on that site to get that affect.
October 28, 2013 at 6:23 pm #69554notfarnowParticipantTo get a slider to go behind the header and nav (like http://www.thea21campaign.org/), do you use negative margins and z-index? I would love to know how to do this properly too.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.