Okay
  Public Ticket #2286884
layout issues
Closed

Comments

  • Benjamin started the conversation

    We just bought your amazing theme for the website of my girlfriend.

    We are facing 2 main issues :

    1. On the front page, there’s an overlap between 2 pictures of the portfolio (

    2. On the blog, the blog grid layout does not give good results and it seems that if thumbnail sizes of the features images are different, it creates a weird layout. 

     https://mariecolot.com/blog

    Could you help us ?

    Thanks a lot for your support !

    Benjamin

  •  675
    Neuron replied

    Hi Benjamin,

    Sure, feel free to ask for anything you need.

    1) It seems like you've enabled the lazy loading from JetPack plugin, you either disable it or add as following.

    There can be a slow communication with JS and the DOM of website, so to reload that fast, simply install the following plugin.

    - https://wordpress.org/plugins/insert-headers-and-footers/

    After installing go to the Settings > Insert Headers and Footers, add the following script in head or footer.

    <script>
    jQuery(function($) {
        setTimeout(function() {
            window.dispatchEvent(new Event('resize'));
        }, 400);
    });
    </script>

    2) Hmm, you can enable the masonry layout for this page.

    <script>
    jQuery(function($) {
        $('.grid-blog').isotope({
            selector: '.selector'
        });
    });
    </script>

    Let me know if you need further help.

    Feel free to ask for anything you need.


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • Benjamin replied

    Hi Neuron, 

    Thanks for your support. 

    1) I had to disable the lazy loading in jetpack, as your second option did not worked. 

    2) How could I have a result that looks like this ? https://neuronthemes.com/crate/blog-grid/

    We would not like to have it masonry style. Where should I put this script btw ? 

  •  675
    Neuron replied

    Hi Benjamin,

    I am very sorry for the late reply, we were not working on the weekend.

    Via the plugin Insert Headers and Footers.

    https://wordpress.org/plugins/insert-headers-and-footers/

    No worries, you can use the fitrows layout which is basically the grid.

    <script>
    jQuery(function($) {    
        $('.grid-blog').isotope({
            selector: '.selector',
            layout: 'fitRows'
        });
    });
    </script>

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • Benjamin replied

    Hi , 

    No worries. It is included now, but still has a strange behaviour : 

    see this page : https://mariecolot.com/blog-grid-test/ 

    How can I make sure that everything is aligned like in your theme ? 

    Thanks, 

    Benjamin

  •  675
    Neuron replied

    Hi Benjamin,

    Sorry, I've miswrote the code.

    Use, this one instead.

    <script>
    jQuery(function($) {        
        $('.grid-blog').isotope({
            selector: '.selector',
            layoutMode: 'fitRows'
        });
    });
    </script>

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • Benjamin replied

    OK great, amazing ! 

    Thanks a LOT for your amazing support ! 

    Is there a way to make sure that all post thumbnail size in the grid are the same size ? 


  •  675
    Neuron replied

    Hi benjamin,

    You're welcome anytime, feel free to ask for anything you needsmile.png

    By default that is not possible, but via this simple line of CSS you'll have the same thumbnail heights.

    .grid-blog .post-thumbnail img {
        max-height: 240px;
    }

    Feel free to ask for anything you need.

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.