Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

News Posts Not Sorting Correctly By Date

posts
    • 6 years, 4 months ago ClearConscious
      Participant

      Think I’ve run into a bug as far as I can tell. News posts aren’t sorting correctly by date. The order seems to get out of wack half way through the infinite scroll.

    • 6 years, 4 months ago Ruco
      Keymaster

      Hello,

      I have tried to add this fix on codeless-main.js file without success, please try to add it by yourself.

      Find the lines below and replace (codeless-main.js):

       if( $element.hasClass('masonry-entries') ){
                                      isotope_options['masonry'] = {
                                          columnWidth: '.cl-msn-size-small'
                                      };
                                  }
      

      replace with:

       if( $element.hasClass('masonry-entries') ){
                                      isotope_options['masonry'] = {
                                          columnWidth: '.cl-msn-size-small',
                                          horizontalOrder: true
                                      };
                                  }
      

      Let us know.

      Regards!

    • 6 years, 4 months ago ClearConscious
      Participant

      Looks like the code is inputted. This is set up as a grid though, would this still apply?

    • 6 years, 4 months ago ClearConscious
      Participant

      It also doesn’t appear to have made a difference.

    • 6 years, 4 months ago Mirela
      Participant

      Hello,

      You are right. It seems there’s a glitch with grid style. We will fix this in the next theme update. For now if this order gives you problem, please use another style.

      Best regards!

    • 6 years, 4 months ago ClearConscious
      Participant

      Is there any code tweaks you could recommend until it’s patched?

    • 6 years, 4 months ago Ruco
      Keymaster

      Hello,

      The fast fix is the code that i gave you, but for a strange reason the js file did not get updated. I think that you have any cache or something like that don’t reflect the js change that i have made on the front-end.

      Let us know.

      Regards!

    • 6 years, 3 months ago ClearConscious
      Participant

      Made some changes in order to eliminate caching and other things as culprits.

      When I made that change (as instructed above) it just stopped displaying all of the images and articles.

    • 6 years, 3 months ago Ruco
      Keymaster

      Hello,

      I have made this change on codeless-main.js file:

      var isotope_options = {
                                      itemSelector: '.cl-isotope-item',
                                      transformsEnabled: true,
                                      filter: '*',
                                      percentPosition: true,
                                      transitionDuration: '0.0s',
                                      layoutMode: $layoutMode
                                      
                                  };

      replaced with:

      var isotope_options = {
                                      itemSelector: '.cl-isotope-item',
                                      transformsEnabled: true,
                                      filter: '*',
                                      percentPosition: true,
                                      transitionDuration: '0.0s',
                                      layoutMode: 'fitRows',
                                      
                                  };

      Now everything works ok.

      Check out and let us know.

      Regards!

    • 6 years, 3 months ago ClearConscious
      Participant

      Looks like that worked. Much appreciated.

Viewing 9 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password