The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
2 posters

    Changing Forum Title

    FineryWorkshop
    FineryWorkshop
    Forumember


    Female Posts : 48
    Reputation : 1
    Language : English
    Location : USA

    In progress Changing Forum Title

    Post by FineryWorkshop March 13th 2015, 3:33 am

    Hey! So I have the portal page as the homepage, but in the title it says "Finery Workshop - Portal" while in the forum it says "Finery Workshop" How do I change it to where in the portal it says "Finery Workshop" and when you're in the forum it says "Finery Workshop - Forum" I tried changing it within the templates and it didn't work :/

    Thank you so much if you can help!
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    In progress Re: Changing Forum Title

    Post by Ange Tuteur March 13th 2015, 5:01 am

    Hello @FineryWorkshop,

    You can remove the portal title in portal management, but it causes problems with the button text. We can make some modifications with a bit of JavaScript though. Go to Administration Panel > Modules > JavaScript codes management > Create a new script

    Placement : In all the pages
    Code:
    (function() {
      var p = window.location.pathname;
      p == '/' && (document.title = 'Finery Workshop');
      p == '/forum' && (document.title = 'Finery Workshop - Forum');
    })();

    Submit, and it should automatically change the titles when you're on the forum and homepage.

      Current date/time is November 11th 2024, 8:06 pm