• Resolved Aminul Sarkar

    (@aminulhub)


    I created a custom theme. And installed WP-Optimize plugin there. But whenever I click on the plugin Setting option to go to the plugin page, the page is keep reloading and always redirecting to the ‘Minify’ page in your plugin page.

    I changed the theme to check. It’s okay with other themes. Only this happens with my custom theme. Very strange bcz mytheme doesn’t have any problem with other plugins.

    Do you guys have any idea why is this happening?
    A short video of the issue – https://www.awesomescreenshot.com/video/6187646?key=aba9e94f06df4c1bd95478ec413663d6

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Aminul Sarkar

    (@aminulhub)

    Anyone from plugin support?

    @aminulhub Could you please try to de-activate/delete the plugin and re-install it and check if it helps to fix the issue?

    Thread Starter Aminul Sarkar

    (@aminulhub)

    I tried as you said. But the same thing is happening. It’s strange that the theme is working fine with other plugins except for WP-Optimize.

    Thread Starter Aminul Sarkar

    (@aminulhub)

    I found it. I can’t believe that one wordpress id was causing this!! Lol

    I was using this code in one of my files for Conditional logic for CMB2 custom fields.

    switch( true ) {
    
      // init for classic editor
    	case $( '#post' ).length > 0:
    	CMB2ConditionalsInit( '#post', '#post .cmb2-wrap' );
    	break;
    
     // init for gutenberg editor and options pages
    	case $( '#wpwrap' ).length > 0:
    	CMB2ConditionalsInit( '#wpwrap', '#wpwrap .cmb2-wrap' );
    	break;
    
    }
    
    <strong>Then I changed the selector '#wpwrap' to '.block-editor', then it started working fine.</strong> 
    
    

    switch( true ) {

    // init for classic editor
    case $( ‘#post’ ).length > 0:
    CMB2ConditionalsInit( ‘#post’, ‘#post .cmb2-wrap’ );
    break;

    // init for gutenberg editor and options pages
    case $( ‘.block-editor’ ).length > 0:
    CMB2ConditionalsInit( ‘.block-editor’, ‘.block-editor .cmb2-wrap’ );
    break;

    }

    Still wondering. What’s the deal with this id ‘wpwrap’ with your plugin? Why was this id conflicting with your plugin?

    @aminulhub Glad to hear the issue is now fixed ?? I’ll check to check with our development team with the id wpwrap in WP-Optimize

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WP Optimize is keep reloading again again non stop with my custom theme?’ is closed to new replies.