When caption is "", nivo-slider still shows it, so in bottom slider have a black line.
I fixed it by this: Change line 65-75 of sliders.inc to:

$caption = check_markup($settings['description']['value'], $settings['description']['format']);
		if ($caption != '') {
			// Generate a unique anchor to reference the HTML caption
			$description = '#htmlcaption-' . $slide;
		
			// Create the HTML caption markup
			$html_caption = '';
			$html_caption .= '<div id="htmlcaption-' . $slide . '" class="nivo-html-caption">';
			$html_caption .= check_markup($settings['description']['value'], $settings['description']['format']);
			$html_caption .= '</div>';

			// Add the HTML caption markup
			$description_html .= $html_caption;
		}

Comments

devin carlson’s picture

Title: Nivo-caption not working properly » Empty captions are displayed
Version: 7.x-1.5 » 7.x-1.x-dev
Priority: Minor » Normal
Status: Reviewed & tested by the community » Active
devin carlson’s picture

Status: Active » Needs review
StatusFileSize
new1.96 KB

I can't duplicate this using non-plain text text formats and empty captions but I've noticed some WYSIWYG editors automatically insert empty markup <p></p>, etc which causes the Nivo Slider jQuery Plugin to display a caption so it might be best to add a check that strips all markup from the entered captions and ensures that some actual text was also entered.

devin carlson’s picture

Status: Needs review » Fixed

Committed #2 to 7.x-1.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.