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.

Changing Forum Title

2 posters

Go down

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!
FineryWorkshop
FineryWorkshop
Forumember

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

http://NOTREADY.forumotion.com

Back to top Go down

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.
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum