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
| .ginput_recaptcha { | |
| transform:scale(0.66); | |
| -webkit-transform:scale(0.66); | |
| transform-origin:0 0; | |
| -webkit-transform-origin:0 0; | |
| } |
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_filter( 'body_class', 'plm_custom_body_class' ); | |
| function plm_custom_body_class( $classes ) { | |
| if ( class_exists( 'FLBuilderModel' ) && FLBuilderModel::is_builder_enabled() ) { | |
| $classes[] = 'full-width-content'; | |
| $classes[] = 'hide-page-header'; | |
| return $classes; | |
| } | |
| else { | |
| return $classes; | |
| } |
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_filter( 'generate_show_title', 'plm_remove_page_title', 20 ); | |
| function plm_remove_page_title($output) { | |
| if ( class_exists( 'FLBuilderModel' ) && FLBuilderModel::is_builder_enabled() ) { | |
| return false; | |
| } | |
| else { | |
| return $output; | |
| } | |
| } |
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( 'add_meta_boxes', function() { | |
| remove_meta_box( 'generate_layout_options_meta_box', 'page', 'side' ); | |
| remove_meta_box( 'generate_layout_options_meta_box', 'post', 'side' ); | |
| }, 999 ); | |
| /** Hide GeneratePress Hooks Notice **/ | |
| add_action( 'after_setup_theme', 'tu_remove_hooks_php_check' ); | |
| function tu_remove_hooks_php_check() { | |
| remove_action( 'admin_notices','generate_hooks_php_check' ); | |
| } |
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('acf/init', 'my_acf_op_init'); | |
| function my_acf_op_init() { | |
| // Check function exists. | |
| if( function_exists('acf_add_options_page') ) { | |
| // Add parent. | |
| $parent = acf_add_options_page(array( | |
| 'page_title' => __('General Website Settings'), | |
| 'menu_title' => __('Website Settings'), |
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('cat_description', 'wsv_cat_description_shortcode'); | |
| function wsv_cat_description_shortcode($atts){ | |
| $a = shortcode_atts( array( | |
| 'id' => 0, | |
| ), $atts ); | |
| return category_description($a['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
| /* Control styling of ® and ™ */ | |
| function replace_text($text) { | |
| $text = str_replace('®', '<sup>®</sup>', $text); | |
| $text = str_replace('™', '<sup>™</sup>', $text); | |
| return $text; | |
| } | |
| add_filter('the_content', 'replace_text'); |
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 field before and after Beaver Builder Rows */ | |
| add_filter( 'fl_builder_register_settings_form', function ( $form, $id ) { | |
| if ( 'row' == $id ) { | |
| $form['tabs']['mr-rows'] = [ | |
| 'title' => __('Row Shortcodes', 'mr-modules'), | |
| 'sections' => [ | |
| 'row_shortcodes' => [ | |
| 'title' => __('Before & After Row Shortcodes', 'mr-modules'), | |
| 'fields' => [ | |
| 'enable_shortcodes' => [ |