diff --git a/README.md b/README.md index 6d85a72..7506773 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ Including ### Miscellaneous -- PHP is enabled to execute in widget areas +- PHP is disabled to execute in widget areas - Shortcode enabled in widget areas - Author name removed in Post Meta for posts - Meta has default icon styling diff --git a/functions.php b/functions.php index 10fa5d1..17a2b7e 100644 --- a/functions.php +++ b/functions.php @@ -17,6 +17,7 @@ add_image_size( 'blog-feature', 300, 200, true ); add_image_size( 'medium', 300, 300, true ); // Overwrite default and hard cropping } + /** * Filtering the Customizer * Not working for theme if inside after_setup_theme function - so thats why it is here. @@ -87,7 +88,6 @@ function bt_theme_setup() { */ //include_once( get_stylesheet_directory() . '/includes-child/mobile-menu-removal.php' ); - /** * Load in Beaver Builder Plugin functions * @since 1.0.0 @@ -149,7 +149,6 @@ function bt_add_svg_images( $mimetypes ) { return $mimetypes; } - /** * Add support for custom logo change the dimensions to suit. Need WordPress 4.5 for this. * @since 1.0.0 @@ -161,7 +160,6 @@ function bt_add_svg_images( $mimetypes ) { 'flex-width' => true, )); - add_shortcode( 'client_logo', 'bt_client_logo' ); /** * Position the content with a shortcode [client_logo] @@ -174,7 +172,6 @@ function bt_client_logo() { } return ob_get_clean(); } - add_action( 'add_attachment', 'bt_image_meta_upon_image_upload' ); /** @@ -183,9 +180,7 @@ function bt_client_logo() { * @link https://brutalbusiness.com/automatically-set-the-wordpress-image-title-alt-text-other-meta/ */ function bt_image_meta_upon_image_upload( $post_ID ) { - // Check if uploaded file is an image, else do nothing - if ( wp_attachment_is_image( $post_ID ) ) { $my_image_title = get_post( $post_ID )->post_title; @@ -210,7 +205,6 @@ function bt_image_meta_upon_image_upload( $post_ID ) { // Set the image meta (e.g. Title, Excerpt, Content) wp_update_post( $my_image_meta ); - } } @@ -220,7 +214,6 @@ function bt_image_meta_upon_image_upload( $post_ID ) { */ add_filter( 'widget_text', 'do_shortcode' ); - //add_filter( 'widget_text','bt_execute_php_widgets' ); /** * Allow PHP code to run in Widgets. diff --git a/includes-child/beaverbuilder.php b/includes-child/beaverbuilder.php index a72f94a..20e4ed6 100644 --- a/includes-child/beaverbuilder.php +++ b/includes-child/beaverbuilder.php @@ -16,7 +16,7 @@ * Remove BB Plugin LightBox * @since 1.0.0 */ - //add_filter( 'fl_builder_override_lightbox', __return_true ); + //add_filter( 'fl_builder_override_lightbox', '__return_true' ); add_filter( 'fl_module_upload_regex', 'bt_upload_image_formats', 10, 4 ); diff --git a/includes-child/customizer.php b/includes-child/customizer.php index 07edb3c..23a7b90 100644 --- a/includes-child/customizer.php +++ b/includes-child/customizer.php @@ -182,12 +182,15 @@ function bt_register_theme_customizer( $wp_customize ) { /** * Enable/Disable Woo SKU + * Now enabled due to Woo PDF Voucher issue I found + * @link https://github.com/woocommerce/woocommerce/issues/21906 + * Have hidden SKU with CSS in includes-child/woocommerce/woo.css * @since 1.7.0 */ $wp_customize->add_setting( 'bt_woo_sku', //give it an ID array( - 'default' => 'disabled', + 'default' => 'enabled', ) ); $wp_customize->add_control( diff --git a/includes-child/woocommerce/woo.css b/includes-child/woocommerce/woo.css index 9909a3e..ea36dfe 100644 --- a/includes-child/woocommerce/woo.css +++ b/includes-child/woocommerce/woo.css @@ -143,3 +143,6 @@ } +.sku_wrapper { + display: none; +} \ No newline at end of file diff --git a/plugins.php b/plugins.php index b6c2ab0..9b6a314 100644 --- a/plugins.php +++ b/plugins.php @@ -64,7 +64,7 @@ function gsm_register_required_plugins() { 'slug' => 'advanced-custom-fields', // The plugin slug (typically the folder name). 'source' => get_theme_root() . '/lib/plugins/advanced-custom-fields-pro.zip', // The plugin source. 'required' => false, // If false, the plugin is only 'recommended' instead of required. - 'version' => '5.7.6', // E.g. 1.0.0. If set, the active plugin must be this version or higher. + 'version' => '5.7.8', // E.g. 1.0.0. If set, the active plugin must be this version or higher. 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. 'external_url' => '', // If set, overrides default API URL and points to an external URL. @@ -87,7 +87,7 @@ function gsm_register_required_plugins() { 'slug' => 'bb-ultimate-addon', // The plugin slug (typically the folder name). 'source' => get_theme_root() . '/lib/plugins/bb-ultimate-addon.zip', // The plugin source. 'required' => false, // If false, the plugin is only 'recommended' instead of required. - 'version' => '1.11.0', // E.g. 1.0.0. If set, the active plugin must be this version or higher. + 'version' => '1.13.2', // E.g. 1.0.0. If set, the active plugin must be this version or higher. 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. 'external_url' => '', // If set, overrides default API URL and points to an external URL. @@ -109,9 +109,9 @@ function gsm_register_required_plugins() { array( 'name' => 'Gravity Forms', // The plugin name. 'slug' => 'gravityforms', // The plugin slug (typically the folder name). - 'source' => get_theme_root() . '/lib/plugins/gravityforms_2.3.3.10.zip', // The plugin source. + 'source' => get_theme_root() . '/lib/plugins/gravityforms_2.4.2.4.zip', // The plugin source. 'required' => false, // If false, the plugin is only 'recommended' instead of required. - 'version' => '2.3.3.10', // E.g. 1.0.0. If set, the active plugin must be this version or higher. + 'version' => '2.4.2.4', // E.g. 1.0.0. If set, the active plugin must be this version or higher. 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. 'external_url' => '', // If set, overrides default API URL and points to an external URL. diff --git a/style.css b/style.css index adbf83f..dd1007f 100644 --- a/style.css +++ b/style.css @@ -378,20 +378,23 @@ textarea:focus { ---------------------------------------------------------------------------------------------------- */ .but-no-back a.fl-button, +.but-no-back .fl-post-more-link a, +.but-no-back .fl-post-grid-content a.fl-post-grid-more, .fl-builder-content .but-no-back a.fl-button * { border: none; border-radius: 0; - background: transparent; - color: #000; - padding: 0; + background: transparent !important; + color: #333 !important; + padding: 0 !important; } .but-no-back a.fl-button:hover, +.but-no-back .fl-post-grid-content a.fl-post-grid-more:hover, .but-no-back a.fl-button:hover * { color: #000 ; border: none; background: transparent; - opacity: .8; + opacity: .8 !important; } .fl-builder-content .but-no-back i.fl-button-icon-after { @@ -483,7 +486,7 @@ a.fl-post-more-link:hover { } } -/* # Mobile Nav Using Beaver In Built Button Option - changed background and added hamburger icon +/* # Mobile Nav Using Beaver Theme In Built Button Option - changed background and added hamburger icon * Black and white example below ---------------------------------------------------------------------------------------------------- */ @@ -513,6 +516,30 @@ a.fl-post-more-link:hover { } } +/* # Mobile Nav Using Beaver Themer Option - changed color + * Black example below +---------------------------------------------------------------------------------------------------- */ +@media (max-width: 767px) { + .fl-page .fl-menu-mobile-toggle * { + color: #000; + border: none; + } + + .fl-page .fl-menu-mobile-toggle:hover { + border: none; + background: transparent !important; + } + + .fl-menu-mobile-close, + .fl-menu-mobile-close:hover, + .fl-menu-mobile-close:focus { + padding: 3px !important; + border-radius: 50% !important; + width: 35px !important; + height: 35px !important; + } +} + /* # Site Navigation ---------------------------------------------------------------------------------------------------- */ @@ -811,9 +838,10 @@ li.comment { @media (max-width: 767px) { - .site-footer-widgets-row h3.fl-heading, + .site-footer-widgets-row .fl-heading, .site-footer-widgets-row .fl-icon-group-left, - .site-footer-widgets-row .menu li { + .site-footer-widgets-row .menu li, + .site-footer-widgets-row .fl-rich-text p { text-align: center !important; } .site-footer-widgets-row .uabb-business-hours-wrap { @@ -831,6 +859,10 @@ li.comment { } +.site-footer-row .menu .sub-menu { + display: none !important; +} + /* Site Footer ---------------------------------------------------------------------------------------------------- */ @@ -998,10 +1030,10 @@ li.comment { /* Icon Centre Icons --------------------------------------------- */ .icon-top .fl-icon { - display: inline-block; + display: block; vertical-align: middle; text-align: center; - margin-bottom: 20px; + margin-bottom: 0; } .icon-top .fl-icon i { @@ -1023,7 +1055,9 @@ i.fa-phone{ /* Header Quote ---------------------------------------------------------------------------------------------------- */ .header-quote .fl-heading-text::before, -.header-quote .fl-rich-text p:first-of-type::before { +.header-quote .fl-post-title::before, +.header-quote .fl-post-grid-title::before, +.header-quote .fl-rich-text p::first-of-type::before { content: '\f205'; font-family: 'dashicons'; padding-right:10px; @@ -1032,6 +1066,7 @@ i.fa-phone{ } .header-quote .fl-heading-text::after, +.header-quote .fl-post-excerpt p::after, .header-quote .fl-rich-text p:last-of-type::after { content: '\f205'; font-family: 'dashicons'; @@ -1040,8 +1075,6 @@ i.fa-phone{ display: inline-block; font-size: 30px; color: #333; - - } /*