twgerber
Forum Replies Created
-
Forum: Plugins
In reply to: [The Events Calendar] Structured data warningsThx will close it.
Forum: Plugins
In reply to: [The Events Calendar] Structured data warningsClients hate getting those messages from Google. Thanks for the explanation.
I figured this out. For Roles it has to be the Role Slug not the visible name. Now it is working.
Forum: Plugins
In reply to: [Ventus - Weather Map Widget & Shortcode] Pagespeed issuesThat would be very helpful Thank you
fixed Thx
I think that fixed it.
Ahh. So I need to add the second? Will do now
I have tested with WP Rocket disabled. Also with all other blocks disabled from other vendors. No effect. Very odd.
<?php
/**
* Child theme functions
*
* When using a child theme (see http://codex.wordpress.org/Theme_Development
* and http://codex.wordpress.org/Child_Themes), you can override certain
* functions (those wrapped in a function_exists() call) by defining them first
* in your child theme’s functions.php file. The child theme’s functions.php
* file is included before the parent theme’s file, so the child theme
* functions would be used.
*
* Text Domain: oceanwp
* @link http://codex.wordpress.org/Plugin_API
*
*//**
* Load the parent style.css file
*
* @link http://codex.wordpress.org/Child_Themes
*/
function oceanwp_child_enqueue_parent_style() {
// Dynamically get version number of the parent stylesheet (lets browsers re-cache your stylesheet when you update your theme)
$theme = wp_get_theme( ‘OceanWP’ );
$version = $theme->get( ‘Version’ );
// Load the stylesheet
wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array( ‘oceanwp-style’ ), $version );}
add_action( ‘wp_enqueue_scripts’, ‘oceanwp_child_enqueue_parent_style’ );add_theme_support( ‘wc-product-gallery-lightbox’ );
// override Shop URL
function bbloomer_change_return_shop_url() {
return ‘/all-custom-mirror-frames/’;
}add_filter( ‘woocommerce_return_to_shop_redirect’, ‘bbloomer_change_return_shop_url’ );
// Add custom font to font settings
function ocean_add_custom_fonts() {
return array( ‘Scala’ , ‘GHEA Aspet Bold’ , ‘GHEA Aspet Regular’ ); // You can add more then 1 font to the array!
}add_action( ‘ocean_header_template_content’, ‘do_blocks’, 7 );
function rocket_lazyload_exclude_src_custom( $src ) {
$src[] = ‘between-eighths’;
$src[] = ‘frame-edge-mirror-edge’;
return $src;
}
add_filter( ‘rocket_lazyload_excluded_src’, ‘rocket_lazyload_exclude_src_custom’ );/* Remove the default WooCommerce 3 JSON/LD structured data */
function remove_output_structured_data() {
remove_action( ‘wp_footer’, array( WC()->structured_data, ‘output_structured_data’ ), 10 ); // This removes structured data from all frontend pages
remove_action( ‘woocommerce_email_order_details’, array( WC()->structured_data, ‘output_email_structured_data’ ), 30 ); // This removes structured data from all Emails sent by WooCommerce
}
add_action( ‘init’, ‘remove_output_structured_data’ );And It’s weird the Homepage is fine. But the rest are messed up.
I also disabled all other 3rd party block plug-ins – no change either. I have left 1.7.4 in place in case you want to look?
- This reply was modified 6 years, 6 months ago by twgerber.
I already have that in my functions.php file 😉 So it is happening despite that code. I re-upgraded to 1.7.4 and still have the issue. I turned off all WP Rocket CSS items and it still happens too. So WP Rocket CSS settings are not involved.
Any other ideas?
- This reply was modified 6 years, 6 months ago by twgerber.
I have not. I will though. That is most likely it. What file did you modify?
Otherwise I can find it. Wonder if I can add to child theme?
Many times I have done that. Still didn’t work. Perhaps some other plugin is interfering? Although I don’t know how another plugin would interfere with CSS loading.
- This reply was modified 6 years, 6 months ago by twgerber.
Forum: Themes and Templates
In reply to: [OceanWP] Custom footer issue?Thx
Forum: Themes and Templates
In reply to: [OceanWP] Custom footer issue?I reverted back and now it works.
Forum: Themes and Templates
In reply to: [OceanWP] Custom footer issue?Hmmm. Good catch. I’ll try adjusting wp rocket css settings.