WordPress.org

Ready to get started?Download WordPress

Forums

Promotion Slider
[resolved] edit excerpt text (16 posts)

  1. marisqa
    Member
    Posted 2 years ago #

    Hello. I figured out how to put the excerpt box to the right 40% of the slider. But nothing I do affects the fact that the text is hugging the top left of the div. (padding, margin, etc). How do I control this in the css?

    http://pmndesign.com/

    http://wordpress.org/extend/plugins/promotion-slider/

  2. marisqa
    Member
    Posted 2 years ago #

    Hi - update.

    I actually figured out how to do some limited styling to the featured slider. But I now need some more options. I would like to display the Title again on the left. See URL again.

    pmndesign.com

    Please help! This requires some change to the php so might be a little more complex than the above.

  3. Micah Wood
    Member
    Plugin Author

    Posted 2 years ago #

    I took a look at your site and saw that you have the title showing again on the left. Do you still need some help with other aspects or have you figured it out?

  4. marisqa
    Member
    Posted 2 years ago #

    I'm sorry Micah - I meant to say I want the title on the right. I think I will actually include a screenshot of the mockup that I would like somehow, I will either email it or post a URL to it here.

    So it would give some visual hierarachy on the right along with the excerpt.

    So sorry for the confusion!

  5. marisqa
    Member
    Posted 2 years ago #

    Here's a link to something similar - I want the title and excerpt on the right (except on the BBC site it's on the left).

    I don't want to remove the cool fancy title that the plugin already has from the left though.

    http://www.bbc.co.uk/

  6. moregone
    Member
    Posted 2 years ago #

    Hello, do you think you could share how you got the excerpt to be on the right hand side and 40%. I like the example of the wine that shows the excerpt on the right hand side and not across the bottom.

    Thanks

  7. moregone
    Member
    Posted 2 years ago #

    just making sure I get notified of responses.

  8. Micah Wood
    Member
    Plugin Author

    Posted 2 years ago #

    Marisqa,

    You can add the title within the excerpt container by making a small alteration to the code. Don't actually alter the plugin, or you will lose your changes if you update the plugin in the future. You can add this to your theme's functions.php file and it will work just fine:

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

  9. marisqa
    Member
    Posted 2 years ago #

    Hi moregone!

    I believe this is all the css I modified, but I will not follow Micah's advice and somehow put it in a custom file of some sort, in keeping with his recommendation to not modify the plugin.

    .promo_slider img { margin:0; padding:0; right:40%; max-width:60%; background:#fff;}
    .promo_slider .panel {background:#E7f0f7; /*background:url('images/slide.png');*/ display:none; float:left; overflow:hidden; width:100%; height:100%; }
    
    .promo_slider_excerpt {
    	display:block;
    	position:absolute;
    	right:0; bottom:0; left:60%;  height:70%;
    	color:#4F85CF;
    	font-size:14px;
    	line-height:22px;
    	margin: 50px 20px 30px 30px;
    
    }

    If this doesn't work. please let me know and I'll scour the css to see if there's anything I missed - but I think this is all!

  10. marisqa
    Member
    Posted 2 years ago #

    I mean I will NOW follow Micah's advice.

  11. marisqa
    Member
    Posted 2 years ago #

    Hi Micah,
    Thanks again for your reply.

    It's so great to hear back!

    The code came through in the email - so I copied and pasted it. There were some errors, but I noticed some funny characters, that I think were lost in the translation when the code got emailed. Can you try sending again?

    Parse error: syntax error, unexpected T_FUNCTION .

  12. Micah Wood
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry about that, apparently WordPress doesn't let you know when you submit the comment that the code exceeds the max number of lines. Here is a link: http://pastebin.com/SachmVnS

  13. marisqa
    Member
    Posted 2 years ago #

    Fantastic - thanks much.

  14. marisqa
    Member
    Posted 2 years ago #

    it works - all that's left is to style it like I want to. Thanks for the help! I never could have figured that out the way I was going yesterday. I'm resolving this.

  15. ellepixal
    Member
    Posted 2 years ago #

    Marisqa, Congratulations, I am impressed what you did with the slider and will revisit this page for making alterations to my slider. ellepixal(Ruth)

  16. marisqa
    Member
    Posted 2 years ago #

    Hi Ellepixal - here is the link if you need a demo - it might move so I apologize if it's down when you check it out, but I'll try to keep it here for awhile.

    http://floridakeys.pmndesign.com/

    And many thanks to Micah the author of this awesome plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic