Forums

(nextgen gallery) caption text spaced out (14 posts)

  1. BimCreate
    Member
    Posted 10 months ago #

    Using the caption template for nextgen and I was able to get it to work but the text seems really spaced out under the template.

    Is there any other shortcodes I need to add to adjust the height?

    here is a screenshot of my problem.

  2. GLHQ
    Member
    Posted 10 months ago #

    While I haven't looked at the individual files, there is a /css directory inside the /next-gen-gallery directory where you should be able to change this. Good luck!

  3. BimCreate
    Member
    Posted 10 months ago #

    found the directory, but no idea what i should edit in the nggalery.css

    here's the code:

    [CSS moderated as per the Forum Rules. Please just post a link to your site.]

  4. GLHQ
    Member
    Posted 10 months ago #

    I'd suggest using a browser plugin like Firebug to find which css element you need to change. Then you could use a word processor that has the capability to search entire directories to find which file that particular style element is in. (Among others, TextWrangler, which is freeware, can do this.) If you need help editing css files, I've always found w3schools (http://www.w3schools.com) to be very useful. Cheers.

  5. BimCreate
    Member
    Posted 10 months ago #

    tried firebug but I'm not good with CSS code that's why I asked if anyone had an idea which line of code I should edit.

  6. BimCreate
    Member
    Posted 9 months ago #

    hasn't worked any1 have a solution?

  7. dreamwhisper
    Member
    Posted 9 months ago #

    This issue I believe is the addition of <br /> tags before and after the image. It is also outputting invalid </p> tags.

  8. BimCreate
    Member
    Posted 9 months ago #

    where exactly would i edit these? because it happens on every theme for me.

  9. BimCreate
    Member
    Posted 9 months ago #

    <div class="ngg-gallery-thumbnail">
    <a class="thickbox" rel="set_9" title="71X" href="http://fiberpolinc.com/wp-content/gallery/decorangreens/71x_001.jpg">
    <br>
    <img width="130" height="140" src="http://fiberpolinc.com/wp-content/gallery/decorangreens/thumbs/thumbs_71x_001.jpg" alt="71x_001" title="71x_001">
    <br>
    </a>
    <br>
    <span>71X</span>
    </div>

    Used firebug and this is the code between each image.

    I'm guessing the problem would be these `<br>
    </a>
    <br>`

    Theres no need for a br tag before the </a>

    Where would I go to edit this?

  10. dreamwhisper
    Member
    Posted 9 months ago #

    I just eliminated them by editing the files in NextGen's View folder. I had to remove all spacing from the file otherwise WP was inserting extraneous html.

    Could be a couple of issues. It could be your theme, a plugin or just something in NextGen. I haven't had time to investigate the why just that I found that removing the spacing in those files solved the issue.

    http://theandystratton.com/2011/shortcode-autoformatting-html-with-paragraphs-and-line-breaks

    The issue has been "discussed" a couple of times:
    http://wordpress.org/support/topic/plugin-nextgen-gallery-remove-from-around-thumbnail?replies=3
    http://wordpress.org/support/topic/plugin-nextgen-gallery-remove-break-after-singlepic?replies=5

  11. BimCreate
    Member
    Posted 9 months ago #

    so remove each space withing the gallery.php file?

  12. dreamwhisper
    Member
    Posted 9 months ago #

    It depends on which template you are using. For instance, if you are using compact, you'll need to edit album-compact.php.

  13. BimCreate
    Member
    Posted 9 months ago #

    ok, where is it located?

  14. BimCreate
    Member
    Posted 9 months ago #

    I found them and removed all spaces but it didn't work.

    edited:

    This is what I am seeing:
    http://imageshack.us/photo/my-images/339/nextgengallerycaptionsp.png/
    After removing all the spaces withing the gallery-caption.php file there was no change.

    I also tried removing spaces from gallery.php file album compact and album extended.

    removing spaces didn't change anything to the existing gallery.

Reply

You must log in to post.

About this Topic

Tags