Board Thread:Support Requests - Getting Technical/@comment-5079138-20151002114203

Yet another coding issue on the PvZ Fan Fiction Wiki.

I was looking around at the Creepypasta Wiki's style guide for writing page, and I noticed that it doesn't have the "Creepypasta Wiki:" prefix, despite being on the Creepypasta Wiki namespace. I was interested with this and decided to do the same on the PvZ Fan Fiction Wiki. The actual problem is here:

I edited the wiki's Wikia.js and put the code to hide the "Plants vs. Zombies Fan Fiction Wiki:" prefix with this:

// Remove the "Plants vs. Zombies Fan Fiction Wiki:" in titles function replaceAllText { replaceText('*', 'Plants vs. Zombies Fan Fiction Wiki:', '', 'g'); } $(document).ready(replaceAllText); $('html').ajaxStop(replaceAllText); replaceAllText;

and this

function replaceTextAlt { var a = "Plants vs. Zombies Fan Fiction Wiki:"; var pattern = /the/ig; a.replace( pattern, "" ); } replaceTextAlt;

but they don't seem to work. I still see the "Plants vs. Zombies Fan Fiction Wiki:" prefix on PvZ Fan Fiction Wiki namespace pages, for example, this page.

Are there any coding errors on the script? Do I need to do something other than tweaking the Wikia.js? Or, is this something that needs to be requested via Special:Contact?

I'd be glad if you can help me and explain how to do it in detail. Thank you. 