• Resolved kingfish65

    (@kingfish65)


    This is strange. On one of my localhost WP installs with Kadence Blocks, one Kadence CSS line loads before doctype.

    <link rel='stylesheet' id='kadence-blocks-rowlayout-css'  href='https://spnr.test/wp-content/plugins/kadence-blocks/dist/blocks/row.style.build.css' media='all' />
    <!DOCTYPE html>
    <html lang="en-US">
    <head>

    Doesn’t seem to matter which theme I have active. Any ideas as to why? I haven’t seen it before.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter kingfish65

    (@kingfish65)

    I finally tracked it down to using Row Layou in the Header part. Not sure why though.

    Thread Starter kingfish65

    (@kingfish65)

    I have found an issue not using the Row Layout in the header. I find the mobile menu is appearing under the divider below. I need the z-index control in Row Layout to make the mobile menu appear on top. Any ideas would be appreciated.

    Thread Starter kingfish65

    (@kingfish65)

    I have discovered it is the Advanced Text in conjunction with the row layout when used in a page template.

    Hi,
    Thanks for posting and for all the data. It appears with FSE rendering out the entire page and then building it (which is different than standard WP) our use of wp_print_styles after the wp_head action causes this. Likely this will need to be tweaked for full site editing in core. wp_print_styles is a core function that shouldn’t break the site if used.

    However in the mean time I’ll be looking to create a hack for it and pushing out a bug fix.

    You can update line 443 of class-kadence-blocks-frontend.php to use

    if ( ! doing_filter( 'the_content' ) && ! wp_is_block_theme() ) {

    Ben

    Thread Starter kingfish65

    (@kingfish65)

    Thanks for responding. I updated line 443 and it did get rid of one of the two CSS lines I was currently getting. I am still getting the following:

    <link rel='stylesheet' id='kadence-blocks-btn-css'  href='https://wptest.test/wp-content/plugins/kadence-blocks/dist/blocks/btn.style.build.css?ver=2.4.4' media='all' />
    <!DOCTYPE html>

    I look forward to the upcoming bug fix.

    Hi,
    If you want to you can access the early release for 2.4.5: https://www.kadencewp.com/wp-content/uploads/2022/05/kadence-blocks_v2_4_5_early_release.zip

    That will include the fixes for this along with a couple of other bug fixes.

    Ben

    Thread Starter kingfish65

    (@kingfish65)

    Awesome! Works perfectly. Thank you for your efforts.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Kadence CSS loading before doctype’ is closed to new replies.