Moving the page title in Confluence

Richard Wilkinson August 7, 2011

Hello,

We had a slight customisation to the standard Documentation scheme on our Confluence site, which seems to have been lost during an upgrade to v3.5.

Our site logo is quite wide, and the change was to move the page title down to the line below (rather than the space next to the logo) so that there's more room for it, and longer titles don't wrap around.

I think - according to some information left by the previous administrator - that this was done using the change below. But we've reapplied this after the upgrade and it's not worked.

Can anybody tell me how to do this? Thanks.

-----

The previous change seems to have been:

With the help of Atlassian support this was achieved by getting the following file from (the server):

/usr/local/confluence-data/bundled-plugins/doctheme-1.0.7.jar

Within this file we simply modified the main.vmd file, which is in:

doctheme-1.0.7\doctheme\decorators

Change this:

<h1 id="title-heading" class="pagetitle">
#if ($sitemeshPage.getProperty("page.username"))
#set ($tildeUsername = "~$username")
#logoBlock($tildeUsername)
#else
#logoBlock($spaceKey)
#end
<span id="title-text">
#if ($sitemeshPage.getProperty("page.title-text-span"))
$sitemeshPage.getProperty("page.title-text-span")
#else
#pageTitleLink()
#end
</span>
</h1>

to:

#if ($sitemeshPage.getProperty("page.username"))
#set ($tildeUsername = "~$username")
#logoBlock($tildeUsername)
#else
#logoBlock($spaceKey)
#end
<h1 id="title-heading" class="pagetitle">
<span id="title-text">
#if ($sitemeshPage.getProperty("page.title-text-span"))
$sitemeshPage.getProperty("page.title-text-span")
#else
#pageTitleLink()
#end
</span>
</h1>

Then we just upload the customised doctheme-1.0.7.jar file via _Confluence Admin >> plugins_

5 answers

2 votes
David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
August 7, 2011
Why not just add some custom CSS to the global stylesheet in the admin section e.g. #title-text { display: block; }
0 votes
Richard Wilkinson October 10, 2012

No, I never got it to work despite trying the suggestions... Eventually we just got used to the title wrapping around, but it would still be nice to fix.

0 votes
Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 8, 2011

Restarting Confluence to pick up a a plugin change shouldn't be necessary - Confluence has a built-in system that reloads changed plugins. :-)

0 votes
Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 8, 2011

Random guess: try blowing away the temporary plugin directories in your Confluence home directory and re-starting Confluence. Perhaps a combination of the fact that the doc theme is (a) a bundled plugin, and (b) the version of your jar file is unchanged. The following directories are safe to delete:

  • /plugins-temp
  • /plugins-osgi-cache/transformed-plugins
Richard Wilkinson August 8, 2011

We did restart Confluence, although not sure about removing the temporary plugins first (our IT guys applied the change itself).

I just tried the stylesheet suggestion, but the global stylesheet doesn't apply to spaces using themes, and we're using the Documentation Theme.

Richard Wilkinson August 11, 2011

(After a delay) I've asked IT to try the suggestion of deleting these directories. To clarify, it's just the transformed-plugins directory that should be deleted, not the whole plugins-osgi-cache, right?

AM October 10, 2012

I'm facing exactly the same situation:

* logo size too large.

* I would like to add a line break after the logo so the page title starts always in a new line.

Richard / Joseph did you find a solution?

Like Richard we are using the "Documentation Theme" as default for all Spaces (like probably 99% of all Confluence customer who are not working with Adaptavist add-ons).

0 votes
Jo-Anne MacLeod
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 7, 2011

Becasue I have been working in windows recently...did you restart Confluence after you made the change? It might be worth a try.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events