thank you so much for GPeasy! It´s great, pretty and so easy (GPeasy)! I love it.
I´ve made a site which is running superb. But I´ve got one question:
How can I use a Favicon? I know that there was a answer in this form, but ... well... I dont know which file I should edit?
I´ve got the favicon.ico file in the root. And I use the Light_Texture/Blue Theme. Mmmh... but I dont want to "mess around"... so...
Please, could you help me?
I would edit your theme's template.php file. These are located in the folders /themes/--theme-name--/template.php.
The template.php files are mostly html files with a few php calls interspersed so if you're familiar with html, it should be pretty straight forward. Just add the favicon html in between the <head> tags.
<link href="http://example.com/myicon.png" rel="icon" type="image/png" />
Note: If you are using a theme that is bundled with gpEasy by default. It would be best ot copy the theme and edit the copied theme instead of using the default theme. Upgrading gpEasy overwrites the default themes including any of the changes you make to them.
Browsers will automatically look for a favicon.ico in the server root directory. But thats not always feasible, for instance if you host your CMS site for testing purposes in a subdirectory. If you want to tie your favicon.png to the gp|Easy theme you could use this code in the template.php:
<link rel="shortcut icon" type="image/png" href="<?php global $dirPrefix, $page; echo 'http://'.$_SERVER['SERVER_NAME'].$dirPrefix.'/themes/'.$page->theme_name; ?>/favicon.png" />
/edit: If you want this even to work in a secure server environment (https://), use this:
<link rel="shortcut icon" type="image/png" href="<?php global $dirPrefix, $page; echo ($_SERVER['SERVER_PORT'] != 443 ? 'http://' : 'https://').$_SERVER['SERVER_NAME'].$dirPrefix.'/themes/'.$page->theme_name; ?>/favicon.png" />
Find out more about our Provider Spotlight