• Resolved johnzoro

    (@johnzoro)


    Does generatepress come with a slider function for the main homepage?

    If not can I add one?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Theme Author Tom

    (@edge22)

    Hi there,

    No it doesn’t – we leave the sliders up to the slider plugins (there’s tons of them).

    You’ll want to install one of the plugins and then add it to your content.

    If you want to add it above your blog posts, you might want to check out our Page Header add-on.

    Let me know if you need more info ??

    Thread Starter johnzoro

    (@johnzoro)

    I understand I can use the page header add on for $7 but is there a way of adding it for free?

    Thread Starter johnzoro

    (@johnzoro)

    is there any way to make it full width?

    https://casinocrew.co.uk/

    Theme Author Tom

    (@edge22)

    You would have to use PHP:

    add_action( 'generate_after_header','generate_add_homepage_slider' );
    function generate_add_homepage_slider()
    {
        if ( ! is_front_page() )
            return;
    
        echo do_shortcode( '[Your shortcode here]' );
    
    }

    Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/

    Thread Starter johnzoro

    (@johnzoro)

    Thanks! ^_^

    Thread Starter johnzoro

    (@johnzoro)

    doesn’t work

    Theme Author Tom

    (@edge22)

    I just adjusted the code, can you try again?

    Also, the above will only work on your home page.

    Thread Starter johnzoro

    (@johnzoro)

    it works now! ^_^

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Slider’ is closed to new replies.