Notice Articles

Notice Articles

Salvatos
1st Dec, 2026
16 installations 9 likes Kanka 4.1 (3 days ago)

This theme provides a simple way to turn articles into Wikipedia-style category banners or notices at the top of entries (or between articles). The plugin takes care of the ground work without any styling except for centering the text, and you can use tags and additional campaign CSS to preset your own varied banner templates, as well as style the content of each article in the editor as usual. Inspired by Ornstein’s Stub Banner plugin.

Note that the visibility and action buttons are hidden from view, but administrators can reveal them by hovering a notice. 

Setting up notices

txMfNMgY6UkNl2RdY37blps93CTICGSamO8FZN9N.png
  1. Create an article on the entry to serve as a notice. The title does not matter since it won’t be shown; only the article’s content will be displayed. You can insert as little or as much content as you want and style it normally.
  2. In the Layout tab, type notice-article in the CSS class field. As explained below, you can add more classes to use your own preset styles.
  3. Make sure that the article is set to "Article is expanded" in the Layout tab, and that the Permissions match your intended users or roles.
  4. If you want your notice anywhere after the main description, select its Position in the Main tab, then save the article.
  5. If you want your notice above the main description, save your article now, then click the entry’s actions menu ("..." in the top right) and choose Reorder articles. Move your notice article to the top of the list, above Description, and save.

Note that you can post multiple notices on the same entry. Just repeat the steps for each notice and order them as desired. By default, you get a very simple text that you can use to call attention above or between content:

C4iSwTZCDgJN56x0trLdVZlT6C0tVugYGaAzWp7t.png

Simple customization

The plugin is set up to allow you to use Kanka’s built-in classes alongside notice-article to quickly set the background and text color and other styles, for example notice-article bg-info or notice-article border-2 border-accent. You can find most available classes on Github here and here.

You can also design your own classes to reuse as needed in your campaign’s theming to create custom templates. This way, you can focus on just writing the text of your notices in your articles and simply add an extra class to take care of frequently used styling.

Optional: Setting up entries as reusable templates

Since you will likely use the exact same message in several entries, it would be bothersome to copy-paste the same content every time. What I like to do is make use of transclusion to create entries that act as templates and simply refer to those via advanced mentions. This way, if I ever want to change the wording or structure of a notice across the entire campaign, I only need to edit one entry.

  1. Create a new entry. You can make a custom category for it, or just use a tag (mine are organized under a parent called Notice templates), but it can be any entry that all relevant users have permission to view.
  2. Insert the content of your notice in the entry’s description, give it a memorable/recognizable title, check that the permissions are accurate and save it.
  3. If necessary, create styles in your campaign CSS for your various templates.

Repeat as needed. Then, when adding notices to entries, use an advanced mention to this entry instead of repeating the content:

  • If you use the Modern (TipTap) editor (default for campaigns created after November 2026), simply insert a mention as normal, then click it to bring up the toolbar, click the cogwheel there, type field:entry in the text field and press Enter.
  • If you use the Classic (Summernote) editor and your profile settings (under Appearance) are set to use advanced mentions, simply start typing the name of your template after the @ or [ character and select it from the suggestions. Then, add the field:entry parameter, so it looks like this: [tag:2882042|field:entry].
  • If you use the Classic (Summernote) editor and you prefer to keep advanced mentions turned off, from the notice template’s actions menu, select Copy [ ] mention. Paste it into your new notice and add the field:entry parameter, so it looks like this: [tag:2882042|field:entry].

This will transclude your template entry’s description into the article and keep it up to date at all times. You still need to specify the notice-article class on each individual article, as well as any custom classes you may have created and rely upon.

Sample styles

The screenshot below shows a few examples of how this can be customized. The first notice is a simple two-column table that displays an emoji on the left and a bit of text on the right. The background color comes from the bg-info class added to the article alongside notice-article, which uses the campaign’s theme’s usual color for informative notices.

<table class="table-borderless">
  <tr>
    <td style="font-size:20px;">🌟</td>
    <td>This article was voted <b>*most awesome*</b> for the month of <b>February 2023</b>.</td>
  </tr>
</table>

The other two notices use a common, custom adventure-banner class to set up a standard structure that can be reused for various categories of content. Each notice further defines its own background image and text styles with dedicated classes, saltmarsh and banner-saga. Feel free to copy this CSS to your campaign and create your own variants.

/* Foundation for adventure banner backgrounds */
.notice-article.adventure-banner::before {
	content: "";
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	border-radius: inherit;
}
/* Position containers */
.notice-article.adventure-banner {
	min-height: 100px;
	display: grid;
	grid-template-rows: 0 auto;
	.bg-box {
		z-index: 1;
		width: 100%;
		align-self: center;
	}
	/* Common styles for main text */
	p {
		color: white;
		font-size: 20px;
		font-style: italic;
		text-shadow: black 3px 3px 3px;
		strong {
			font-size: 22px;
			white-space: nowrap; /* optional, to prevent line breaks in important terms */
		}
	}
}

/* Styles for specific adventure banners */
.notice-article.saltmarsh::before {
	background-image: url("source.jpg");
	background-repeat: no-repeat;
	background-size: 100%;
	background-position-y: 5%;
	background-position-x: 0%;
	filter: brightness(1.0) blur(0.75px); /* Unsupported by pre-2024 iOS */
}
.notice-article.saltmarsh p {
	color: #fff;
	font-size: 25px;
	line-height: 1.3;
	font-family: "Cinzel Bold";
	strong {
		font-size: 30px;
	}
}
.notice-article.banner-saga {
	min-height: 200px;
}
.notice-article.banner-saga::before {
	background-image: url("source.jpg");
	background-repeat: no-repeat;
	background-size: cover;
	background-position-y: 25%;
}
.notice-article.banner-saga p {
	font-family: "Aclonica";
	font-style: italic;
	color: #dcaba0;
	line-height: 1.1;
	strong {
		font-size: 30px;
		font-style: initial;
	}
}

Want to show appreciation for my plugins or request one-on-one CSS help? I accept tips on Ko-fi (no account needed): Support me on Ko-fi.com

Latest version 4.0

Released 2 days ago on 1st Dec, 2026

  • Changed how the admin action dropdown is handled to show it and the "new" visibility button only on hover.
  • Modernized and streamlined CSS (you may need to adjust your themes accordingly).
  • Refreshed documentation with updated screenshots and UI labels.
  • To match new nomenclature without breaking existing styles, the plugin now supports both "notice-post" and "notice-article" in the "CSS class" field and responds accordingly to campaign theming using either. Documentation uses "article" exclusively to avoid confusing new users.
  • Updated example styles for compatibility with current Kanka layout and plugin changes.
Install

Comments & Reviews

0

No comments yet. Be the first to share your thoughts!

Join the discussion

Have an idea or want to thank the plugin's authors? Share it with a comment!

Only subscribed users can leave comments.