Tagged: 

Viewing 16 posts - 31 through 46 (of 46 total)
  • Author
    Posts
  • #753065

    I reactivate the cache plugin, delete the cache, switch the cache off, deactivate the plugin.
    Still got the issue.

    #753069

    Hi,

    does this happen with another WP theme as well?

    Best regards,
    Andy

    #753081

    I discover it happens only with the child theme, not the complete one.

    #753107

    Hi,

    good step. So obviously some custom code inside your child theme is causing it. Remove any custom code one by one, until you find the one which is causing it.

    Best regards,
    Andy

    #753141

    Ok, I found it depends on the fuctions.php file of the child theme.
    I have this code inside:

    <?php
    
    add_action('avia_builder_mode', "builder_set_debug");
    function builder_set_debug()
    {
    	return "debug";
    }
    
    function add_custom_target(){
    ?>
    <style>.sort_by_cat {
      display: table !important;
      margin: 0 auto !important;
    }</style>
    <?php
    }
    add_action('wp_footer', 'add_custom_target');
    
    add_filter('clean_url','async_js',11);
    function async_js($url) {
          if ( false !== strpos( $url, 'jquery.js' ) || false === strpos( $url, '.js' )) {
              return $url;
          }
          return "$url' defer='defer";        
    } 
    
    function defer_parsing_of_js ( $url ) {
    if ( FALSE === strpos( $url, '.js' ) ) return $url;
    if ( strpos( $url, 'jquery.js' ) ) return $url;
    return "$url' defer ";
    }
    add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );
    #753793

    Still need for support.
    Thanks.

    #753807

    Unfollow

    #754209

    Keep on following.

    #754263

    Still need for support.
    It’s a real shame.

    #754431

    unsubscribing

    #755123

    Hi,

    Please refrain from bumping or replying to your own thread because it gets pushed back to the end of the queue and moderators won’t be able to provide a response immediately. Please be patient while we go through the rest of the queue. Thank you for your understanding.

    As already said: remove any custom code inside your functions.php one by one, until you find the one which is causing the issue.

    Best regards,
    Andy

    #756253

    I keep on replying because I keep not having support.
    The code on my function.php was suggested by you and I can’t understand what that is for, that’s why I posted here.

    #757173

    Hi,

    we can’t tell you what your custom code is doing for you. If you got it from us, then I’m sure you know why you got it. Which problem did you have, which we solved for you by providing this custom code to you? can you link to the thread where we’ve provided this code to you please?

    Best regards,
    Andy

    #757629

    Should I search through three years of support to find every thread?
    Why can’t you just tell me what one code is for or what code I can try to delete without messing up all the website?

    #757936

    Hi,

    you can always put your custom code back, so you won’t mess up all your website. However, make a backup, just in case.
    So again: remove every custom code you’re currently using and check which one is causing this whole issue.

    Best regards,
    Andy

    #758281

    I removed everything and website seems to work perfectly. Don’t know what that code was for.

Viewing 16 posts - 31 through 46 (of 46 total)
  • You must be logged in to reply to this topic.