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

Loading

Add a Comment

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.