Magento 添加 google font Adding a google fonts into Magento

方法一:

In your theme  located at  app/design/frontend/YOUR_THEME/YOUR_TEMPLATE/layout/local.xml just add the code below:

<?xml version="1.0"?>
<layout>
	<default><!-- use for all pages -->
		<reference name="head">
			<action method="addLinkRel"><rel>stylesheet</rel><href>//fonts.googleapis.com/css?family=Oxygen</href></action>
		</reference>
	</default>
</layout> 

 

 

方法二:

In your theme  located at  app/design/frontend/YOUR_THEME/YOUR_TEMPLATE/layout/page.xml just add the code below:

    <default translate="label" module="page">
        <label>All Pages</label>
        <block type="page/html" name="root" output="toHtml" template="page/2columns-right.phtml">

            <block type="page/html_head" name="head" as="head">
	        ...
                <action method="addLinkRel"><rel>stylesheet</rel><href>//fonts.googleapis.com/css?family=Oxygen</href></action>
            </block>

 

 

原文/转自: Magento 添加 google font Adding a google fonts into Magento

 

 

 

 

 

 

 

 

你可能感兴趣的:(Magento 添加 google font Adding a google fonts into Magento)