• Resolved mehranattari

    (@mehranattari)


    Hye,
    Thanks for the awesome plugin.

    But, I’ve some issues using the Oxygen page builder.

    1. I think the plugin’s asset optimizer just taking the front page CSS/JS files, not the single post/page, etc. Oxygen PB generates CSS based on the designed template type, which hummingbird doesn’t know about.
    2. This issue is most important because due to asset optimization the Oxygen PB does not load correctly. i.e. When I optimize the assets and then try to edit a template in Oxygen PB, many things brake in there, especially icons. The Oxygen PB template editing URL looks something like this “//example.com/?ct_template=default&ct_builder=true”. I think the Hummingbird is also considering this as other front-end URLs.

    So, if you know any workaround, that’ll be great. But if not, please

    1. Add some type of functionality to let us choose which page/template-type assets to optimize.
    2. Add some functionality to exclude some specific page/template/ or query-string or logged-in user status from optimizations.
    3. Also add functionality to preload resources.

    It’ll make the plugin more robust, especially the asset optimization part. You can check the Gonzales plugin for inspiration, as they have done a great job optimizing individual page/template assets.

    Best regards.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @mehranattari ,

    I’m sorry about this issue. Can you try this custom snippet
    https://gist.github.com/wpmudev-sls/bd1a80a56cecb928dbf281f17f4de724 ? It should fix issues with Oxygen builder.

    You can download a zip, unzip it and upload file hmbp-fix-conflict-oxygen.php to your wp-content/mu-plugins folder. If that folder doesn’t exist you can simply create it.

    If you are not familiar with mu-plugins you can read about them here:
    https://premium.wpmudev.org/docs/getting-started/download-wpmu-dev-plugins-themes/#installing-mu-plugins
    or you can paste it in your child theme’s functions.php file.

    kind regards,
    Kasia

    Thread Starter mehranattari

    (@mehranattari)

    Hye @wpmudev-support2
    Bundle of thanks for your kind reply, and sorry I checked it very late.

    I added your code to one of my sites using the Code Snippets plugin. It ran well. But, when I tried to create or edit my oxygen builder template. It totally broke it. I am attaching a screenshot of it.

    https://paste.pics/AF5R0

    Best.

    Thread Starter mehranattari

    (@mehranattari)

    BTW, I am using Oxygen Builder 3.5 version, and I also tried putting the file in the mu-plugins folder. But it did not work.

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @mehranattari

    Can you try to use this mu-plugin as an alternative?

    <?php
    
    add_action( 'init',function(){
    
      	// check if builder activated
        if ( isset( $_GET['ct_builder'] ) && $_GET['ct_builder'] ) {
    
          // check if user is logged in
          if ( !is_user_logged_in() ) {auth_redirect();}
    
          global $post;
    
          // if user can edit this post
          if ( $post !== null && ! oxygen_vsb_current_user_can_access() ) {auth_redirect();}
    
            add_filter( 'wp_hummingbird_is_active_module_minify', '__return_false', 99 );
    
        }
    
    });

    Let us know the result you got.
    Best Regards
    Patrick Freitas

    Thread Starter mehranattari

    (@mehranattari)

    Bundle of thanks it works now.

    Some suggestions for improving the Hummingbird Cache Plugin’s Asset Optimization Section.

    1. Add some type of functionality to let us choose which page/template-type assets to optimize. Because some plugins assets are only needed in specific pages, not everywhere, like the Contact Form 7 plugins assets. While some plugins only load assets for a specific page.
    2. Add some functionality to exclude some specific page/template/ or query-string or logged-in user status from optimizations.
    3. Also, add functionality to preload resources. So we’ll be able to preload fonts/styles/scripts etc. If we think that those are needed

    Again bundle of thanks for the help.

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @mehranattari

    I’m happy to hear it’s working for you now!

    Thank you for the suggestions also!

    Some of thee features are already on our “to do” list, for example assets preloading is already planned to be added.

    I’ve also passed your suggestions over to our Hummingbird Team for further consideration.

    Best regards,
    Adam

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Issues with Oxygen Page Builder’ is closed to new replies.