• I want to adjust style within a post or page title, for example to make a single word italic. I’ve been able to achieve it by adding html spans into the post title itself – on the live page the heading shows the style correctly. But this means that in the admin view of the posts list, the title shows the raw html which is really ugly and difficult to interpret – and also makes it feel kind of hacky.

    Is there another way I should be doing this? Is there any reason (besides the visual ugliness) that adding raw html into the post title would be a problem? I’m worried that it might cause problems in some other place that the post title is used, that I haven’t thought of yet.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi

    If you intend to change the first letter of the title of a post you can do this using css. just locate the html element or class responsible for the title and then do something like this:

    h1::first-letter {
       font-weight: bold;
       color: red;
    }
    Thread Starter averixus

    (@averixus)

    Unfortunately that doesn’t work for my purposes, I need to be able to italicise one or more words anywhere within the title.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Style within post or page titles’ is closed to new replies.