WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
[resolved] Long descriptions break container (13 posts)

  1. Drain0
    Member
    Posted 7 months ago #

    long descriptions are wider than the image and therefore break the gallery.
    How to fix?

    http://wordpress.org/plugins/nextgen-gallery/

  2. tizz
    Member
    Posted 7 months ago #

    Usually doesn't happen, so please post an URL to the problem.
    First, you should do what's reported here:
    http://wordpress.org/support/topic/read-this-before-you-open-a-new-thread-14?replies=2

  3. Drain0
    Member
    Posted 7 months ago #

    WP 3.7.1
    NextGen 2.0.33

    atb sandbox

  4. photocrati
    Member
    Plugin Author

    Posted 7 months ago #

    @DrainO - Our latest beta (http://www.nextgen-gallery.com/nextgen-gallery-latest-beta/) has some sort improvements included ... have you tried it to see if this corrects the issue you are seeing?

    - Cais.

  5. Drain0
    Member
    Posted 7 months ago #

    No that did not help - I re-inserted the gallery and long lines broke it again.

    I was using 'NextGen TinyMCE Picture Description' to format description but it is a bit glitchy - it would be cool if NextGen incorporated a wysiwyg editor

  6. photocrati
    Member
    Plugin Author

    Posted 7 months ago #

    @Drain0 - If you manually enter the description with HTML elements (rather than using a third-part extension for example) does this still happen ... or are you using a specific (custom?) template with the Gallery display?

    - Cais.

  7. Drain0
    Member
    Posted 7 months ago #

    As my proposed site is for a non-technical user I do not and can not expect them to use HTML elements. (But yes, if I use them it works fine). I am not using a custom template.

  8. Drain0
    Member
    Posted 7 months ago #

    I say that BUT I just manually added a link and it also broke the gallery
    arttobuy.dorset-sorted.co.uk/pictures-for-sale/

    Just so you can check my markup rttobuy.dorset-sorted.co.uk/ng-description-link/

  9. photocrati
    Member
    Plugin Author

    Posted 7 months ago #

    @Drain0 - Out latest beta should take care of the HTML parsing when it is used in the Description field (or images or galleries). The other item you noted on your post is generally related to the gallery preview image (read: thumbnail) not existing or not being usable.

    Feel free to submit a Bug Report (http://www.nextgen-gallery.com/report-bug/ ... please reference this topic) if the latest beta still does not sort out the HTML issue.

    - Cais.

  10. Drain0
    Member
    Posted 7 months ago #

    How about my original question "long descriptions are wider than the image and therefore break the gallery."

    I would like the text to automatically wrap when it reaches the width of the image.

    As my proposed site is for a non-technical user I do not and can not expect them to use HTML elements.

  11. Drain0
    Member
    Posted 7 months ago #

    Upgraded to Version 2.0.40
    Descriptions that are wider than the image still break the gallery...

    So I just made a custom style to manually set the width of the container (to match image width):

    .ngg-template-caption .ngg-gallery-thumbnail-box {
    margin-right: 40px;
    width: 200px;
    }

    It works - but is it the right DIV to edit? Ta

  12. photocrati
    Member
    Plugin Author

    Posted 7 months ago #

    @Drain0 - Using Custom CSS is often the best method as it allows for the theme styles in some cases. It appears you are using the correct identifier for that caption template, you may need to adjust which elements/identifiers you use if you choose a different or custom template in the future.

    Thanks for sharing what you used!

    - Cais.

  13. Drain0
    Member
    Posted 7 months ago #

    okay thanks. It would be good if the containing div automagically did this though.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.