SimplePortal

Customization => Themes and Graphics => Topic started by: Chongkolai on July 12, 2011, 06:43:30 AM

Title: Move portal.css to header
Post 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  ;)
Title: Re: Move portal.css to header
Post by: Chongkolai on July 12, 2011, 06:49:52 AM
oops im sorry portal.css is in the header..

now the question is how can i remove this code from header?

Code: [Select]
<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

Title: Re: Move portal.css to header
Post by: Chongkolai on July 17, 2011, 08:42:53 AM
please help....
Title: Re: Move portal.css to header
Post by: AngelinaBelle on July 25, 2011, 11:14:41 AM
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!
 
 
 
Title: Re: Move portal.css to header
Post by: tc bolubeyi on May 02, 2013, 03:27:06 PM
sp version= 2.3.3 ?
Title: Re: Move portal.css to header
Post by: Old Fossil on May 02, 2013, 06:08:22 PM
sp version= 2.3.3 ?

?

Please explain more.
Title: Re: Move portal.css to header
Post by: tc bolubeyi on May 02, 2013, 06:17:46 PM
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:
Code: [Select]
portal.csssp version: 2.3.3
Title: Re: Move portal.css to header
Post by: Old Fossil on May 02, 2013, 06:21:33 PM
Have you considered upgrading to version 2.3.5?

Look in you themes css files.

Title: Re: Move portal.css to header
Post by: Mick. on May 02, 2013, 06:45:59 PM
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.
Title: Re: Move portal.css to header
Post by: tc bolubeyi on May 02, 2013, 08:24:51 PM
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.

Title: Re: Move portal.css to header
Post by: Old Fossil on May 02, 2013, 08:29:47 PM
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.
Title: Re: Move portal.css to header
Post by: [SiNaN] on May 02, 2013, 08:34:34 PM
Sorun cozuldu mu bolubeyi?
Title: Re: Move portal.css to header
Post by: tc bolubeyi on May 02, 2013, 08:49:03 PM
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.
Title: Re: Move portal.css to header
Post by: [SiNaN] on May 02, 2013, 08:56:30 PM
Sources/Subs-Portal.php dosyasindan su satiri silerseniz portal.css dosyasi eklenmez sayfaya:

Code: [Select]
loadTemplate(false, 'portal');
Eger hicbir modun CSS dosyasi eklenmesin derseniz dogrudan ilgili fonksiyonu da degistirebilirsiniz:

Sources/Load.php

Code: (Bul) [Select]
if (!empty($style_sheets))
Code: (Degistir) [Select]
if (!empty($style_sheets) && false)
Sonrasinda gerekli butun CSS dosyalarinin icerigini elle index.css dosyasina eklersiniz.
Title: Re: Move portal.css to header
Post by: tc bolubeyi on May 02, 2013, 09:00:12 PM
Sources/Subs-Portal.php dosyasindan su satiri silerseniz portal.css dosyasi eklenmez sayfaya:

Code: [Select]
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)
Title: Re: Move portal.css to header
Post by: [SiNaN] on May 02, 2013, 09:07:39 PM
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:

Code: [Select]
loadTemplate(false, 'portal');
SimplePortal 2.3.8 © 2008-2024, SimplePortal