Note that there are some explanatory texts on larger screens.

plurals
  1. POBest way to insert a css reference for a single page in Magento
    primarykey
    data
    text
    <p>Have had no luck trying to add a reference to a custom.css file to the customer dashboard page in Magento. It makes me want to shoot Magento in the eye, Navy SEAL style.</p> <p>According to the docs, either of the following inserted into customer.xml in should work:</p> <pre><code>&lt;reference name="customer_account_dashboard"&gt; &lt;action method="addCss"&gt;&lt;link&gt;dashboardfix.css&lt;/link&gt;&lt;/action&gt; &lt;/reference&gt; &lt;reference name="customer_account_dashboard"&gt; &lt;action method="addCss"&gt;&lt;stylesheet&gt;css/dashboardfix.css&lt;/stylesheet&gt;&lt;/action&gt; &lt;/reference&gt; </code></pre> <p>When inserted <em>before</em> this block:</p> <pre><code>&lt;reference name="my.account.wrapper"&gt; &lt;block type="customer/account_dashboard" name="customer_account_dashboard" template="customer/account/dashboard.phtml"&gt; &lt;block type="customer/account_dashboard_hello" name="customer_account_dashboard_hello" as="hello" template="customer/account/dashboard/hello.phtml"/&gt; &lt;block type="core/template" name="customer_account_dashboard_top" as="top" /&gt; &lt;block type="customer/account_dashboard_info" name="customer_account_dashboard_info" as="info" template="customer/account/dashboard/info.phtml"/&gt; &lt;block type="customer/account_dashboard_newsletter" name="customer_account_dashboard_newsletter" as="newsletter" template="customer/account/dashboard/newsletter.phtml"/&gt; &lt;block type="clientname/account_dashboard_address" name="customer_account_dashboard_address" as="address" template="customer/account/dashboard/address.phtml"/&gt; &lt;/block&gt; &lt;/reference&gt; </code></pre> <p>It fails silently (no errors, its as if it wasn't processed at all)</p> <p>When inserted <em>after</em> the block, I get an "Invalid method Mage_Customer_Block_Account_Dashboard::addCss(Array ( [0] => css/dashboardfix.css )) error</p> <p><em>dashboardfix.css</em> is in the skinname/css folder with my other assets.</p> <p>Any ideas?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload