Skip to content

FlexPress/plugin-accordion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlexPress accordion plugin

Install

Install via composer

composer require flexpress/plugin-accordion 1.0.*

Setup

Changing the output

The plugin will load a default view but you can change this by using the filter fpshortcode_timber_template, e.g.:

add_filter('fpshortcode_timber_template', function() {
    return 'my/relative/view/path';
});

As it's relative timber will look in the themes folder however you can pass it a absolute path as well, which is what the plugin does by default.