richardnitsche.com
  1. You are here:  
  2. Home

Change the favicon of the Joomla 5 Cassiopeia Template

Details
Written by: richin
Category: Blog
Published: 22 May 2024
Hits: 2876
No comments on “Change the favicon of the Joomla 5 Cassiopeia Template”

I tried to change the favicon of my Joomla site but only came up with a workaround for Joomla 5 Cassiopeia.

First you upload your favicon.ico icon in /media/templates/site/cassiopeia/images/

Then delete the following lines of the Cassiopeia Template:

// Browsers support SVG favicons
$this->addHeadLink(HTMLHelper::_('image', 'joomla-favicon.svg', '', [], true, 1), 'icon', 'rel', ['type' => 'image/svg+xml']);
$this->addHeadLink(HTMLHelper::_('image', 'joomla-favicon-pinned.svg', '', [], true, 1), 'mask-icon', 'rel', ['color' => '#000']);

You only dont delete the following line:

$this->addHeadLink(HTMLHelper::_('image', 'favicon.ico', '', [], true, 1), 'alternate icon', 'rel', ['type' => 'image/vnd.microsoft.icon']);

Then you can refresh you page and it should work:

Open a browser. Do you see your new icon? If so, congratulations. If not, that doesn't necessarily mean you did anything wrong. Browsers are designed to minimize data traffic, so they don't refresh the favicon every time they show a page. Even refreshing the page (F5) won't help. So you need to refresh more thoroughly:

  • Mozilla / Firefox / Safari: hold down Shift while clicking Reload, or press Ctrl-Shift-R (Cmd-Shift-R on Apple Mac);
  • Konqueror: simply click the Reload button, or press F5;
  • Opera users may need to completely clear their cache in Tools→Preferences.
  • Chrome: Shift-F5
  • If this doesn't work you will need to delete the temporary internet files and the history and then open your page again. Or delete your favicon, refresh the browser with F5, then upload the favicon

Delete all Docker Containers and Images

Details
Written by: richin
Category: Blog
Published: 12 February 2024
Hits: 2374
No comments on “Delete all Docker Containers and Images”

To show all docker containers that are running you can use the following command:

docker ps -a 

show all docker containers

To show all docker images available use the following command

docker images -a

docker images

First we need to stop all running containers:

docker stop $(docker ps -a -q)

Next we remove all containers:

docker rm $(docker ps -a -q)

Then we can delete all used images:

docker rmi $(docker images -a -q)

Main Menu

  • Home
  • Impressum
  • Privacy Policy
  • Blog