Screenshot:
https://i.hizliresim.com/gWqXl0.png
It is not too hard to make it. Just there is a problem; if u use this. U cant use the tag descriptions.
Go to file: vendor/flarum/flarum-ext-tags/js/forum/dist/extensions.js
Open the "extensions.js" with a editor (notepad++ or your text editor)
Find:
return m(
'li',
{ className: 'TagTile ' + (tag.color() ? 'colored' : ''),
style: { backgroundColor: tag.color() } },
m(
'a',
{ className: 'TagTile-info', href: app.route.tag(tag), config: m.route },
m(
'h3',
{ className: 'TagTile-name' },
tag.name()
),
m(
'p',
{ className: 'TagTile-description' },
tag.description()
),
And change it with this:
return m(
'li',
{ className: 'TagTile ' + (tag.description() ? 'colored' : ''),
style: { background: tag.description() } },
m(
'a',
{ className: 'TagTile-info', href: app.route.tag(tag), config: m.route },
m(
'h3',
{ className: 'TagTile-name' },
tag.name()
),
First part is okay. The second part is:
Add the custom css:
.SelectTagListItem-description {
display: none;
}
How to use?
-Add this code to your tag description from your admin panel
url(tag image link here)
additional css (if your texts are look like white-on-white)
.TagTile.colored, .TagTile.colored a { text-shadow: 0px 0px 20px black;}
Have a nice day. Sorry for my bad english ?