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, 5 months ago.

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

    braddalton
    Participant
    Post count: 8794

    Link to your site please


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #20255

    braddalton
    Participant
    Post count: 8794
    #20326

    moxi
    Participant
    Post count: 9

    This is the page I want the slider on.

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

    Thanks.

    #20327

    moxi
    Participant
    Post count: 9

    This is the page I want the slider on.

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

    Thanks

    #20338

    braddalton
    Participant
    Post count: 8794

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

    Also, You need to change your permalink structure.
    [php]
    // 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.
    [/php]

    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.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #20524

    moxi
    Participant
    Post count: 9

    I would like it before this: genesis_before_post

    #20525

    braddalton
    Participant
    Post count: 8794

    Simply change the hook from genesis_before_content_sidebar_wrap to genesis_before_post.

    Use the code from Pastebin not the code above.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #20528

    moxi
    Participant
    Post count: 9

    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
    Post count: 9

    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
    Post count: 8794

    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


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #20645

    braddalton
    Participant
    Post count: 8794

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


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #21120

    moxi
    Participant
    Post count: 9

    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.