Promotion Slider (dynamic height) (5 posts)

  1. MrJhan
    Posted 3 years 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.

  2. Micah Wood
    Posted 3 years 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
    Posted 3 years 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.


  4. Micah Wood
    Posted 3 years ago #


    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
    Posted 3 years ago #


    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

Topic Closed

This topic has been closed to new replies.

About this Topic