Want Genesis Responsive Slider On Magazine Homepage (Keep Blog Format Beneath)

Community Forums Forums Design Tips and Tricks Want Genesis Responsive Slider On Magazine Homepage (Keep Blog Format Beneath)

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  braddalton 1 year ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #69467

    ebatey
    Participant

    Hi there! I’m hopeful one of you smart folks can help me with an issue I’ve been struggling with all weekend.

    I’m using the Magazine theme on my site (39nineteen.com). Though their demo homepage, with its multiple widgets looks great, I’d like a simpler blog-format look to my site. If you look at my site right now, you’ll see that that’s what I have.

    I only want one change: on the homepage, I’d like to add the Genesis Responsive Slider to the very top. Therefore, then my blog will look like this:

    Page one: slider and most recent posts
    Page two: (no slider) next most recent posts
    and so on and so on.

    However, when I add the Genesis Slider widget to the homepage at present, it removes the subsequent blog content from the page.

    I’m guessing from other forum posts on similar issues (to be clear, I couldn’t find anything that specifically addressed the Magazine theme) that the solution might be something in my child theme’s home.php file, which specifies “If no widgets active, display the default loop.” My presumption is that the “default loop” is the standard blog format that I’m rocking right now.

    I edited the home.php page in my child theme to add the slider thusly, replacing

    if ( is_active_sidebar( ‘home-top’ ) ) {
    echo ‘<div class=”home-top”>';
    dynamic_sidebar( ‘home-top’ );
    echo ‘</div><!– end .home-top –>';
    }

    With

    if ( is_active_sidebar( ‘home-top’ ) ) {
    echo ‘<div class=”home-top”>';
    dynamic_sidebar( ‘home-top’ );
    genesis_standard_loop();
    echo ‘</div><!– end .home-top –>';
    }

    and it worked to a point — however, the slider was now appearing on ALL pages, not just the homepage. So I obviously screwed that up. (This is a fix I got from a non-Studiopress forum and it wasn’t Genesis-based-theme specific, so I think it’s more than possible that it’s not the fix that y’all might recommend. I can accept that.)

    Before I posted here, I contacted Copyblogger Media support, and while they were happy to tell me:

    > You already have a widget area for the slider, so you do not need to add code – you need to move it.

    > The code on the page says, If there are no widgets show the loop (the if… else..)

    > What you want to to move the home top widget code so it is above the posts loop.

    There’s no “home top widget code” in the home.php page. However, they refused to offer any specifics or additional help with this, suggesting instead that I post my issue here.

    So that is what I am doing! Can one of you folks offer any assistance on what I’m doing wrong? I’d be remarkably grateful, if so. Thanks in advance.

    http://39nineteen.com/
    #73928

    braddalton
    Participant
    Post count: 10666

    Not sure if you still need help with this however there’s at least 2 ways to do this.

    1. You can add PHP code in your child theme functions.php file to hook in a new widget only on the front page of your site http://wpsites.net/web-design/adding-new-widget-areas-in-studiopress-themes/

    2. Or you can code it in your home.php file so it only displays in the position you place the code on your front page.

    The first option is more flexible and includes a conditional tag for the front page is_front_page() as well as a hook which determines the position on that page which the widget outputs your content


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

You must be logged in to reply to this topic.