2012-09-13 36 views
1

對於joomla模板,我有一個非常簡單的問題。 最終結果是:http://css3playground.com/flip-card.php將Joomla網站包裝成div

我想要做的事情很簡單,在某種意義上,但需要知道去哪裏看; 我希望整個頁面都包裝在兩個div中,所有PHP代碼,我可以在css中定義哪些類並放入一些javascrpt,以便我可以將頁面轉換應用到該div。除了在哪裏做,我知道該怎麼做,Joomla的PHP結構對我來說是新的。

而且,在第一步完成後,在內容之後創建第二個div,該內容將從模板內的頁面上的點擊鏈接動態加載內容,但是這兩個問題一次lol。

第一部分的任何想法?

回答

0

如果你只是想用一個div涵蓋整個模板,恰恰如此:包裹在一個div模板,並給它一個自定義class和id:

<html> 
    <head> 
     //stuff here 
    </head> 

    <body> 
     //insert the wrapper here 
     <div id="wrapper"> 
      //template structure here 
     </div> 
    </body> 
</html> 

要編輯的文件將很可能被命名爲index.php位於public_html/templates/your_template/index.php

對於某些模板(例如Yootheme的模板),您將改爲編輯public_html/templates/your_template/layouts/template.php(或/public_html/templates/your_template/styles/current_profile/layouts/template.php,如果使用的是非默認配置文件)文件。