Skip to content

Commit

Permalink
css tweaks, php tweaks, plugin tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
neilgee committed Dec 7, 2018
1 parent aa30243 commit 945fb62
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 27 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 1 addition & 8 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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]
Expand All @@ -174,7 +172,6 @@ function bt_client_logo() {
}
return ob_get_clean();
}


add_action( 'add_attachment', 'bt_image_meta_upon_image_upload' );
/**
Expand All @@ -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;
Expand All @@ -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 );

}
}

Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion includes-child/beaverbuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
5 changes: 4 additions & 1 deletion includes-child/customizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
3 changes: 3 additions & 0 deletions includes-child/woocommerce/woo.css
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,6 @@
}


.sku_wrapper {
display: none;
}
8 changes: 4 additions & 4 deletions plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand Down
57 changes: 45 additions & 12 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
---------------------------------------------------------------------------------------------------- */

Expand Down Expand Up @@ -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
---------------------------------------------------------------------------------------------------- */

Expand Down Expand Up @@ -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 {
Expand All @@ -831,6 +859,10 @@ li.comment {

}

.site-footer-row .menu .sub-menu {
display: none !important;
}

/* Site Footer
---------------------------------------------------------------------------------------------------- */

Expand Down Expand Up @@ -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 {
Expand All @@ -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;
Expand All @@ -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';
Expand All @@ -1040,8 +1075,6 @@ i.fa-phone{
display: inline-block;
font-size: 30px;
color: #333;


}

/*
Expand Down

0 comments on commit 945fb62

Please sign in to comment.