2 tilqicom Sep 05, 2012 23:23

It might be because I just updated the DNS - it's pointing to http://humanrally.com/as-we-see/index.php which appears to be pulling the favicon from my other blog, not the correct one in the as-we-see skin folder...
You can just load it from any location. In example below the icon is loaded from current skin directory ( i.e. /skins/evopress/myicon.png )
Edit your _skin.class.php
/**
* Get ready for displaying the skin.
*
* This may register some CSS or JS...
*/
function display_init()
{
// call parent:
parent::display_init();
add_headline('<link rel="shortcut icon" href="myicon.png" />');
}
You may need to clear browser cache to realod the favicon
I can't seem to find a _skin.class.php file in either my skin folder or the main skins folder... do I need to create a new file and put this into it?
or simply open your ../skins/frugal/html.header.inc.php or parent skins folder if the skin doesnt have one and add
<link rel="shortcut icon" href="myicon.png" />
inside your <head>.
tilqicom wrote:
or simply open your ../skins/frugal/html.header.inc.php or parent skins folder if the skin doesnt have one and add
<link rel="shortcut icon" href="myicon.png" />
inside your <head>.
That's not recommended. The file _html_header.inc.php changes very often, and if you don't update it you'll have problems with CSS/JS and some other.
Ethan5150 wrote:
I can't seem to find a _skin.class.php file in either my skin folder or the main skins folder... do I need to create a new file and put this into it?
Just copy this file from any stock skin and edit it.
Well, skins are ought to have frequent updates too.It's just that b2's skins doesnt : D
Fail safe would be via a plugin.
Speaking of skin additions, I recommend a "resource loader" kind of plugin that would load extra javascripts, css files and such changes that might be lost due to updates.
sam2kb wrote:
tilqicom wrote:
or simply open your ../skins/frugal/html.header.inc.php or parent skins folder if the skin doesnt have one and add
<link rel="shortcut icon" href="myicon.png" />
inside your <head>.
That's not recommended. The file _html_header.inc.php changes very often, and if you don't update it you'll have problems with CSS/JS and some other.
Speaking of skin additions, I recommend a "resource loader" kind of plugin that would load extra javascripts, css files and such changes that might be lost due to updates.
This is already in v5 :)
Add custom meta tags and/or css styles to the <head> section. Example use: website verification, Google+, favicon image...
Add custom javascript before the closing </body> tag in order to avoid any issues with page loading delays for visitors with slow connection speeds.
Example use: tracking scripts, javascript libraries...
Cool, thanks for the heads up, 'cause i was thinking of making one in free time.
sam2kb wrote:
This is already in v5 :)
Well since I generally manage my skins individually, I added
<link rel="shortcut icon" href="http://humanrally.com/as-we-see/favicon.ico" />
to my head section in the _html_header.inc.php file but it still doesn't appear to be pulling up properly for me.
Clear browser cache. View source, make sure the code is there.
your blog is not loading for me