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
| add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption' ) ); |
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
| // Adds brand colours to editor palette for content editors | |
| add_theme_support( 'editor-color-palette', array( | |
| array( | |
| 'name' => 'Primary', | |
| 'slug' => 'primary', | |
| 'color' => '#db164d', // Replace with your colour | |
| ), | |
| array( | |
| 'name' => 'Secondary', | |
| 'slug' => 'secondary', |
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
| add_theme_support( 'custom-logo', | |
| array( | |
| 'height' => 200, | |
| 'width' => 200, | |
| 'flex-width' => true, | |
| ) | |
| ); |
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
| if ( function_exists( 'the_custom_logo' ) ) { | |
| the_custom_logo(); | |
| } |
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
| /* Change max-width to match template */ | |
| .wp-block { | |
| max-width: 720px; | |
| } |
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
| add_theme_support( 'wp-block-styles' ); |
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
| add_action('init', 'lit_register_condition_single_post_type'); | |
| function lit_register_condition_single_post_type() { | |
| global $oxy_condition_operators; | |
| $postTypes = get_post_types(); | |
| oxygen_vsb_register_condition('Single Post Type', array('options'=> array_keys($postTypes)), $oxy_condition_operators['simple'], 'lit_condition_single_post_type_callback', 'Post'); | |
| } |
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
| jQuery(".oxy-dynamic-list").find("*").removeAttr('id'); |
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
| add_shortcode( 'repeater_post_class', 'lit_post_class_sc' ); | |
| /** | |
| * Shortcode for adding post classes inside Oxygen Repeater | |
| */ | |
| function lit_post_class_sc( $atts, $content = null ) { | |
| $postclasses = join( ' ', get_post_class() ); | |
| return '<div class="'. $postclasses . '" />' . $content . '</div>'; |
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
| add_action( 'pre_get_posts', 'search_filter' ); | |
| function search_filter($query) { | |
| if ( ! is_admin() && $query->is_main_query() ) { | |
| if ( $query->is_search ) { | |
| $query->set( 'order', 'ASC' ); | |
| } | |
| } | |
| } |