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
09 Oct 2023
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 · over 3 years ago
rufanyia

rufanyia

Member
Joined
29 Nov 2023
Last Seen
26 Dec 2023
Topics
0
Posts
9

Thanks!

rufanyia · 12 months ago