Set Browser Tab title different from TW Title?

41 views
Skip to first unread message

taale...@gmail.com

unread,
Dec 10, 2021, 12:14:20 PM12/10/21
to TiddlyWiki
Is that possible? If so how?

For example, say the name of the TW is  "The South-Eastern Canadian Women's Association Left-Handed Doily Lint Museum for the Benefit of the Children".

I want to keep that title on the wiki, but in the browser's tab, I just want "Lint Mus." - how do I do that?

Mark S.

unread,
Dec 10, 2021, 6:39:37 PM12/10/21
to TiddlyWiki
This is a kludge, but might work well enough. My assumption is that to actually change the title tab would require changing core code. So instead, this approach uses CSS to change the title and sub-title displayed on the page, while retaining the configured title for the title tab.

Put your short title into the control panel title field. You will need at least one character in the sub-title field too.

Put the following a tiddler and tag $:/tags/Stylesheet .

.tc-site-title {
visibility: hidden;
position: relative;
margin-bottom: 60% ;
}
.tc-site-title:after {
 visibility: visible;
 position: absolute;
    top: 0;
    left: 0;
content: "The South-Eastern Canadian Women's Association Left-Handed Doily Lint Museum " ;
 }
.tc-site-subtitle {
 visibility: hidden;
position: relative;
}
.tc-site-subtitle:after {
 visibility: visible;
 position: absolute;
    top: 0;
    left: 0;
content: "for the Benefit of the Children" ;
 }

Change the "content:" attributes to your preferred titles. Change the margin-bottom: 60% to whatever percent works with your actual text.

This is what it looks like on my system:

lint-mus.png

Aidan Grey

unread,
Dec 10, 2021, 7:52:51 PM12/10/21
to TiddlyWiki
Thanks Mark! That worked!

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/eed2bd3c-4882-4ae6-9d09-eb26e4b3e3f2n%40googlegroups.com.

Eric Shulman

unread,
Dec 10, 2021, 8:14:41 PM12/10/21
to TiddlyWiki
To change the text of the window title (but not the SiteTitle or SiteSubtitle), edit the shadow tiddler: `$:/core/wiki/title` and set it's content to whatever you want.

enjoy,
-e

On Friday, December 10, 2021 at 9:14:20 AM UTC-8 taale...@gmail.com wrote:

Aidan Grey

unread,
Dec 10, 2021, 8:19:16 PM12/10/21
to TiddlyWiki
OOH - that was even better! Thank you!


--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages