CMSPages" />

欧美三区_成人在线免费观看视频_欧美极品少妇xxxxⅹ免费视频_a级毛片免费播放_鲁一鲁中文字幕久久_亚洲一级特黄

magento添加fancy頁面 Creating fancy FAQ page

系統(tǒng) 2094 0

Introduction

Just keep reading this tutorial which will teach how to create a fancy FAQ with expandable/collapsible feature in an easier approach.

In short, creating a fancy FAQ section can be easily achieved in Magento by using CMS page & jQuery.


Steps

Go to Admin > CMS Pages > Add New Page and implement the following steps:


1. Add FAQ contents
Add the following content in the ‘Content’ > ‘Content’ section of CMS page:

    <div class="expand_wrapper">
    <h2 class="expand_heading"><a href="#">1. WordPress Theme Development</a></h2>
    <div class="toggle_container">
        <div class="box">
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum</p>
        </div>
    </div>
    <h2 class="expand_heading"><a href="#">2. Magento E-commerce</a></h2>
    <div class="toggle_container">
        <div class="box">
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum</p>
            <p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum</p>
        </div>
    </div>
    <h2 class="expand_heading"><a href="#">3. Website Development</a></h2>
    <div class="toggle_container">
        <div class="box">
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum</p>
            <p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum</p>
        </div>
    </div>
    <h2 class="expand_heading"><a href="#">4. PHP MySql Development</a></h2>
    <div class="toggle_container">
        <div class="box">
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum</p>
            <p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum</p>
        </div>
    </div>
</div>
  
?

2. Inject jQuery code
Add the following xml code in ‘Design’ > ‘Layout Update XML’ field of CMS page:

    <reference name="head">
    <block type="core/text" name="google.cdn.jquery">
        <action method="setText">
            <text><![CDATA[
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript">
    jQuery(document).ready(function(){
        jQuery(".toggle_container").slice(1).hide();//expands first FAQ content
        jQuery(".expand_heading:first").addClass("active");//add active class to first FAQ title
        jQuery("h2.expand_heading").click(function(event){
            event.preventDefault()
            jQuery(this).toggleClass("active");
            jQuery(this).next(".toggle_container").slideToggle("slow");
        });
    });
</script>
 
            ]]></text>
        </action>
    </block>
</reference>
  
?

3. You’re done
Go to the frontend and open the FAQ page, you will see as:

?

magento添加fancy頁面 Creating fancy FAQ page in Magento – an easier approach

FAQ Page With Expand/Collapse

?

?

來源: http://www.blog.magepsycho.com/creating-fancy-faq-page-in-magento-an-easier-approach/

?

?

magento添加fancy頁面 Creating fancy FAQ page in Magento – an easier approach


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯(lián)系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機(jī)微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發(fā)表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 日韩av在线中文字幕 | 国产免费福利视频一区二区 | 一级黄色大毛片 | 91精品国产色综合久久不卡蜜臀 | 亚洲成人在线免费 | 国产区一区 | 成人亚洲一区 | 日本一级在线 | 中文字幕视频一区 | 日日干日日插 | 亚洲欧美中文在线观看4 | 亚洲国产成人精彩精品 | 久久视屏这里只有精品6国产 | 日本免费在线视频 | 国产精品视频免费观看 | 一区二区三区视频免费观看 | 国产永久免费 | 国产色视频一区 | 欧美日韩一区二区三区在线观看 | 97超级碰碰在线看视频免费超 | 特级做a爰片毛片免费看 | 人人爽人人爽 | 国内自拍视频在线观看 | 日韩av免费看| 欧美成在人线a免费视频 | 91在线成人| 成人av一区 | 91视频免费网址 | 亚洲精品人成网线在线 | 猫鼠游戏电影在线观看免费版 | 日本一级特黄视频 | 啪啪在线看 | 波多野结衣在线视频观看 | 黑色丝袜美女被视频网站 | 日韩污视频 | 午夜精品久久久久久99热软件 | 在线国产视频 | 久久极品 | 亚洲码欧美码一区二区三区 | 色爱av| 91久久线看在观草草青青 |