Board Thread:Support Requests - Getting Technical/@comment-1997588-20131215163849/@comment-11733175-20131218002139

It's caused by an error in the script that changes the page title. Locate the following in w:c:sims:MediaWiki:Common.js: $(function {   var newTitle = $("#title-meta").html;    if (!newTitle) return;    var edits = $("#user_masthead_since").text;    $(".firstHeading,#WikiaUserPagesHeader h1,#WikiaPageHeader h1").html(newTitle);    $(".#user_masthead_head h2").html(newTitle + "" + edits + " "); }); And replace it with: $(function {   var newTitle = $("#title-meta").html;    if (!newTitle) return;    var edits = $("#user_masthead_since").text;    $(".firstHeading,#WikiaUserPagesHeader h1,#WikiaPageHeader h1").html(newTitle);    $("#user_masthead_head h2").html(newTitle + "" + edits + " "); }); That will fix the error.

However, I should warn you that a fair chunk of the selectors used in your version of this script don't actually exist anymore.

What I've done on w:c:rs:RuneScape Wiki is take advantage of the DISPLAYTITLE magic word which does the changes server side (instead of client side) with the following template: However, this doesn't work on oasis user pages, so it has a small script to handle those cases: /** * Rewrites pagetitle for profile masthead. * * Uses magic word on other pages which affects search engine results * whereas this version does not. As it's only for user pages, who cares? * * Used by Template:Title. * * @author Sikon (Wookieepeedia) * @author Cook Me Plox (RuneScape) * @author Cblair91 (RuneScape) * @author Cqm (RuneScape) */ $( function {    var newTitle = $( '#title-meta' );    if ( !newTitle.length ) {        return;    }    $( '.masthead-info > hgroup > h1' ).text( newTitle.text ); } ); If you choose to use this script, please keep the attribution in the header comment. It goes in w:c:sims:MediaWiki:Wikia.js.

If you have any more questions, let me know.