Introduction #
A web page in SiteWorks consists of three elements, a header, a footer and the main text or contents area.
The style and the contents of the header and footer are determined by the u3a SiteWorks theme to ensure that all u3as have a consistent look and feel. The theme determines:
- The web page header and footer style and content.
- The range of colours available, for text and backgrounds. The SiteWorks palette is restricted to the u3a brand colours
- The font is a web-compatible equivalent of the u3a brand-approved DS Sans font.
When a web page or post is created (regardless of whether the content creator is logged on as an administrator, editor, or author), the material can only be entered into the content area using the Block Editor. This user guide covers the general principles of the Block Editor’s operations; specific blocks are discussed in other user guides. Details regarding the editing of Headers and Footers are provided here.
One point to note is that the u3a theme restricts the content’s width to 840 pixels on a standard computer monitor, hence the white space to either side of the content in the above screenshot.
The block editor puts the publishing control and formatting into the hands of the content creator without worrying about the underlying technologies. The concept is simple: text and media elements are contained within blocks stacked to form the web page. The size of a block is determined by:
- The contents entered into a block. For example, an image block will be resized according to the image size.
- If a block (e.g. paragraph) is placed within a block (e.g. columns), its size will be constrained by the block higher in the hierarchy. In this case, the paragraph width will not exceed a constraint applied by the individual column width.
Controls allow the content creator to manipulate or modify the blocks to optimise the web page’s appearance. This allows individual u3a’s to have different design concepts, within the overall theme provided by SiteWorks.
Block Editor Administrative Toolbar #
When a page or post is placed in the edit mode, the block editor administrative toolbar, shown below appears, giving the content creator a wide range of options
On the left of the administrative toolbar, the content creator can select:
- The WordPress icon returns the view to the main page for the document type. If a page is being edited, it takes the user to the full Page List.
- The blue + icon toggles the block inserter.
- Select tools as required, this only appears if the Top Toolbar option (see below) is deselected.
- The conventional undo and redo icons.
- Toggles the Document Overview in the lefthand sidebar.
On the right of the administrative toolbar, the content creator can select:
- A preview of the page in edit mode, as it would appear on a monitor, tablet or smartphone.
- View the page in the current browser.
- Update the page. This will show Publish if the page has not been stored.
- Select/deselect the Settings panel
- Select the editor Options for the following:
- Set the view
- It is recommended that you select Top Toolbar to lock the block and document tools to the top left of the screen.
- Spotlight Mode greys out blocks not being edited
- Full-Screen Mode
- Distraction-free – removes all unwanted material.
- Editor – should always be set to Visual Editor (unless you want to edit in HTML!)
- Tools – including access to patterns and help documents.
- Preferences opens a new window that allows you to change the default settings. It is strongly recommended that you do not disable pre-publication checks, theme style, or display block breadcrumbs.
- Set the view
Using the Block Inserter #
Content Structure #
A page or post is constructed by “stacking” block, as shown below:
In this example the following blocks are used:
- The Title (1) is mandatory, WordPress uses this information to populate the site menu.
- A Media and Text block allows text in a paragraph block and an image to be placed alongside each other. An image (2) has been added to the right of the text. The text part (3) of the overall block contains a paragraph block and has been formatted with a u3a yellow background.
- A white Spacer block that allows the content creator to customise the space between individual blocks, making the page or post easier to read, has been added, (4).
- A quote block (5) and a list block (6) have been added within a two-column columns block, with a 1:2 ratio between the column widths.
The Block Inserter #
By default, when you start a new page, you are given a standard paragraph block as a starting point, other blocks can be added by selecting the + icon, the Block Inserter. The icon will appear at:
- The blue icon at the top of the screen, A.
- When the content provider hovers the mouse between any two blocks, a blue line, with a + icon appears. The new block will be entered at this location, B. If the content creator is using a tablet or mobile device, the block inserter may not appear between blocks, this requires a slight modification to the editing process as discussed here.
- At the bottom of the current web page, C.
To select the list of available blocks, move the cursor over the +, in the case of A and B, the background will change to black. Once selected a subset of the available blocks is presented then:
- Select the required block.
- Enter the name of the required block, then click the search icon.
- Select, Browse all, to show all available blocks.
On selecting, Browse all, all the available blocks are made available, under four separate types, identified by the text and an icon, from left to right:
- Blocks: as discussed in this user guide.
- Patterns: predefined sets of blocks provided by WordPress, as discussed here.
- Media: as discussed here, access to the media library and royalty-free image resources (Openverse).
- Search: facility across all available blocks, including their explanatory text.
The blocks available are extensive and are divided into categories:
- Text, including paragraphs, headings, and quotes.
- Media, including images, the gallery, etc.
- Design, including buttons and columns
- Widgets, including u3a specific functions (group and event details), shortcodes, etc.
- Theme, for configuring query loops etc.
- Embeds, to embed a link to an external provider.
The use and configuration of individual blocks are fully discussed in the relevant user guide.
One key feature of WordPress is the ability to insert one or more text or image blocks into an existing block to form a block hierarchy. For example:
- A text block (paragraph, list, quote, etc) or image block into a column.
- A paragraph, quote or list block into the text area of a Media and Text or a Cover block.
Block Inserter Icon on tablets #
Users have reported that the block inserter icon is not selectable between blocks, on a tablet or mobile device, hence:
- Select the block selector in the block inserter administrative toolbar or at the bottom of the page.
- Create the content.
- Reposition the block as required, by dragging the block or using the up/down position icons.
Configuring a Block #
When a block is selected, it can be configured. In the example below, the Spacer can be configured as follows:
- The Block toolbar. Available options are: transforming to another block type, dragging the spacer up and down the web page, or moving its position above or below the adjacent blocks. Selecting the three vertical dots to the right gives other options including deleting, copying or duplicating the block.
- For the righthand sidebar:
- Settings – provided options for the block configuration. In the case of the Spacer, only its height can be adjusted. In other blocks, a large number of options and attributes are available.
- Style – provides options on how the block is displayed. right-hand sidebar two options are available:
Setting and Style options available for the main blocks are summarised in the table below:
Block | Text & Background Colour | Text Size | Margin and padding | Corner Rounding | Border | Drop Shadow |
---|---|---|---|---|---|---|
Title1 | – | – | – | – | – | – |
Heading2 | Yes | Yes | Yes | No | No | No |
Paragraph2 | Yes | Yes | Yes | No | No | No |
Image | N/A | N/A | No | Yes | Yes | Yes |
Media and Text | Yes | Yes | Yes | No | No | No |
Columns3 | Yes | Yes | Yes | Yes | Yes | Yes |
Group3 | Yes | Yes | Yes | Yes | Yes | No |
2s The heading and paragraph blocks do not have separate Settings and Style options
3 The full set of options refers to the full block, not the embedded blocks.
Margins and Padding #
With WordPress two variables, Margins and Padding can be set to help determine the overall presentation, as shown below:
The diagram shows two blocks containing contents in the shaded area and their boundaries as the dotted line. The spacing can be controlled by:
- Margin: the distance between the two blocks’ boundaries, dimension M. Note this can be set to a negative value as discussed here.
- Padding: This determines the amount of white space (or coloured space depending on the block’s settings) that surrounds the content, but within the boundary of the block, dimension P.
The four margin and padding values (top, bottom, left, right) can be set as a group or separately. To set the margin or padding, select Dimensions and then Padding or Margins as shown below:
A: The three vertical dots allow the selection of either margins or padding.
B: Select either Padding, Margin or Both
C: Allows the selection of horizontal, vertical, top, bottom, left and right.
D: The Blue dot can be moved to select a predefined size. If the slider bar icon is selected the mode can be changed.
E: The exact size of the margin and padding can be entered in several units (px, %, em, rem, vh and vm). The value for Margin can accept a negative value.
Negative Margins #
A negative margin extends the content creator’s option when designing pages, consider the following layout, consisting of a two-column structure, with an image on the right-hand side and text on the left.
The image can be modified by setting the text in white and the column background in black. With the paragraph margin set to -12 rem, a more dynamic image results.
Document Overview #
If you select the document overview icon (or shift+alt+o) to the left of the administrative toolbar, the content creator can view the overview, either in a list or outline format.
- The List view shows all the blocks on the page and their relative locations. By selecting a block, an item can be edited or moved. In the case of a list or table, you can navigate directly to specific items or rows.
- The Outline shows the heading used, to allow correct positioning within the page structure. When an internal link is added, this is shown to the right of the block. The outline view requires the presence of an additional heading or link.
Breadcrumbs #
As web pages and posts become more complex, it is easy to lose sight of which block is being edited. To help, the editing process, apart from the document overview, WordPress has a Breadcrumb feature, which is found at the lower left of the editing screen.
The breadcrumb trail will expand as the page or post content creator adds blocks within blocks, for example editing a list row within a Media and Text block, the trail will appear as:
Page > Media and Text > List > List Item
As shown below trail shows that the page creator is editing a row within a list, if you want to select the complete list, select List.
Preview Before Publication #
As Web Managers will be aware, a website can be viewed on devices including tablets and mobile phones, in addition to desktop monitors typically used for editing. WordPress, together with browser technology, can reconfigure web pages to match screen size. For this reason, some Site Builder features (e.g., sidebars) are not available in SiteWorks, as they may get relocated to the bottom of the page when displayed on a mobile device.
Two approaches are available to preview content before publication, either using the WordPress function or those offered by the web browser.
WordPress #
To preview a document, select Preview from the administrative toolbar, this gives three options, Desktop, Tablet and Mobile, select the view required, and then select, Preview in new tab, to display the page or post in a separate tab.
Chrome or Edge #
- Use the F12 key to access the Developer Tools. In Chrome a considerable amount of information about the website may be shown, but this can be ignored.
- Press Ctrl + Shift + M on the keyboard or select the Toggle Device Emulation icon on the DevTools top ribbon to open the device toolbar:
- Click the browser’s refresh button to reload the page and make sure you’re seeing the mobile view of the page
- Click on the device toolbar and choose the mobile device to be emulated, the view can be rotated as required.
Firefox #
- Press Ctrl + Shift + M on your keyboard to open the device toolbar
- Click the browser’s refresh button to reload the page and make sure you’re seeing the mobile view of the page
- Click on the device toolbar and choose the mobile device that you want to emulate
Safari #
- Make sure the ‘Develop’ option is visible in the menu (if ‘Develop’ isn’t visible, go to Safari ⇒ Preferences ⇒ Advanced; tick the ‘Show Develop menu in menu bar’ box)
- Press Ctrl (^) + Cmd (⌘) + R to open Responsive Design Mode
- Click the browser’s refresh button to reload the page and make sure you’re seeing the mobile view of the page
- Choose the mobile device that you want to emulate
A selection of views of a single page are shown below, for a tablet, computer monitor and table. It should be noted that these views are simulations and should be treated as indicative – it is always advisable to check the actual display on the actual or similar device.