I noticed that the VOCALOID Wiki utilizes multiple wordmarks that changes every time you go to a different page on the Wiki or refresh the Wiki. How can I do this for my Wiki?
I noticed that the VOCALOID Wiki utilizes multiple wordmarks that changes every time you go to a different page on the Wiki or refresh the Wiki. How can I do this for my Wiki?
Hey there!
Add the following to your wiki's MediaWiki:Wikia.js.
$(function() { var images = [ 'IMAGE URL 1', 'IMAGE URL 2', 'IMAGE URL 3' ]; $('h1.wordmark a img').attr('src', images[Math.floor(Math.random() * images.length)]); });
Replace IMAGE URL with the URL of the image you want to use as your wiki's wordmark.
Hope this helps! :D
Thanks! How long does it take to start working?
It depends on how fast your cache refreshes. Generally, it takes 24 hours or so, iirc.
Thank you!
Just making sure, did I do it correctly?
ZeroTigress wrote: Just making sure, did I do it correctly?
Yes, it is correct.
Thank you!