Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I change the color that will appear when a user inserts a "heading" (e.g., "h3.")?

Alice Cathcart
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 18, 2018

I want to change the default text type when a user adds heading text into the Description field in a JIRA issue.  Right now, for example, you type "h3. Summary" and you get the default heading style - Black, bold. 

I know from working in prior companies' instances that one can change the default for "hn." headings but can't figure out WHERE.

1 answer

0 votes
Craig Castle-Mead
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.
February 18, 2018

Hey Alice,

There's a few options, but the most straight forward for a small change like this would be to inject some CSS in to the Announcement Banner (available at /secure/admin/EditAnnouncementBanner!default.jspa )

The below code works in my testing (Jira server), usual disclaimer about testing in a non-production environment first and no guarantees.

As soon as there's any content in the announcement banner (even if it shouldn't render), Jira will insert a space for it between the top menu and the main body content, so the .alertHeader display: none hides that. If you do want to then show an announcement, you'll need to commend this line out.

The description-val h3 should then target the color change just to the issue description area. Adjust the hex color code to suit, you can also add other h# values as needed.

 

<style>
.alertHeader { display: none; }
#description-val h3 { color: #ff0000; }
</style>

 

CCM

Suggest an answer

Log in or Sign up to answer