Genesis Slider on Static Pages

Community Forums Forums Design Tips and Tricks Genesis Slider on Static Pages

This topic is: not resolved

Tagged: ,

This topic contains 13 replies, has 2 voices, and was last updated by  braddalton 8 months, 2 weeks ago.

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

    clarkscondensed
    Participant
    Post count: 48

    I am currently working on a client’s page, and I am trying to get the slider to show up on the static page — I tried to follow these instructions:

    http://www.carriedils.com/add-slider-minimum-theme/

    But the theme she has (innov8tive) doesn’t have some of the code that the other theme has. Is there anyway I can make the slider show up on the static homepage? I was able to register a new widget area called “Home Slider” and input the widget for the genesis responsive slider. The site I am working on is itsyummi.com

    http://www.itsyummi.com
    #71634

    braddalton
    Participant
    Post count: 8871

    Try this http://wpsites.net/web-design/adding-new-widget-areas-in-studiopress-themes/

    You will need to change the conditional tag and hook position.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #71829

    clarkscondensed
    Participant
    Post count: 48

    Okay, I installed that code, and I think I changed it correctly; my computer is having a hard time updating the site for some reason though — can you see if slider is working. If not, here is the code I put in:

    genesis_register_sidebar( array(
    ‘id’ => ‘home-slider’,
    ‘name’ => __( ‘Home Slider’, ‘ItsYummi’ ),
    ‘description’ => __( ‘This is the home slider’, ‘ItsYummi’ ),
    ) );

    add_action( ‘genesis_after_header’, ‘your_widget’ );

    function your_widget() {

    if ( is_front_page() && is_active_sidebar(‘new-widget’) ) {

    genesis_widget_area( ‘new-widget’, array(

    ‘before’ => ‘<div class=”new-widget” class=”widget-area”>’,

    ‘after’ => ‘</div>’,

    ) ); }}

    #71839

    braddalton
    Participant
    Post count: 8871

    That won’t work.

    Please use the code from the tutorial i linked to.

    You can then use the Genesis Slider widget in the new widget area.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #71890

    clarkscondensed
    Participant
    Post count: 48

    I must be an idiot – I copied and pasted that exact code, and that widget area shows up, but the slider is still not showing up!

    #71910

    braddalton
    Participant
    Post count: 8871

    I don’t own that theme so hard to test but i did test on the Magazine Pro theme right now and works perfectly.

    Does the Developer of your theme offer support?

    after header

    Here’s the new widget which i populated with a calender widget.

    Where did you paste the code?


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #71948

    clarkscondensed
    Participant
    Post count: 48

    It turns out that it does show up. My browsers, for some reason, won’t show me changes I make on this site (itsyummi.com) it is showing up. However, I’d like it to show up in the Genesis Loop hook, so it doesn’t take up so much space. Would I change this:

    add_action( ‘genesis_after_header’, ‘your_widget’ );

    to this:

    add_action( ‘genesis_loop’, ‘your_widget’ );

    Thank you for all your help so far.

    #71956

    braddalton
    Participant
    Post count: 8871

    You can use any of these these.

    I suggest the genesis_before_loop hook


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #71958

    clarkscondensed
    Participant
    Post count: 48

    Great, thank you! I’ll see if that works.

    #71959

    clarkscondensed
    Participant
    Post count: 48

    Well I did that, but it seems to have removed the slider altogether…is there anything else I need to change in that code? This is all in the functions.php folder

    #71961

    braddalton
    Participant
    Post count: 8871

    Make sure the slider widget area is populated.

    Otherwise you may have an error in the code.

    If you paste code here, please add it to a Github Gist and embed it here.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #71963

    clarkscondensed
    Participant
    Post count: 48

    I made sure that the genesis widget was placed in the widget area, but no luck.

    Here is the code I have in the functions.php file

    <script src=”https://gist.github.com/anonymous/7393947.js”></script>

    #71965

    clarkscondensed
    Participant
    Post count: 48

    Hmm..that didn’t seem to work. Here is the link:

    #71970

    braddalton
    Participant
    Post count: 8871

    The widget i.d needs to match the function


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

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

You must be logged in to reply to this topic.