WordPress.org

Ready to get started?Download WordPress

Forums

Hueman
Possible to copy slider to other pages? (6 posts)

  1. NewPoetry
    Member
    Posted 10 months ago #

    Hello there,

    I would like to use the content slider on my homepage that comes with the Hueman theme in other pages as well. Is it possible to copy it and place it into other pages?

  2. mithun
    Member
    Posted 10 months ago #

    Hi NewPoetry,

    Do you wish to use the same slider for all pages or create unique sliders for individual pages?

    Best Regards,
    Mithun

  3. NewPoetry
    Member
    Posted 10 months ago #

    Hi Mithun,

    I would be happy with both options.
    Can you tell me how to get this done?

    New Poetry.

  4. Alexander Agnarson
    Member
    Theme Author

    Posted 10 months ago #

    Hi,

    1) Create a child theme (download a sample one from Help dropdown in theme options)
    2) Copy over /inc/featured.php to the child theme
    In this file, remove the two instances of:

    is_home() &&

    From the file.

    3) Copy over /page-templates/child-menu.php to the child theme. Name the php file something new, and also rename the template name at the top of the file to something you want.

    4) In this file, add:

    <?php get_template_part('inc/featured'); ?>

    Right below where it says:

    <div class="pad group">

    Now create a new page, select under "Template" on the right side your newly created page template. Your page should now have a duplicate slider copy identical to that of the homepage.

  5. NewPoetry
    Member
    Posted 10 months ago #

    Thank you for your answer.

    I am not that good with files, but I think I can figure this out.
    I don't have to change my complete theme to the child-theme right?
    Just the page template?

  6. Alexander Agnarson
    Member
    Theme Author

    Posted 10 months ago #

    You only need to have the files that you modify in the child theme, no others - however you still need to activate the child theme in Appearance > Themes as the active one.

    You can read more how to use a child theme in theme options help dropdown, in the documentation under "Child Theme" and also here: http://codex.wordpress.org/Child_Themes

Reply

You must log in to post.

About this Theme

About this Topic