The Icon block A piece of a page, such as a paragraph, a picture or a button. In WordPress you build a page by putting blocks one after another. shows one icon on its own, bare or on a circle or a rounded square. It can link to a page, and it can change its look when a visitor points at it. See it working on the Icon page.
Add an icon
Add the Icon block where you want it. A new block shows the icon Spark.
In the Settings tab, open the Icon picker and choose an icon.
Choose what goes Behind the icon, its Size and its Alignment.
To make it a link, type the page’s address in Link, and write a Label.
The Icon panel lists its settings in this order: Icon, the button Use an image instead, Behind the icon, Size, Alignment, What the icon does, Link and Label.
Choose the icon
The Icon picker offers, from the top:
- No icon.
- Cairnstone’s own set of 36 icons: Mountain, Spark, Pulse, Leaf, Flag, Shield, Medal, Palette, Chart, Clock, Globe, Users, Building, Briefcase, Wand, Key, Heart, Star, Hexagon, Circle check, Layers, Bridge, Compass, Bookmark, Backpack, Tent, Bed, Map, Map pin, Shopping cart, Shopping bag, Delivery truck, Circle, Thumbs up, Smile and Gem.
- WordPress icons: WordPress’s own icon set, with the search field Search the WordPress icons.
- Or a Dashicon slug: type the name of one of WordPress’s Dashicons, for example
admin-users, and the page shows that icon.
To show a picture of your own, such as a logo, click Use an image instead. WordPress’s media window opens. Pick an image and click Select. The button now reads Replace the image, and Remove the image shows beside it. An image always wins over a picked icon.
- The image is shown whole, never cut to a square. It fits inside the icon’s size: at Medium, a wide photo of 1600 by 1000 pixels shows as 32 by 20 pixels.
- On A circle, the circle rounds off a wide image’s corners. A square image fits a circle or a square best.
- Screen readers A program that reads the screen aloud, for people who cannot see it well. They move around the page with the keyboard and hear what is there. skip the image itself. A linked image is named by its Label, just like a linked icon.
Behind the icon, size and alignment
- Behind the icon: Nothing (the default), A circle or A rounded square. The circle or square is twice the size of the icon. A Large icon of 48 pixels sits on a 96 pixel circle.
- Frame colour: appears with a circle or a square. A soft tint of the icon’s colour (the default) gives a pale frame with the icon dark on it. Filled with the icon’s colour gives a full frame with the icon white on it. The frame always takes the icon’s colour. To change that colour, click the icon and use the Styles tab.
- Size: Small (24 pixels), Medium (32 pixels, the default), Large (48 pixels), Extra large (64 pixels) or My own size. My own size adds Icon size in pixels, from 12 to 256, 40 to start.
- Alignment: Start (the default), Centre or End of the text column.
A link, or an icon for show
What the icon does has two choices:
- Opens a link, or nothing when the link is empty (the default). Type the address in Link, and the whole icon opens that page. Leave it empty for no link. Once there is a link, Open in a new tab appears.
- Does nothing (for show): the icon becomes a button that keeps the visitor on the page. It reacts to the keyboard, the mouse and a tap, and does nothing. Use it to show off an icon as an example, for instance with its looks for pointing and pressing. The Link field goes away.
The press area of a linked icon is the whole icon, 32 by 32 pixels at Medium.
The label
Write in Label what the icon means or where its link goes, for example Instagram. Screen readers read the label. It is never shown on the page.
- A linked icon with no label shows a warning in the panel. Until it gets a label, a screen reader reads out the link’s address instead, such as example.com/two.
- An icon set to Does nothing (for show) with no label also shows a warning. Until it gets a label, a screen reader calls it Icon.
- With the label Instagram and Open in a new tab on, a screen reader reads “Instagram (opens in a new tab)”.
Colours for pointing, tabbing and pressing
Style the icon in a saved Cairnstone block, under Cairnstone → Blocks. Select the icon and open the Styles tab. At the top, pick the state to style: Default, Hover (a visitor points at it), Focus (a visitor tabs to it with the keyboard), Active (a visitor presses it) or Disabled. Under Color, pick a ready-made set or Custom to set your own. On the page, a linked icon in a circle then changes its frame to the colour of each state. A visitor who tabs to it also sees a focus ring. The normal post editor has no Styles tab of Cairnstone’s, so the colours are set under Cairnstone → Blocks.
The Icon block loads no script on the page.
Next, read Place an image with a caption.