WordPress.org

Ready to get started?Download WordPress

Forums

DivUp Content
Wrapping innder divups - how can I do it? (5 posts)

  1. John_6x6
    Member
    Posted 2 years ago #

    Sorry, posted in your test topic accidentally - and made a mess of it too. Here it is again...

    How can I create an inner wrapper for select divups all contained inside the same divup-wrap? Please look at my page here: http://webdesignvalid.com/b2b-home/meet-us/executives/

    I'm trying to wrap the bottom 3 divups with a div called id="exec-wrap" to give them a border and background. In the WP html editor (attached below), I've placed the id="exec-wrap" opening div before divup-2 and after the last divup but it keeps moving the closing div wrap to the same line as the opening div. Any suggestions? I look at it in Firebug and can't make sense of it.
    Nice plugin by the way!

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent consequat interdum quam sit amet euismod. Duis odio est, ullamcorper id suscipit eu, dignissim in lectus. Ut aliquet sem eget tellus fermentum ut accumsan ante sagittis. Suspendisse potenti. Phasellus sit amet tellus nulla. Donec condimentum, nunc eget imperdiet lacinia, magna nisi vestibulum leo, auctor hendrerit enim arcu ac ipsum.
    
    <div id="exec-wrap">
    
    [divup]
    
    Some content on this page. Some content on this page. Some content on this page. Some content on this page. Some content on this page. Some content on this page. Some content on this page.
    
    [divup]
    
    Some content on this page. Some content on this page. Some content on this page. Some content on this page. Some content on this page. Some content on this page. Some content on this page.
    
    [divup]
    
    Some content on this page. Some content on this page. Some content on this page. Some content on this page. Some content on this page. Some content on this page. Some content on this page.
    
    [divup]
    
    Some content on this page. Some content on this page. Some content on this page. Some content on this page. Some content on this page. Some content on this page. Some content on this page.
    
    </div>

    http://wordpress.org/extend/plugins/divup-content/

  2. Themeover
    Member
    Plugin Author

    Posted 2 years ago #

    Was wondering where your post disappeared to for a moment!

    Unfortunately you can't create a custom wrapper div for a subset of divs generated by Divup content. But you can make one of the divups into a wrapper div. This is to do with how divup content works.

    The plugin replaces all instances of [divup] contained within a post or page with: </div><div class="divup etc etc">. In order to wrap some of the divups in a custom wrapper div, you would need to insert an opening <div id="exec-wrap"> just before the <div class="etc etc">. But this isn't possible because the plugin creates that html string.

    On your example, you have actually made divup-1 into a wrapper div for all the rest. The first [divup] shortcode is replaced by: </div><div class="divup div-2 div-even">. But this html closes your custom wrapper div instead of closing div-1 like it normally would. And your closing div for the #exec-wrap div actually closes div-1.

    If you move your opening <div id="exec-wrap"> to after the first [divup] shortcode you will make div-2 into a wrapper div for div-3, div-4 and div-5. Which may be close to what you want.

    Finally, it might be easier to just give the appearance of a single border and background around the last 3 divs by giving them the same background color and top and bottom border - but only give a left border to the left column and a right border to the right column. Just a thought.

  3. John_6x6
    Member
    Posted 2 years ago #

    Appreciate the quick response. i think I'll just do what you said at the end. Thanks

    One note: I would be a great added feature if one could designate where the divup-wrap begins. That would have made the whole thing work for me because I did not want to contain the first paragraph but this doesn't allow a choice.

  4. Themeover
    Member
    Plugin Author

    Posted 2 years ago #

    I'll certainly take that into consideration John.

  5. John_6x6
    Member
    Posted 2 years ago #

    Thanks. It has promise but I ended up using custom fields instead. I'm sure it will come in handy with something else though. Again, nice work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic