WordPress.org

Ready to get started?Download WordPress

Forums

Promotion Slider (dynamic height) (5 posts)

  1. MrJhan
    Member
    Posted 1 year ago #

    I installed the promotion slider, which is an easy and great plugin to use for my sliders.

    My problem is that I would like the height to be responsive to the amount of excerpt content I choose to display on certain pages. So if there is alot of excerpt text I would like to have the height adjust itself.

    Any help is appreciated.
    Regards
    Johan

  2. Micah Wood
    Member
    Posted 1 year ago #

    Do you have an page with a slider that I could take a look at? There are so many ways that something like this could be implemented that it helps to have your specific use case in mind.

  3. MrJhan
    Member
    Posted 1 year ago #

    Hi Micah,

    And thanks for the quick reply.

    On the following page: http://engstrand.biz/johan/index.php/category/spirituellt/medium/matthew-ward/ you can find an example with a bg pic and some excerpt text.

    Right now the height fits the excerpts, in a regular browser, but if you make the browser window smaller you see the text disappear below.

    Thanks.

  4. Micah Wood
    Member
    Posted 1 year ago #

    @MrJhan,

    Here is the code you should add:

    div.promo_slider { height: auto; }
    div.promo_slider_background_image { position: absolute; }
    div.promo_slider_title { position: relative; }
    div.promo_slider_excerpt { position: relative; top: 0; }

    You might also want to use paragraphs instead of line breaks in your excerpts so you have more control over spacing.

  5. MrJhan
    Member
    Posted 1 year ago #

    @Micah,

    Thanks for the great and quick support and of course for a superb product. I wish I could shower you with money but for now I'll begin with a small donation ;-)

    Kind regards
    Johan

Topic Closed

This topic has been closed to new replies.

About this Topic