I want to add a span class to the text in the message stack...but don't know how to do it lol
http://www.amomentinscrap.com/shop/c...chology-collab
You can see a message stack thingy there in the middle and I want to get the text to align in the middle with the image rather than 'floating' at the bottom but everything I apply to the stylesheet for the div applies to the image as well....how can I get a class to just the text?
The only place I can find where to add it is in includes/classes/message_stack.php where it appears to construct the stack
And I don't know how to get a span there without buggering it up lolPHP Code:// class methods
function _add($class, $message, $type = 'error') {
global $template, $current_page_base;
$message = trim($message);
if (strlen($message) > 0) {
if ($type == 'error') {
$this->messages[] = array('params' => 'class="messageStackError larger"', 'class' => $class, 'text' => zen_image($template->get_template_dir(ICON_IMAGE_ERROR, DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . ICON_IMAGE_ERROR, ICON_ERROR_ALT) . ' ' . $message);
} elseif ($type == 'warning') {
$this->messages[] = array('params' => 'class="messageStackWarning larger"', 'class' => $class, 'text' => zen_image($template->get_template_dir(ICON_IMAGE_WARNING, DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . ICON_IMAGE_WARNING, ICON_WARNING_ALT) . ' ' . $message);
} elseif ($type == 'success') {
$this->messages[] = array('params' => 'class="messageStackSuccess larger"', 'class' => $class, 'text' => zen_image($template->get_template_dir(ICON_IMAGE_SUCCESS, DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . ICON_IMAGE_SUCCESS, ICON_SUCCESS_ALT) . ' ' . $message);
} elseif ($type == 'caution') {
$this->messages[] = array('params' => 'class="messageStackCaution larger"', 'class' => $class, 'text' => zen_image($template->get_template_dir(ICON_IMAGE_WARNING, DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . ICON_IMAGE_WARNING, ICON_WARNING_ALT) . ' ' . $message);
} else {
$this->messages[] = array('params' => 'class="messageStackError larger"', 'class' => $class, 'text' => $message);
}
}
}



