Add Slider to Page Agency Theme

Community Forums Forums Design Tips and Tricks Add Slider to Page Agency Theme

This topic is: not resolved

Tagged: , ,

This topic contains 26 replies, has 4 voices, and was last updated by  moxi 1 year, 11 months ago.

Viewing 12 posts - 16 through 27 (of 27 total)
  • Author
    Posts
  • #20245

    braddalton
    Participant

    Link to your site please


    #20255

    braddalton
    Participant
    #20326

    moxi
    Participant

    This is the page I want the slider on.

    http://thelinkfairy.com/?page_id=1872

    Thanks.

    #20327

    moxi
    Participant

    This is the page I want the slider on.

    http://thelinkfairy.com/?page_id=1872

    Thanks

    #20338

    braddalton
    Participant

    Where exactly according to the Genesis Visual Hook Reference? Before content full width?

    Also, You need to change your permalink structure.

    // Register before-content widget
    genesis_register_sidebar( array(
    ‘id’	=> ‘before-content’,
    ‘name’	=> __( ‘WP Sites Custom Widget’, ‘agentpress’ ),
    ‘description’	=> __( ‘This is the before-content section.’, ‘child’ ),
    ) );
     
    // Hook before-post widget to single page 
    add_action( ‘genesis_before_content_sidebar_wrap’, ‘custom_before_content’, 9 );
    function custom_before_content() {
    if ( is_page(1872) && is_active_sidebar( ‘before-content’ ) ) {
    echo ‘<div class="before-content"><div class="wrap">';
    dynamic_sidebar( ‘before-content’ );
    echo ‘</div></div>';
    }
    }
    
    //Add widget area, full width, specific page only, before content, genesis, child themes.
    

    This code may not work because it includes HTML within the php which can cause problems.

    Go to pastebin to get the code and paste it into the end of your child themes functions.php file.


    #20524

    moxi
    Participant

    I would like it before this: genesis_before_post

    #20525

    braddalton
    Participant

    Simply change the hook from genesis_before_content_sidebar_wrap to genesis_before_post.

    Use the code from Pastebin not the code above.


    #20528

    moxi
    Participant

    Still not working. I did get the code from Pastebin here http://pastebin.com/jnGzyxJLand changed the hook as instructed.

    Do I need to do anything in the simple hooks plugin?

    #20529

    moxi
    Participant

    ok, I did as instructed and copied code from here: http://pastebin.com/jnGzyxJL then changed the hook, inserted into the functions.php, however it is not working.

    Do I need to do anything in the simple hooks plugin?

    #20644

    braddalton
    Participant

    Should work.

    Read this tutorial which offers 2 ways to do this.

    Using a custom function and simple hooks

    http://designsbynickthegeek.com/tutorials/add-widgeted-sidebar


    #20645

    braddalton
    Participant

    Did you check in your Widgets area for the new widget?


    #21120

    moxi
    Participant

    Ok, I did know know you had to go into the widgets and put the Gen Slider into the new widget area. Makes sense now.

    Thank you very, very much for all your help!

     

Viewing 12 posts - 16 through 27 (of 27 total)

You must be logged in to reply to this topic.