Hi Guys,
Just a quickie (hopefully!), I'm trying to remove the little exclaimation mark image that appears next to an error message e.g. when you enter incorrect login details on the customer login page?
Thanks,
James
This is a discussion on Removing Error Image within the osCMax v2 Features Discussion forums, part of the osCmax v2.0 Forums category; Hi Guys, Just a quickie (hopefully!), I'm trying to remove the little exclaimation mark image that appears next to an ...
Hi Guys,
Just a quickie (hopefully!), I'm trying to remove the little exclaimation mark image that appears next to an error message e.g. when you enter incorrect login details on the customer login page?
Thanks,
James
Easiest way is to replace the image with a 1x1px transparent image ...
You will find it in:
catalog/images/icons/warning.gif &
catalog/admin/images/icons/warning.gif
Depends on if you want to hide this on the client side or admin side.
You could also looking in warnings.php for the specific code if you want to only do it on specific warnings. (There are quite a lot of different ones throughout the store)
Hope this helps,
Regards,
pgmarshall
_______________________________
Hi,
Thanks for your help on this, I've resized the gif as per your instructions but the layout on the page is still a little of (which is my main concern), I need the error text to line up with everything else, at the moment it's indented by a few pixels.
Looks like there's a space in there as well from looking at the code which isn't in the language file for the page:
Any ideas where I can go to totally remove both?Code:<img src="images/icons/error.gif" border="0" alt="Error" title=" Error " width="1" height="1">
Cheers,
James
If you re-read my post I did say "transparent" image - then you won't see it and it will only be 1px wide.
However, if you want to try and remove all the images from the message stack completely ...
Look in catalog/includes/classes/message_stack.php
Around line 38 find:
and replace with:$this->messages[] = array('params' => 'class="messageStackError"', 'class' => $class, 'text' => tep_image(DIR_WS_ICONS . 'error.gif', ICON_ERROR) . ' ' . $message);
Should do the trick on the catalog side ... There will be others in wishlist.php.$this->messages[] = array('params' => 'class="messageStackError"', 'class' => $class, 'text' => $message);
Hope this helps,
pgmarshall
_______________________________
Thanks for getting back to me, I'll give that a go and keep my fingers crossed!
Cheers for all the help,
James
Bookmarks