• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Add Slider to Page Agency Theme

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

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

This topic is: not resolved

Tagged: Agency, page, slider

  • This topic has 26 replies, 4 voices, and was last updated 10 years, 7 months ago by moxi.
Viewing 20 posts - 1 through 20 (of 27 total)
1 2 →
  • Author
    Posts
  • February 8, 2013 at 11:21 am #18958
    tavisme
    Participant

    How can I add a slider to a page within the Agency Theme (not front page)?

    February 8, 2013 at 12:47 pm #18979
    Brad Dalton
    Participant

    You can create a widget area using a conditional tag and use the Genesis slider or you can use a slider like the easing slider which offers a shortcode.

    Where exactly do you want it and on what page? Can you paste a link to the exact location please.


    Tutorials for StudioPress Themes & WooCommerce.

    February 8, 2013 at 1:01 pm #18992
    tavisme
    Participant

    I would like the slider on an interior page: http://frontrowcom.com/experience Which is not an option with the Agency Theme

    I am not confident in complicated coding. I am still at the copy and paste stage.

    If it is too complicated, I will need to look for help.

    Thanks for your reply.

     

    February 8, 2013 at 1:13 pm #19002
    Brad Dalton
    Participant

    Its possible because you can create a widget anywhere there's a hook.

    Or you can use the Simple Hooks plugin and add code in there with a conditional tag.

    I will supply the code but where do you want it to display on the page?

    Within the content area? Before the content area? In the header on that page only? After the header?

    Check out this visual hook reference. http://genesistutorials.com/visual-hook-guide/

    Why don't you install the Genesis Simple Hooks plugin and place some text in the exact location you want the slider to output.


    Tutorials for StudioPress Themes & WooCommerce.

    February 8, 2013 at 1:21 pm #19007
    tavisme
    Participant

    Thank you!!

    I want it to display before the content area. I will add the plugin.

    I really appreciate your help.

    February 8, 2013 at 1:47 pm #19022
    tavisme
    Participant
    This reply has been marked as private.
    February 8, 2013 at 2:12 pm #19039
    Brad Dalton
    Participant

    Backup your functions.php file first and add this code:

    Paste it into your child themes functions.php file http://pastebin.com/RZZAsxdQ


    Tutorials for StudioPress Themes & WooCommerce.

    February 8, 2013 at 2:21 pm #19042
    Brad Dalton
    Participant

    Resources:

    http://www.briangardner.com/code/add-after-post-widget/
    http://codex.wordpress.org/Conditional_Tags


    Tutorials for StudioPress Themes & WooCommerce.

    February 8, 2013 at 3:53 pm #19086
    tavisme
    Participant

    Thank you for the code!!  Does it need to go in any particular place in the functions,php file?

    How will I be able to assign the featured images/pages of the slider?

     

    February 8, 2013 at 4:13 pm #19094
    tavisme
    Participant
    This reply has been marked as private.
    February 8, 2013 at 9:37 pm #19157
    dareadel
    Participant

    Hi braddalton,

    Would you be willing to share this code with me as well? This is the information I asked over a week ago but was never resolved. I wanted to place the slider before the content. You had asked if I wanted to place it before the content and I said yes at the time. Here is the link to the post: http://www.studiopress.community/topic/home-page-sidebar-for-slider-plugin/

    I will appreciate your help also.

    February 8, 2013 at 10:06 pm #19161
    Brad Dalton
    Participant

    Paste the code at the end of your child themes functions.php file

    How will I be able to assign the featured images/pages of the slider? Yes you can add the i.d's of the posts and pages to the slider settings.

    Here's the code:

    http://pastebin.com/u/braddalton


    Tutorials for StudioPress Themes & WooCommerce.

    February 8, 2013 at 10:19 pm #19164
    dareadel
    Participant

    Thank you very much for your help. The site is full of other useful information and I have bookmarked it.

    February 9, 2013 at 4:48 pm #19297
    tavisme
    Participant

    Brad,

    It worked! Very nice.

    http://frontrowcom.com/our-work

     

    The code resulted in a "BEFORE CONTENT" available widget. I added the Genesis slider widget and it duplicated the slider I have on the front page.  I'll read on to see if and/or how I can add different content to the slider.

    I have bookmarked your pages, very helpful information here.

    Thanks again!

     

    February 13, 2013 at 10:24 am #20081
    moxi
    Member

    I am looking for more detailed info on these instructions. I want to know what the conditional tag is and where do you put it in the simple hooks.

    I am wanting to put the gen slider on a page before content.

    Thanks.

    February 14, 2013 at 1:03 am #20245
    Brad Dalton
    Participant

    Link to your site please


    Tutorials for StudioPress Themes & WooCommerce.

    February 14, 2013 at 1:40 am #20255
    Brad Dalton
    Participant

    http://codex.wordpress.org/Conditional_Tags

    http://my.studiopress.com/docs/hook-reference/

    http://genesistutorials.com/visual-hook-guide/

    http://www.bobwp.com/genesis-simple-hooks-plugin/


    Tutorials for StudioPress Themes & WooCommerce.

    February 14, 2013 at 10:40 am #20326
    moxi
    Member

    This is the page I want the slider on.

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

    Thanks.

    February 14, 2013 at 10:41 am #20327
    moxi
    Member

    This is the page I want the slider on.

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

    Thanks

    February 14, 2013 at 11:25 am #20338
    Brad Dalton
    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.


    Tutorials for StudioPress Themes & WooCommerce.

  • Author
    Posts
Viewing 20 posts - 1 through 20 (of 27 total)
1 2 →
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble