NamelessMC

Internet Explorer

Internet Explorer is not supported. Please upgrade to a more modern browser.

Add Material Design Icons Support
Started by TeemoCell

TeemoCell

TeemoCell

Member
Joined
05 Dec 2020
Last Seen
20 May 2022
Topics
2
Posts
5

1. Go to

/templates/DefaultRevamp

2. Open

template.php

3. Add

'//cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css' => array()

above

'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css' => array('integrity' => 'sha512-1PKOgIY59xJ8Co8+NE6FZ+LOAZKjy+KY8iq0G4B3CyeY6wYHN3yt9PW0XpSriVlkMXe40PTKnXrLnZ9+fkDaog==', 'crossorigin' => 'anonymous')


This is how it should look like. You can also copy the code and replace it with the other one.

		$this->addCSSFiles(array(
			$template['path'] . 'css/semantic.min.css' => array(),
			$template['path'] . 'css/toastr.min.css' => array(),
			'//cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css' => array(),
			'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css' => array('integrity' => 'sha512-1PKOgIY59xJ8Co8+NE6FZ+LOAZKjy+KY8iq0G4B3CyeY6wYHN3yt9PW0XpSriVlkMXe40PTKnXrLnZ9+fkDaog==', 'crossorigin' => 'anonymous')
		));

Icons: https://materialdesignicons.com/

x1
TeemoCell · 7 months ago