Education Theme: Move the Call to Action bar above the Featured Widgets

Community Forums Forums Design Tips and Tricks Education Theme: Move the Call to Action bar above the Featured Widgets

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  SethResler 1 year, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #42862

    SethResler
    Participant
    Post count: 17

    I’m using the Education theme and I’d like to move the Call to Action bar above the Featured Widgets (just below the Intro). How can I do this?

    Thanks. -Seth

    #42866

    braddalton
    Participant
    Post count: 10667

    Tested this and it works. Simply move the code for the Call to action above the featured widget in the home.php file:
    [php]
    <?php

    add_action( ‘genesis_meta’, ‘education_home_genesis_meta’ );
    /**
    * Add widget support for homepage. If no widgets active, display the default loop.
    *
    */
    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 );

    }
    }

    }

    function education_home_loop_helper() {

    echo ‘<div id="home-featured">';

    genesis_widget_area( ‘slider’, array(

    ‘before’ => ‘<div class="slider widget-area">’

    ) );

    genesis_widget_area( ‘intro’, array(

    ‘before’ => ‘<div class="intro widget-area"><div class="inner">’,
    ‘after’ => ‘<div class="clear"></div></div></div><!– end .intro –>’

    ) );

    genesis_widget_area( ‘call-to-action’, array(

    ‘before’ => ‘<div class="call-to-action"><div class="banner-left"></div>’,
    ‘after’ => ‘<div class="banner-right"></div></div><!– end .call-to-action –>’

    ) );

    genesis_widget_area( ‘featured’, array(

    ‘before’ => ‘<div class="featured widget-area"><div class="inner">’,
    ‘after’ => ‘<div class="clear"></div></div></div><!– end .featured –>’

    ) );

    echo ‘</div>';

    }

    remove_action( ‘genesis_loop’, ‘genesis_do_loop’ );

    genesis();
    [/php]


    #42877

    SethResler
    Participant
    Post count: 17

    Perfect, thank you!

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

You must be logged in to reply to this topic.