• Resolved stroziozi

    (@stroziozi)


    I did all the things you suggested to have the title show up on the slide:
    • I modified the meteor-slideshow.php file to have the slide title <p> show up
    • I modified my css file to define the meteor-slides p
    • I created the transparent background image and uploaded it.

    Everything works great – except that if I have a long title it just piles on top of itself rather than wrapping.

    The problem slide is the first one in the slideshow at
    http://bantamdesigns.com/wp/meteor-test/

    What am I missing? Is there a better way to do this if I want a longer title or caption or description?

    http://wordpress.org/extend/plugins/meteor-slides/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Josh Leuze

    (@jleuze)

    Hi, you need to add a line height to the caption:

    .meteor-slides p {
    background: transparent url('images/title-bg.png') repeat top left;
    bottom: 0;
    left: 0;
    color: black;
    margin: 0;
    padding: 18px 0;
    position: absolute;
    text-align: center;
    width: 100%;
    line-height: 18px;
    }
    Thread Starter stroziozi

    (@stroziozi)

    Thanks, that did it!! It wraps nicely now.

    One more problem, though: I changed the text alignment from centered to the default of left-aligned – and changed the padding to 18px all around to keep the text from bumping into the sides.

    .meteor-slides p {
    background: transparent url(‘images/title-bg.png’) repeat top left;
    bottom: 0;
    left: 0;
    color: black;
    margin: 0;
    padding: 18px;
    position: absolute;
    width: 100%;
    line-height: 18px;
    }

    For some reason, the padding works left, top, and bottom, but not on the right. What’s the problem?

    Of course, I want to keep it responsive.

    http://bantamdesigns.com/wp/meteor-test/

    Plugin Author Josh Leuze

    (@jleuze)

    The problem is that the width is 100%, and the left and right padding add to that to make it more than 100%. Change the caption width to “524px” so that it all adds up to equal the slideshow width and it should work.

    Thread Starter stroziozi

    (@stroziozi)

    That didn’t work. It became not responsive – smaller format completely cut text off. Maybe I should try putting a div around the <p> code in the php file, then defining the div and the p separately. Or would ems work better than pixels?

    Plugin Author Josh Leuze

    (@jleuze)

    Ah, didn’t know it was responsive, in that case you need to use percentages for all the values so it adds up to 100%.

    .meteor-slides p {
    background: transparent url('images/title-bg.png') repeat top left;
    bottom: 0;
    left: 0;
    color: black;
    margin: 0;
    padding: 2%;
    position: absolute;
    text-align: center;
    width: 96%;
    line-height: 18px;
    }
    Thread Starter stroziozi

    (@stroziozi)

    Thanks. That completely did it. I’m new to responsive design but am trying start using it exclusively. That’s why I chose your plugin. Your support response is excellent too.

    Plugin Author Josh Leuze

    (@jleuze)

    No problem, glad to help!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘longer slide title text is not wrapping’ is closed to new replies.