Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter puregraphx

    (@puregraphx)

    The extra line breaks are due to the AWAKE WordPress theme I purchased.

    Thread Starter puregraphx

    (@puregraphx)

    Correction, I’ve resolved the error in the NextGen gallery plugin file /view/gallery.php line 42. You should place all PHP code on one line, otherwise, WP wil insert an ‘br’.

    which code are you referring to?

    greencode

    (@greencode)

    Thanks @puregraphx – I was having the same issue.

    Changing the following code in /view/gallery.php

    <a href="<?php echo $image->imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >
    				<?php if ( !$image->hidden ) { ?>
    				<img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> />
    				<?php } ?>
    			</a>

    to this

    <a href="<?php echo $image->imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> ><?php if ( !$image->hidden ) { ?><img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> /><?php } ?></a>

    Resolved the issue by removing the break tags that WordPress decides to insert.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: NextGEN Gallery] Remove br from around thumbnail’ is closed to new replies.