SimplePortal
Customization => Themes and Graphics => Topic started by: Chongkolai on July 12, 2011, 06:43:30 AM
-
hello anyone knows how to move portal.css to template header? the default is inside the template's body. the reason why i want to move the portal.css to header is to combine index.css and portal.css because im working with my forum load performance. thanks in advance ;)
-
oops im sorry portal.css is in the header..
now the question is how can i remove this code from header?
<link rel="stylesheet" type="text/css" id="portal_css" href="http://www.domain.com/forum/Themes/default/css/portal.css" />
i want to put the css content from portal.css inside index.css
-
please help....
-
I found the answer to your question by searching for "portal.css" in all the php files.
This information is stored in $context['html_headers'] . You can find the code for this in Subs-Portal.php
Enjoy!
-
sp version= 2.3.3 ?
-
sp version= 2.3.3 ?
?
Please explain more.
-
I found the answer to your question by searching for "portal.css" in all the php files.
This information is stored in $context['html_headers'] . You can find the code for this in Subs-Portal.php
Enjoy!
I could not find this file:portal.css
sp version: 2.3.3
-
Have you considered upgrading to version 2.3.5?
Look in you themes css files.
-
I think what you want is to have portal.css in the current theme you're using right? If so, create a file called portal.css inside the css.index file and copy everything from the default theme portal.css to the new file you created.
-
Have you considered upgrading to version 2.3.5?
Look in you themes css files.
No. There are a lot of modifications to the portal.
I think what you want is to have portal.css in the current theme you're using right? If so, create a file called portal.css inside the css.index file and copy everything from the default theme portal.css to the new file you created.
Thanks.
-
Have you considered upgrading to version 2.3.5?
Look in you themes css files.
No. There are a lot of modifications to the portal.
Upgrading shouldn't affect any changes to the portal.
Hopefully someone will correct me if I am wrong.
-
Sorun cozuldu mu bolubeyi?
-
Sorun cozuldu mu bolubeyi?
Sorunu dolaylı yoldan çözdüm. smfnin ve diğer eklentilere ait css dosyasını kaldırdıp, içeriklerini portal.css dosyasına ekledim. Esas yapmak istediğim tüm css dosyalarını kullandığım temanın index.css dosyasında toplamaktı. Sorunu çözmeme rağmen esas yapmak istediğim hakkında bir bilginiz varsa öğrenmek isterim. portal.cssnin yolu hangi kaynak dosyada belirtilmiş bulamadım. İlginiz için teşekkür ederim.
-
Sources/Subs-Portal.php dosyasindan su satiri silerseniz portal.css dosyasi eklenmez sayfaya:
loadTemplate(false, 'portal');
Eger hicbir modun CSS dosyasi eklenmesin derseniz dogrudan ilgili fonksiyonu da degistirebilirsiniz:
Sources/Load.php
if (!empty($style_sheets))
if (!empty($style_sheets) && false)
Sonrasinda gerekli butun CSS dosyalarinin icerigini elle index.css dosyasina eklersiniz.
-
Sources/Subs-Portal.php dosyasindan su satiri silerseniz portal.css dosyasi eklenmez sayfaya:
loadTemplate(false, 'portal');
Teşekkür ederim. Öğrenmek istediğim bu idi.
Konu çözülmüştür. (http://www.spinabifidaturkey.com/smf/Smileys/default/appl.gif)
-
Birsey degil. Kolay gelsin.
To sum it up, for the original poster as well, you can remove the following line in Sources/Subs-Portal.php file to remove the stylesheet link added to the header:
loadTemplate(false, 'portal');