Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #876506

    C-Admin
    Participant

    I seem to be having a small issues with the header and a microsoft edge underline issue.

    I will be posting url and credentials on my next post

    X, Cornerstone and WordPress are all updated to the latest version

    #876507

    C-Admin
    Participant
    This reply has been marked as private.
    #876517

    C-Admin
    Participant

    sorry, the file wasn’t uploaded

    #876743

    C-Admin
    Participant

    I’ve just had confirmation. This? x-ms-format-detection=”none” doesn’t seem to work

    #877297

    Friech
    Moderator

    Hi There,

    Thanks for writing in! You can add this under Custom > CSS in the Customizer.

    .x-img {width: 100%;}

    Hope it helps, Cheers!

    #878768

    C-Admin
    Participant

    Thank you, that worked!

    Could you please also help with the Edge issue? Maybe I was adding this bit x-ms-format-detection=”none” in the wrong place? I’m using a child theme, integrity. Thank you advance.

    I also activated the custom 404 page that comes with the theme and translated it thru WPML. It doesn’t seem to work though. If I’m on the Italian side of the site and I trigger a 404, I get the Italian 404, but if I’m on the English site and I trigger a 404, the Italian 404 shows up. Should I follow these instructions? I’m confused about the object ID though. Do they mean the page-id?

    #879480

    Rupok
    Member

    Hi there,

    Thanks for updating. The issue with Edge is, it’s a pretty new browser and seems it can’t recognize some CSS attributes. It’s not a standard browser yet like Firefox, Chrome or Safari so some issue might arise.

    You can follow the mentioned thread for translation issue.

    Cheers!

    #879603

    C-Admin
    Participant

    Thanks for your reply.

    I may have fixed the Edge issue. I have tested it on my systems and it doesn’t show up. To be 100% sure, I need to double check with the person who reported the issue tho. Anyhow, I added document.body.setAttribute(‘x-ms-format-detection’, ‘none’); in the customizer > custom > Edit global Javascript and added x-ms-format-detection=”none” to a bunch of places. Hope this helps someone else.

    #879608

    C-Admin
    Participant
    This reply has been marked as private.
    #880073

    Jack
    Keymaster

    Hi there @c-admin,

    Thanks for writing back, could you post your FTP details in a private reply please, so we can take a closer look at the redirection issue for you. 🙂

    Thank you!

    #880460

    C-Admin
    Participant
    This reply has been marked as private.
    #881406

    Rad
    Moderator

    Hi there,

    I tried your FTP login credentials and it’s not working on my end. For the meantime, please follow this temporary fix.

    With your FTP or File manager, please navigate to this folder \wp-content\plugins\x-custom-404\views\site\

    Then edit custom-404.php and replace the entire code with this,

    <?php
    
    // =============================================================================
    // VIEWS/SITE/CUSTOM-404.PHP
    // -----------------------------------------------------------------------------
    // Plugin site output.
    // =============================================================================
    
    // =============================================================================
    // TABLE OF CONTENTS
    // -----------------------------------------------------------------------------
    //   01. Output
    // =============================================================================
    
    // Output
    // =============================================================================
    
    function x_custom_404_filter_template( $template ) {
    
      require( X_CUSTOM_404_PATH . '/functions/options.php' );
    
      if ( ! isset( $x_custom_404_enable ) || ! $x_custom_404_enable ) {
        return $template;
      }
    
      global $sitepress;
    
      if ( function_exists( 'icl_object_id' ) && is_callable( array( $sitepress, 'get_current_language' ) ) ) {
          $custom_404_post = get_post( icl_object_id( $x_custom_404_entry_include, 'page', false, $sitepress->get_current_language() ) );
      }
      else {
          $custom_404_post = get_post( (int) $x_custom_404_entry_include );
      }
    
      if ( ! is_a( $custom_404_post, 'WP_Post' ) ) {
        return $template;
      }
    
      GLOBAL $wp_query;
      GLOBAL $post;
    
      $post = $custom_404_post;
    
      $wp_query->posts             = array( $post );
      $wp_query->queried_object_id = $post->ID;
      $wp_query->queried_object    = $post;
      $wp_query->post_count        = 1;
      $wp_query->found_posts       = 1;
      $wp_query->max_num_pages     = 0;
      $wp_query->is_404            = false;
      $wp_query->is_page           = true;
    
      return get_page_template();
    
    }
    
    add_filter( '404_template', 'x_custom_404_filter_template' );

    Hope this helps.

    #881666

    C-Admin
    Participant
    This reply has been marked as private.
    #881690

    C-Admin
    Participant

    BTW, I reuploaded the original non-edited x-custom-404.php because if I tried to edit anything else on my site, I’d get the php error mentioned above. The site will go live tomorrow and I still need to fix a few things so I changed it back. Hope this isn’t a problem. Please let me know

    #882116

    Jack
    Keymaster

    Hi there @c-admin,

    I’ve logged in via FTP, modified the file, and it all appears to be working correctly now with the correct 404 page per language.

    Can you check that everything is working as expected?

    Thanks!