Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

What files references the CSS stylesheets in the latest version
 
g4m3c4ck
Jr. Member
 
Total Posts:  20
Joined:  2008-02-01
 

What file makes the necessary calls to the css files? I am trying to add lightbox2 to the product view page to spruce things up a bit.

I am running the latest version of PHP and Magento.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Bill007
Sr. Member
 
Avatar
Total Posts:  179
Joined:  2008-01-15
New Zealand
 

Kia Ora

app/design/frontend/your_interface/your_new_theme/template/page/3columns.phtml

You find a file for every layout possible for magento that is e.g .

1column.phtml
2columns-left.phtml
2columns-right.phtml
3columns.phtml

Let me Know how you get on and even better share the code with the community after all this is open source wink

Bill007 http://www.euphorish.com free downloads Web development site

 
Magento Community Magento Community
Magento Community
Magento Community
 
Bill007
Sr. Member
 
Avatar
Total Posts:  179
Joined:  2008-01-15
New Zealand
 

Thanks Ohminu I kind Of knew that but if he was looking to add some code to call an external file say CSS or Javascript surley he would put it in one of the above phtml files I stand to be corrected of course oh and while i have you here can you tell me how to get the footer links such as about us sitemap etc to site in the header nav bar

Bill007 http://www.euphorish.com web Development

 
Magento Community Magento Community
Magento Community
Magento Community
 
g4m3c4ck
Jr. Member
 
Total Posts:  20
Joined:  2008-02-01
 

Where is the getAdditionalCssJs() function defined?

I am not even sure if I find it if I can add

<link rel="stylesheet" href="<?=$this->getSkinUrl('css/styles.css')?>" type="text/css" media="all"/>
<
link rel="stylesheet" href="<?=$this->getSkinUrl('css/lightbox.css')?>" type="text/css" media="all"/>

when I find the function.

 
Magento Community Magento Community
Magento Community
Magento Community
 
iblastoff
Sr. Member
 
Total Posts:  252
Joined:  2007-08-31
 

g4m3c4ck: try using a php editor that can find a functions declaration location.

getAdditionalCssJs() is defined within the Mage_Page_Block_Html_Head class.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Greg
Member
 
Total Posts:  53
Joined:  2007-12-03
Carmel, IN USA
 

Blastoff,

Can you give us some examples.  I’m a BBEdit and Dreamweaver user myself.

Greg

 
Magento Community Magento Community
Magento Community
Magento Community
 
lgp
Jr. Member
 
Total Posts:  4
Joined:  2008-02-14
 

I really don’t know what I’m missing here.

I am currently trying to create a new theme. I have read the designer’s guide and found it useful. However, I’m facing a problem when creating a new theme.

I have changed my home page’s layout to 2columns-left and that worked fine. Now what I want to do is remove the css and js files that are included, since I won’t need them (or most of them) for my theme. So I go to my theme/layouts/page.xml and remove the actions that supposedly add the css and js files, but nothing happens. So I go to default/layouts/page.xml and remove the same lines (so that now both files don’t have these lines) but it’s still including the css and js.

Is there anything am I missing? Where else could the css and js be set up?

Thanks in advance.

 
Magento Community Magento Community
Magento Community
Magento Community
 
iblastoff
Sr. Member
 
Total Posts:  252
Joined:  2007-08-31
 

removing them from page.xml worked fine for me. try clearing/turning off system cache?

 
Magento Community Magento Community
Magento Community
Magento Community
 
lgp
Jr. Member
 
Total Posts:  4
Joined:  2008-02-14
 

I thought I had disabled the caching system, but “layouts” was enabled ¬¬. Thanks a lot iblastoff and I’m sorry I bothered you for such a stupid problem.

 
Magento Community Magento Community
Magento Community
Magento Community
 
iblastoff
Sr. Member
 
Total Posts:  252
Joined:  2007-08-31
 

its not a problem. we’re all learning as we go here!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top