tombroucke/otomaties-sage-helper

There is no license information available for the latest version (2.4.0) of this package.

This package provides an easy way to reuse files across projects

2.4.0 2022-09-26 09:55 UTC

README

Installation

composer require tombroucke/otomaties-sage-helper --dev

Usage

wp acorn vendor:publish --tag="Otomaties block {Block Name}"

Blocks

Accordion

wp acorn vendor:publish --tag="Otomaties block Accordion"

Banner

wp acorn vendor:publish --tag="Otomaties block Banner"

  • Show H1 with background image

Button

wp acorn vendor:publish --tag="Otomaties block Button"

  • Single inline-block button

Buttons

wp acorn vendor:publish --tag="Otomaties block Buttons"

  • Display one or more buttons
  • Group buttons

Cards

wp acorn vendor:publish --tag="Otomaties block Cards"

Carousel

wp acorn vendor:publish --tag="Otomaties block Carousel"

Container

wp acorn vendor:publish --tag="Otomaties block Container"

  • Container with background
  • Full width, wide or regular

Gallery

wp acorn vendor:publish --tag="Otomaties block Gallery"

Hero

wp acorn vendor:publish --tag="Otomaties block Hero"

Hero Slider

wp acorn vendor:publish --tag="Otomaties block HeroSlider"

Image + Content

wp acorn vendor:publish --tag="Otomaties block ImageContent"

  • Image & content (Innerblocks)
  • Choose image position
  • Background color

Latest Posts

wp acorn vendor:publish --tag="Otomaties block LatestPosts"

  • Display latest posts
  • Choose number of posts to display
  • Modify to change post type

Location

wp acorn vendor:publish --tag="Otomaties block Location"

  • Add scripts/blocks/location.js to webpack.mix.js: mix.js('resources/scripts/blocks/location.js', 'scripts/blocks')

Logos

wp acorn vendor:publish --tag="Otomaties block Logos"

  • Choose grid or carousel view

Post Type Archive

When using the same slug as the post type, pagination will not work. E.g. post type job, rewrite jobs, example.com/jobs/page/2 will throw a 404.

wp acorn vendor:publish --tag="Otomaties block PostTypeArchive"

  • Display post type archive