Minimum Pro Slideshow On Homepage

Community Forums Forums General Discussion Minimum Pro Slideshow On Homepage

This topic is: not resolved

This topic contains 13 replies, has 4 voices, and was last updated by  notfarnow 1 year ago.

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #65265

    bamajr
    Participant
    Post count: 68

    Let me start off by saying, I have already read the other posts, specifically http://www.studiopress.com/forums/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?


    Where to find me: APP.net | Facebook | Google + | Twitter | Website

    http://worldwidevillage.org
    #65283

    braddalton
    Participant
    Post count: 10563

    Your 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/


    #65290

    bamajr
    Participant
    Post count: 68

    @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.


    Where to find me: APP.net | Facebook | Google + | Twitter | Website

    • This reply was modified 1 year, 1 month ago by  bamajr.
    • This reply was modified 1 year, 1 month ago by  bamajr.
    #65296

    braddalton
    Participant
    Post count: 10563

    I suggest you use the 2nd snippet in your child themes functions.php file as this is the best method for efficiency.


    #65327

    timbarry
    Participant
    Post count: 6

    I 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>';
    	}
    }
    #65335

    bamajr
    Participant
    Post count: 68

    @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?


    Where to find me: APP.net | Facebook | Google + | Twitter | Website

    #65406

    braddalton
    Participant
    Post count: 10563
    #65471

    bamajr
    Participant
    Post count: 68

    Awesome @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?


    Where to find me: APP.net | Facebook | Google + | Twitter | Website

    #65505

    braddalton
    Participant
    Post count: 10563
    #65684

    bamajr
    Participant
    Post count: 68

    So 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? ;-)


    Where to find me: APP.net | Facebook | Google + | Twitter | Website

    • This reply was modified 1 year, 1 month ago by  bamajr.
    • This reply was modified 1 year, 1 month ago by  bamajr.
    #65695

    bamajr
    Participant
    Post count: 68

    Ok, 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…


    Where to find me: APP.net | Facebook | Google + | Twitter | Website

    #67240

    bamajr
    Participant
    Post count: 68

    Ok… I have the Soliloquy Slider “hooked” but now that I do, I’m thinking I want to go a different direction. I’ve been playing with the Soliloquy Slider but I’m trying to accomplish something almost identical to what the bxSlider is doing here.


    Where to find me: APP.net | Facebook | Google + | Twitter | Website

    #67288

    braddalton
    Participant
    Post count: 10563

    I think you may need to use the same slider as used on that site to get that affect.


    #69554

    notfarnow
    Participant
    Post count: 18

    To 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.

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.