sb-packages
v1.1.1
Published
This dependency provides you with a list of premade packages build by Social Brothers. Build for the Social Brothers themes.
Downloads
7
Readme
SB Packages
This dependency provides you with a list of premade packages build by Social Brothers. Build for the Social Brothers themes.
How to include in the main package.json
"scripts": {
...
"sbpackages": "sbpackages",
},
Title Function
This function will automatically add the right heading into your WordPress Gutenberg block.
Add the function inside the view.php (Inside the Gutenberg block)
<?php title($block ?? [], $title ?? '', $subtitle ?? '', 'bemclass') ?>
Examples
<?php title($block ?? [], $title ?? 'This is the title of the block', $subtitle ?? 'This is the subtitle of the block', 'bemclass') ?>
First block (block ID: 1)
<h1>This is the title of the block</h1>
<h2>This is the subtitle of the block</h2>
Second block (block ID: 2)
<h2>This is the title of the block</h2>
<h3>This is the subtitle of the block</h3>
Change log
1.1.0 - 20-01-2023
- Added title function as theme helper
1.0.16 - 16-12-2022
- Added Google Material icons field option for Advanced Custom Fields.
- Created the sbpackage dependency