Modules

Modules are reusable content blocks you can include anywhere you add content.

Create a module

Currently, there are three types of modules you can create: Galleries, Carousels and Code

After you have enabled the modules functionality (Customize > Extentions tab), simply create a new module as you would any other post type. Enter a unique and identifiable name (ie. Gallery - XYZ Event) then select the type of module. Fields specific to the module selected will then appear.

Admin View

Select a type of module to add.

Galleries allow you to add multiple images from the media library and display them in a simple modal. For a working example, please see kernl(ui)

Admin View

Creating and editing a gallery.

Live View

Example gallery included on a page.

Carousels allow you to rotate between simple content. For a working example, please see kernl(ui)

Admin View

Creating a carousel.

Code

Code modules allow you to include PHP or JavaScript blocks of code.

TIP

Use with caution. If you have any questions implementing a code block, please contact provost-digital@northeastern.edu

Admin View

Creating a code block.

Include a module

Using a shortcode, modules can be included anywhere content is added (ie. posts, pages, etc.).

Arguments

  • id* - WordPress ID of module to include
  • type* - Module type to include
  • class - Optional CSS class to be added to the wrapper
[module id=1215 type="gallery" class="w--1/4@d"]