howto_user (howto_user) wrote in s2howto,

[paidaccount] Journal Title

Paid Accounts Only
The following tutorial requires creating and editing a custom style, which in turn requires a paid, permanent, or early adopter account. Please read What are the paid account benefits? and How do I buy a paid account? to learn about the paid account benefits and how to buy a paid account.

This tutorial will replace the print_custom_head function. This new code will be placed in a theme layer. If you already have one of these for your style, you can simply edit it. If not, you will need to create one by following the instructions in the Theme Layer tutorial.

Now, you will need to add the following code to the theme layer. First, copy and paste the following code into the layer, making sure to include everything:

function Page::print_custom_head() {
<title>Page Title</title>

Simply replace the text highlighted in orange with your desired title. This will only change the title displayed in the browser title bar. This will not change any other instances of your journal title. If you would like to change all instances of your journal title, please see the information contained in FAQ 7.

NOTE: This override will not work for the following system styles because of how these styles are coded: Component, Opal, Unearthed. If you would like to customize the browser title bar for these styles, you will need to edit the relevant function with a custom theme layer (information on using custom theme layers) or create a new layout layer (information on creating a new layout layer).

Compile your layer, and it's ready to use. You will need to apply your theme layer via the Customize interface in order for your changes to take effect.

Written by jennieknits.

Tags: - all styles, journal title, paid accounts only, title

Comments for this post were disabled by the author