Layout broken after 8.1.2 update

    • # 2 years, 10 months ago

      Hi,

      after the Update to 8.1.2 the Layout of my member area ist broken. (Screenshot on the right).

      With 8.1.1 everything is fine (I can did a rollback and it was fine again) (screenshot on the left).

      Did you change something for the template loading or stylesheet loading which I have to check in my child theme?

      Thank you
      Lennart

       

    • Thomas
      Keymaster
      # 2 years, 10 months ago

      Hi,

      Which WPCA frontend skin are you using, please?

      Regards.

      Want to help WP Customer Area? It only takes few seconds!
      Rate & review the plugin on WordPress.org ๐Ÿ™‚

    • Thomas
      Keymaster
      # 2 years, 10 months ago

      I took a look at our changes.

      I think that the template from your theme that WPCA is using does not use the the_content() function.

      In order to test, please create a file named cuar.php in your child-theme and paste the below code into it. Then try again. If the styles are loaded, it means that the the_content() function is missing from your page.php template.

      In that case, you’ll need to copy the content of page.php to cuar.php, and modify it so that it includes the function the_content().

      Regards.

       

      Want to help WP Customer Area? It only takes few seconds!
      Rate & review the plugin on WordPress.org ๐Ÿ™‚

    • # 2 years, 10 months ago

      Hi,

      Which WPCA frontend skin are you using, please?

      master

      In order to test, please create a file namedย cuar.phpย in your child-theme and paste the below code into it.

      which code should I paste into it?

      We are using DIVI, without any template overwriting the page.php in our Child Theme. The divi page.php is using the_content();

      Thank you
      Lennart

       

    • # 2 years, 10 months ago

      Any news here? We still have problems with 8.1.2!

    • Thomas
      Keymaster
      # 2 years, 10 months ago
      This reply has been marked as private.
    • Thomas
      Keymaster
      # 2 years, 10 months ago

      Is the DIVI theme builder activated and used on your site ? I’m not talking about the DIVI page builder, but the DIVI theme builder.

      Regards

      Want to help WP Customer Area? It only takes few seconds!
      Rate & review the plugin on WordPress.org ๐Ÿ™‚

    • # 2 years, 9 months ago
      This reply has been marked as private.
    • Thomas
      Keymaster
      # 2 years, 9 months ago

      Hi,

      For now, I think that you can fix that by adding this code snippet to a custom plugin:

      /**
       * Main WPCA content filter
       *
       * Never use the default WP filter called the_content,
       * use cuar/core/the_content instead !
       *
       * @param $content
       *
       * @return mixed|void
       */
      function wpca_define_main_content_filter($content)
      {
          if ((!cuar_is_customer_area_page(get_queried_object_id()) &&
                                 !cuar_is_customer_area_private_content(get_the_ID()))) {
              return $content;
          }
      
          return apply_filters('cuar/core/the_content', $content);
      }
      add_filter('the_content', 'wpca_define_main_content_filter', 9998);

      This is a temporary solution but this might work.

      Best regards.

      Want to help WP Customer Area? It only takes few seconds!
      Rate & review the plugin on WordPress.org ๐Ÿ™‚

Viewing 8 reply threads

The topic ‘Layout broken after 8.1.2 update’ is closed to new replies.