This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // You need to add an `is-faqs` class to the wrapping Accordion block to trigger the | |
| // below markup changes. | |
| add_filter('render_block_core/accordion', function ($content) { | |
| $processor = new \WP_HTML_Tag_Processor($content); | |
| if (! $processor->next_tag([ 'class_name' => 'is-faqs' ])) { | |
| return $processor->get_updated_html(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Basic CSS Media Query Template | |
| * TODO: I should probably use Sass... | |
| * Author: Michael Vieth | |
| * ------------------------------------------ | |
| * Responsive Grid Media Queries - 1280, 1024, 768, 480 | |
| * 1280-1024 - desktop (default grid) | |
| * 1024-768 - tablet landscape | |
| * 768-480 - tablet | |
| * 480-less - phone landscape & smaller |