• Resolved twgerber

    (@twgerber)


    I had upgraded to the latest version but there must be some conflict with WP Rocket and the CSS?

    My Kadence CSS would only load on the homepage of my site.

    So once I reverted everything works again.

    See the footer area of the homepage vs any interior pages.

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Hey,
    I use wp rocket on the demo site. Not seeing any issue with the latest version. Had you cleared your cache after and minify css after?

    Ben

    Thread Starter twgerber

    (@twgerber)

    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 2 years, 9 months ago by twgerber.

    Hmm, ok, most likely has to do with how the area is being included. Looks like you are using ocean theme with one of their template areas. I’ll run some tests to recreate and see if I can figure it out.

    Ben

    I had to hack in support for Gutenberg in the oceanwp library. Allowing the templates to be edited in ocean wp and I had to add:

    add_filter( 'ocean_footer_template_content', 'do_blocks' );

    To allow the blocks to run.

    Have you added that?

    Ben

    Thread Starter twgerber

    (@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?

    Yes you can add that to a child theme functions.php file

    Ben

    Thread Starter twgerber

    (@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 2 years, 9 months ago by twgerber.
    Thread Starter twgerber

    (@twgerber)

    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 2 years, 9 months ago by twgerber.

    really strange, I can’t recreate, even with rocket running.

    Can you disable wp rocket to see if some caching on their end would be involved?

    Otherwise, can you tell me what else is in your child theme, perhaps there is something else added.

    Ben

    Thread Starter twgerber

    (@twgerber)

    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’ );

    I see that you are adding this:

    add_action( 'ocean_header_template_content', 'do_blocks', 7 );

    But not this:

    add_filter( 'ocean_footer_template_content', 'do_blocks' );

    Am I missing it?

    Ben

    Thread Starter twgerber

    (@twgerber)

    Ahh. So I need to add the second? Will do now

    Thread Starter twgerber

    (@twgerber)

    I think that fixed it.

    Thread Starter twgerber

    (@twgerber)

    fixed Thx

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Had to revert to Kadence 1.7.1’ is closed to new replies.