I am using drop menu to create body content for section pages where I have a title that is the link followed by a description of the page which seemed perfect for DropMenu but I am running into a problem where dropmenu wants to format as follows:
Link - Description
And I want:
Link
Description
This seemed fairly easy since I found the code that looked like:
if ($showDescription && (!empty($child['$descriptionField']))) {
$desc = " – ".$child['$descriptionField'];
} elseif ($showDescription && (!empty($child['description']))) {
$desc = ' – ' . $child['description'];
} elseif ($showDescription && (!empty($child['introtext']))) {
$desc = ' – ' . $child['introtext'];
} elseif ($showDescription && (!empty($child['longtitle']))) {
$desc = ' – ' . $child['longtitle'];
} else {
$desc = '';
}
Which I replaced with:
if ($showDescription && (!empty($child['$descriptionField']))) {
$desc = "<br />".$child['$descriptionField'];
} elseif ($showDescription && (!empty($child['description']))) {
$desc = '<br />' . $child['description'];
} elseif ($showDescription && (!empty($child['introtext']))) {
$desc = '<br />' . $child['introtext'];
} elseif ($showDescription && (!empty($child['longtitle']))) {
$desc = '<br />' . $child['longtitle'];
} else {
$desc = '';
}
Where all ’ – ’ are replaced with ’
’ but this seems to make no difference on the generated HTML. I searched for "– but could not find it elsewhere. I also could not find anywhere else that this appeared to be output.
I am by no means a PHP expert so if anyone has any ideas here I would be greatful.