Block Basics

Author:

Published:

Updated:

Popcorn Theme is a block theme and it is very powerful and means you can pretty much create anything.

In this article I will go over some of the block basics for Popcorn Theme.

What are blocks?

“Blocks” are individual units or components that you can add to your posts or pages to create and format content. Instead of a single monolithic editor, we now have a block-based system, where each piece of content, whether it’s a paragraph, image, video, quote, or more, is represented by a distinct block.

Blocks can be used anywhere within Popcorn Theme including the templates of your site.

What is a Template?

A template is essentially the rules of what your dynamic (post / pages / categories etc) will follow. you can create and edit Popcorn Templates that will globally change the way your site looks and feels. This is all achieved in the Site Editor.

How to access the site Editor

Launch the Site Editor

You can load the Site Editor from the Front End of your Site or from your WordPress Dashboard, we will cover both here.

Launch Site Editor from the Front End

From the front end of your site you should see the WordPress Admin Bar. Click Edit Site (1).

Launch Site Editor from the WordPress Dashboard

From the WordPress dashboard of your site click Appearance (1) > Editor (2).

The Site Editor should now be open and look like this:

Types of Blocks

Popcorn Theme hooks into the standard blocks which are available in WordPress so you have access to all of the following across all your blog posts, pages, custom post types and site editor.

You can click the plus + (1) and select a block to add, search (2) for a block or select from the list (3).

List of Available Blocks

This covers the basic block items available for your content. Some Plugins will also add many more blocks as well giving you greater flexibility for content and design. Other blocks include but are not limited to are:

  • Categories List
  • Custom HTML
  • Search
  • Shortcodes
  • Social Icons
  • Navigation
  • Query Loop
  • YouTube Embeds
  • and so much more ๐Ÿš€

Block Toolbars

Every Block has an inline toolbar associated with it. Heres some examples of what they may look like.

Toolbars

Paragraph Toolbar Example

Using this toolbar you can do the following:

  • Change block type
  • Move the block (drag)
  • Move the block (Up & Down)
  • Change text justification
  • Change appearance
  • Add a link
  • And adjust other parts in the sub menu.

List Item Toolbar Example

Using this toolbar you can do the following:

  • Select the Parent Block
  • Move the block (drag)
  • Move the block (Up & Down)
  • Outdent an item
  • Indent an item
  • Change appearance
  • Add a link
  • And adjust other parts in the sub menu.

Image Toolbar Example

Using this toolbar you can do the following:

  • Select the Parent Block (If nested)
  • Move the block (drag)
  • Move the block (Up & Down)
  • Apply a duotone filter
  • Change image alignment
  • Add a caption
  • Add a link
  • Crop the image
  • Add text over your image
  • Replace with another image

Options for all blocks

You’ll notice that each block has an options button (3 dots) You can…

  • Copy a block
  • Duplicate a block
  • Add a block before this block
  • Add a block after this block
  • Copy the styles applied to this block
  • Paste styles from another block to this block
  • Group this block within a Group Block
  • Lock this block to disable movement or prevent removal
  • Create a pattern from this block
  • Move the block
  • Edit as HTML
  • and Delete the block.

The toolbar is a powerful tool when it comes to editing your content or your site templates with Site Editor.

List View Block Options

When you open List View there are some more options for each block. List view allows you to see the structure of your content or template using Site Editor.

We recommend enabling list view to be open by default – to find out how, click here.

Options for blocks within list view

  1. Select List View
  2. See the Outline of your article

You’ll notice that each block has an options button (3 dots) (16) You can…

  1. Copy a block
  2. Duplicate a block
  3. Add a block before this block
  4. Add a block after this block
  5. Copy the styles applied to this block
  6. Paste styles from another block to this block
  7. Group this block within a Group Block
  8. Ungroup a block if it is grouped
  9. Lock this block to disable movement or prevent removal
  10. Create a pattern from this block
  11. Rename a block (Requires Gutenberg)
  12. Move the block
  13. and Delete the block.

Note that some blocks may show different options depending on the block or state of the block.

The Block Panel

On the right hand panel, you’ll see even more options relating to the selected block. This can be relating to Color, Styling, Typography, Dimensions and more. Heres some examples to get you on your way…

Paragraph side panel default

  1. Select Block to change settings for the block you are editing
  2. Go back to Post Settings that affect the entire post / page / template you are on.
  3. Transform your block to a different variation (if available)
  4. Enable visibility of extra options for color (if available). You can also reset here.
  5. Change color of text
  6. Change background color
  7. Enable visibility of extra options for Typography (if available). You can also reset here.
  8. Set sizes manually
  9. Choose from a redefined list of typography sizes
  10. Enable visibility of extra Dimensions
  11. Expand the advanced section

Lets enable everything… ๐Ÿ’ฅ

Paragraph side panel with everything visible

Note the extra settings….

  1. Link Color / Hover Color
  2. Font Face
  3. Font Appearance / Weight
  4. Line Height
  5. Letter Spacing
  6. Text Decoration
  7. Letter Case
  8. Drop Caps
  9. Select Top, Right, Bottom, Left, All or Custom padding
  10. Adjust Top and Bottom Padding
  11. Adjust Left and Right Padding
  12. Apply custom Padding top and Bottom
  13. Apply Custom Padding Left and Right
  14. Select Top, Right, Bottom, Left, All or Custom margin
  15. Adjust Top and Bottom Margin
  16. Adjust Left and Right Margin
  17. Apply custom Margin top and Bottom
  18. Apply Custom Margin Left and Right
  19. Add HTML Anchor
  20. Add custom CSS Classes

Now lets look at the image sidebar Block.

Image side panel with everything visible

Heres all the options for images…

  1. Block settings
  2. Block Styles
  3. View or reset settings
  4. Image Alt text
  5. Set Image Aspect Ratio
  6. Set image width
  7. Set Image Height
  8. Set resolution
  9. Enable Expand to Click
  10. Add Title Attribute
  11. Add HTML Anchor
  12. Add custom CSS Classes

Now click on Block styles (2)

  1. Block Settings
  2. Block Styles
  3. Select from a predefined style
  4. Reset / Show or hide other filters if available
  5. Select a predefined / custom filter
  6. Select Image border color
  7. select border color width
  8. slider for border color width
  9. Unlink / link boders
  10. Set a border radius
  11. Slider for border radius
  12. Unlink / Link Border Radius

As you can see, the options are almost endless allowing you to really make a unique affiliate site using Popcorn Theme. We have only scratched the surface here.

The article was written by

Leave a Reply

Your email address will not be published. Required fields are marked *