Welcome to PressWork!

Want to ask a question or join the discussion? Great! Join now.

In this Discussion

Slider in "Main Content on Index" widget not working for Static Homepage???
  • When I am use the Slider in the "Main Content on Index" widget with a static homepage it does not show. However, if I make my homepage my recent posts in the WP settings, the slider does show.

    Is there something I need to change in the PressWork structure to allow the slider to be shown for a static homepage? (and only on the static homepage)

    Any help would be greatly appreciated. Also, looking to purchase "Briefcase" once I get this panned out! ;)

    Thanks for the help.
  • That is because when you set your front page to a static page, the single page template overwrites whatever is set up for the default home page. In order to add the slideshow to this section, you would need to add this to your Custom Actions file:
    add_action("pw_page_post_top", "add_slideshow");
    function add_slideshow() {
    if(is_front_page()) {
    pw_slideshow();
    wp_reset_query();
    }
    }


    If you don't know how to create a Custom Actions file read up on it here:

    http://presswork.me/2011/custom-css-and-custom-actions/
    image Senior Developer & Co-Founder of PressWork