Can I insert a slideshow above blog posts in Bee Crafty Theme?

Community Forums Forums Design Tips and Tricks Can I insert a slideshow above blog posts in Bee Crafty Theme?

This topic is: resolved

This topic contains 21 replies, has 2 voices, and was last updated by  braddalton 9 months ago.

Viewing 15 posts - 1 through 15 (of 22 total)
  • Author
    Posts
  • #50986

    jchick
    Participant
    Post count: 21

    Hi,
    I’m using the bee crafty theme here: http://chocolatemakingfun.com. I want to be able to add some things to the homepage. The homepage is using the blog template. IIs there a way for me to add an image slider above the blog posts? The idea I’m trying to duplicate is here: http://mycakeschool.com.
    Any help is greatly appreciated.
    John

    http://chocolatemakingfun.com
    #50988

    braddalton
    Participant
    Post count: 7443

    Hey John

    Yes you can create a new widget and use the Genesis Responsive Slider or hook in another slider directly before your blog posts are listed on the home page only.

    Please copy one of these PHP code snippets from the view raw link and paste it at the end of your child themes functions.php files using a text editor like Notepad++

    Or install the Easing slider plugin and add this code to your child themes functions.php file.

    You can also change the slider position by changing the hook.


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #50989

    jchick
    Participant
    Post count: 21

    Thanks for this. I’ll see if I can get this to work. Much appreciated!

    #50990

    braddalton
    Participant
    Post count: 7443

    No worries John.

    I know Guthub Gists are having a few problems at the moment hosting the code snippets so the view raw link may not work when trying to copy the code.


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #51065

    jchick
    Participant
    Post count: 21

    I bought easing slider and added the code to the functions.php file and created a slideshow but it’s not showing up on my homepage.

    #51066

    jchick
    Participant
    Post count: 21

    Should I be using the blog page template for the homepage or the default template. Bee Crafty had a default homepage functionality that I didn’t want to use and someone instructed me on how to disable the functionality by renaming home.php to oldhome.php. Could this be why I don’t see the slider on the homepage?

    #51073

    braddalton
    Participant
    Post count: 7443

    Which code snippet did you use?

    Its probably because of the conditional tag.

    Try changing

    is_home()

    to

    is_front_page()

    You can also change the hook.


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #51077

    jchick
    Participant
    Post count: 21

    I used this snippet:
    `add_action(‘genesis_before_loop’, ‘display_slider_before_posts_home’);
    /**
    * @author Brad Dalton – WP Sites
    * @example http://wpsites.net/web-design/image-slider-home-page-only/
    */
    function display_slider_before_posts_home() {
    if ( is_front_page() && function_exists(‘easing_slider’) ) {
    easing_slider();

    }

    }

    That’s not working for some reason. Is it because I’m using the blog template for the homepage?

    #51108

    braddalton
    Participant
    Post count: 7443

    The name of the tag for the slider maybe different as i wrote this code for the Lite version and not the premium version.

    I assume you’ve create a slide show and added images to it?


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #51151

    jchick
    Participant
    Post count: 21

    Yes, I’ve created a slideshow and added images.

    #51173

    braddalton
    Participant
    Post count: 7443

    Try using page-id-16

    if ( is_page( 16 ) && function_exists('easing_slider') ) {
    

    Did you change the hook?

    add_action('genesis_before_content', 'display_slider_before_posts_home');
    

    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #51462

    jchick
    Participant
    Post count: 21

    Hi Brad,
    That didn’t work, either. I really appreciate your help with this.
    John

    #51463

    jchick
    Participant
    Post count: 21

    Here’s a link to a screenshot of what I did in the editor:
    http://websitesbycreation.com/beecraftycode.png

    #51469

    braddalton
    Participant
    Post count: 7443

    Hi John

    I tested the code and it works.

    Can you link to the page please. Is it a page or post?

    Can you also send me a copy of the easing slider plugin that you bought. brad@wpsites.net

    Also try adding some single quotes around the page i.d

    '16'
    

    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #51470

    jchick
    Participant
    Post count: 21

    Still no luck. Screenshot attached.
    http://websitesbycreation.com/beecrafty2.png

Viewing 15 posts - 1 through 15 (of 22 total)

You must be logged in to reply to this topic.