Kitchen sink: options available for content
This page lists the options and code available for creating content on this website.
WordPress.org provides a lot of style guides for documentation: WordPress Style Guides - highlights. We value most of all: be kind and professional in your text and please write the text yourself or make sure the reader knows who you are citing.
Headings
# This is an H1 heading
## This is an H2 heading
### This is an H3 heading
#### This is an H4 heading
##### This is an H5 heading
###### This is an H6 heading
In blog posts the H1 is added by the template: Add a blog post.
Summary in a larger text font.
End the paragraph with the code {: .fs-6 .fw-300 }
.
When you put care into preventing errors and clearly indicating when something goes wrong, users are much more likely to successfully submit a form.
{: .fs-6 .fw-300 }
When you put care into preventing errors and clearly indicating when something goes wrong, users are much more likely to successfully submit a form.
Text
This is a paragraph.
This is a paragraph.
This is **bold text** and this is _italic text_.
This is bold text and this is italic text.
A link: Please visit the [Make WordPress Accessible Team Handbook](https://make.wordpress.org/accessibility/handbook/) for more info about contributor days.
A link: Please visit the Make WordPress Accessible Team Handbook for more info about contributor days.
An image: 
for example: 
For more text options with Markdown read: Basic writing and formatting syntax on GitHub.
Videos
This site uses the accessible media player Able Player.
Add to the variables at the top of the page:
has_video: true
This loads the CSS and Javascript for the Able media player. Please read the Able Player documentation for information on all available settings and how to add caption and subtitle tracks.
Add the video itself in the page with:
<video data-able-player data-youtube-nocookie="true" data-youtube-id="Xj1P0Z6I2Wk" data-heading-level="0"></video>
Code examples in the text
A line of code starts and ends with a ` on the same line.
<img src="alice.jpg" alt="White rabbit" />
A block of code starts and ends with ```.
If you want to highlight the text for a programming language, add the language after the 3 quotes.
For example: ```html.
<!-- html -->
<img src="alice.jpg" alt="White rabbit" />
// javascript
var foo = function lang(l) {
dateformat.i18n = require('./lang/' + l)
return true;
}
/* css */
button {
cursor: pointer;
}
// php
function themename_custom_excerpt_length( $length ) {
return 40; //number of words in excerpt.
}
add_filter('excerpt_length','themename_custom_excerpt_length', 99 );
Language switch in the content text
Only use the lang attribute for 4 words and more.
For a part of sentence write, use a span in your Markdown text:
This text is in English and <span lang="nl">deze tekst is in het Nederlands</span> and now we continue in English.
In linktexts
[<span lang="de">Forderungspapier des Deutschen Behindertenrats zur Umsetzung des European Accessibility Acts in Deutschland</span>](https://www.deutscher-behindertenrat.de/ID255536).
For larger pieces of content, you can add to a <p>
, <div>
or even a landmark, depending on what you need. For example:
<p lang="de">
[...]
</p>
Callouts
{: .info }
This is an informational message and uses the “info” callout.
{: .tip }
Use the “tip” callout to highlight tips.
{: .alert }
The “alert” callout is for alerting readers to important messages.
{: .warning }
When something is particularly precarious, use the “warning” callout.
{: .tutorial }
Give an example with the "tutorial" callout.
The title of the callout will be "Example".
This is an informational message and uses the “info” callout.
Use the “tip” callout to highlight tips.
The “alert” callout is for alerting readers to important messages.
When something is particularly precarious, use the “warning” callout.
Give an example with the “tutorial” callout. The title of the callout will be “Example”.
Labels
blue
{: .label .label-blue }
green
{: .label .label-green }
purple
{: .label .label-purple }
yellow
{: .label .label-yellow }
red
{: .label .label-red }
**bold**
{: .label }
*italic*
{: .label }
***bold + italic***
{: .label }
blue
green
purple
yellow
red
bold
italic
bold + italic
Note: these are not form labels, but text labels.
Collapsed Section
The following uses the <details>
tag to create a collapsed section.
<details markdown="block">
<summary>Shopping list (click me!)</summary>
This is content inside a `<details>` dropdown.
- Apples
- Oranges
- Milk
</details>
Shopping list (click me!)
This is content inside a <details>
dropdown.
- Apples
- Oranges
- Milk