Skip to main content

WordPress Installation

A WordPress plugin is available from Better Collective that provides an easy way to implement the web components and server side renders inside of a WordPress installation. This plugin takes care of providing shortcodes to match up to web components and make the API calls required to implement SSR. Because most content editor plugins inside of the WP admin area only handle the default HTML components, shortcodes are used to represent the BAM web components and keep things operating smoothly when editing content.

Use of caching/accelerator plugins

Because these web components are built with the StencilJS framework and StencilJS already handles lazy loading, the default configuration of caching/accelerator plugins like WP Rocket can cause issues with rendering on your site. If your site uses one of these plugins (WP Rocket, WP Meteor, etc.) then you should add BAM to the exclusion list so StencilJS can operate normally.

WP Rocket

Add the following to the Excluded Javascript Files:

bam-scripts

WP Meteor

Add the following to the exclusions list and activate "Exclude scripts..."

.*bam-static.actionnetwork.com.*