WordPress.org

Forums

Openstrap
[resolved] Add More Image Sliders (6 posts)

  1. zenmassageplace
    Member
    Posted 1 year ago #

    I would like to add two more slides to my front page. I already have the default four that I am using, but would like to add two more slides to the front page. I am very adept in code, but can't seem to find where the loop commands or amount of slides options in the code is. Thanks for the Help!

  2. peregrineperformance
    Member
    Posted 1 year ago #

    There are two files you need to modify. The first is the slides.php file. It's located in the root of the openstrap theme directory. And the second is the options.php file. It's located in the openstrap>inc directory.

    options.php controls the image fields on the Front Page Settings tab in admin.

    slides.php tells the slider which images to load.

    I don't think you can use these files from a child theme, so make sure you save backups for when you update the theme. You'll need to replace after the update.

  3. zenmassageplace
    Member
    Posted 1 year ago #

    worked, awesome! thanks!

  4. Pavan Solapure
    Member
    Theme Author

    Posted 1 year ago #

    @peregrineperformance
    Thanks for your comments.

    @zenmassageplace
    please mark this topic as resolved if you think its worked for you.

  5. Pavan Solapure
    Member
    Theme Author

    Posted 1 year ago #

    marking resolved.

  6. Alsev
    Member
    Posted 7 months ago #

    Hello Pavan,

    I also tried to add 2 more images on the Home Sliders by modifying the options.php and slides.php. On WP dashboard I can see that I can add the two images already but once I added and saved. I cannot view the homepage, its just blank. The other pages I am able to view, its just the home page that's not working. Any ideas why this is so?

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic