Magento – Contact Us Success Message Not Displaying Properly

contact-uslayoutmagento-1.9messagespage-content

I'm using the standard Contact Us page in Magento and it is not in a CMS page. When a customer sends a message, the success message does display. However, the page header is moved down and displays on top of the success message. I have looked everywhere and have no idea how to fix this. Feel free to send me a test message to see what I mean. Use the Contact Us link in the footer of www.shademountainarmory.com.

enter image description here

The only thing I could find in the Magento files relating to the success message was found in app/code/core/Mage/Contacts/controllers/IndexController.php. Here's the message code…

$translate->setTranslateInline(true);
                Mage::getSingleton('customer/session')->addSuccess(Mage::helper('contacts')->__('Your inquiry was submitted and will be responded to as soon as possible. Thank you for contacting us.'));
                $this->_redirect('*/*/');
                return;
            } catch (Exception $e) {
                $translate->setTranslateInline(true);

                Mage::getSingleton('customer/session')->addError(Mage::helper('contacts')->__('Unable to submit your request. Please, try again later'));
                $this->_redirect('*/*/');
                return;

I can't find anywhere to modify WHERE the message appears since it seems to bump my page header down.

Best Answer

This is not due to magento's code. Please make changes in css.

  • Open styles.css
  • Add class

    .contacts-index-index .page-title { margin:0; }