[Resolved] Disable Masonry Load more

Home Forums Support [Resolved] Disable Masonry Load more

Home Forums Support Disable Masonry Load more

  • This topic has 13 replies, 2 voices, and was last updated 9 years ago by Eugene Dvornikov.
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #95024
    Eugene Dvornikov

    Hi!

    I can’t understand how I can disable “Load more” button at the bottom of the masonry posts, I don’t need this one. And when I click this button it load 5 same posts! πŸ™

    Here is the blog http://potokmedia.ru/

    Thank you!

    #95108
    Tom
    Lead Developer
    Lead Developer

    That is very odd.. It should only display if there’s more than one page (with different posts).

    You can hide it using this CSS:

    .masonry-load-more {
          display: none;
    }
    #95112
    Eugene Dvornikov

    oh, thank you, Tom!! its disabled now.

    And can I ask u two more question?

    1. How to update addons? I have GenerateBlog 1.2.4, but i saw in comments that here is 1.2.5 already. I have ‘Super Package’ and verified e-mail.

    2. Is it posible to use Masonry on main blog page, but in category’ Archives disable it? Now I have it at main – http://potokmedia.ru/
    and in cat archives – http://potokmedia.ru/category/news/economy/ – here i need simple posts display.

    Thank you!

    #95572
    Tom
    Lead Developer
    Lead Developer

    1. 1.2.4 is the latest – next version coming soon.

    2. This will be possible in the upcoming update: http://generatepress.com/forums/topic/disable-masonry-for-other-content-types/#post-84372

    The new updates are coming, they’ve just been delayed. Wanting to release our next add-on with it has delayed it considerably, but we’re coming to the finish line πŸ™‚

    #95591
    Eugene Dvornikov

    Great! Thank you, Tom! πŸ˜‰

    #97603
    Eugene Dvornikov

    So, I’ve got the update and tried to enable masonry only on home page, but after this code insertion http://generatepress.com/forums/topic/disable-masonry-for-other-content-types/#post-84372 masonry just disables everywhere in blog. Could you help, pls?

    #97684
    Tom
    Lead Developer
    Lead Developer

    To enable masonry only on the homepage:

    1. Disable Masonry in the Customizer.
    2. Add this code:

    add_filter('generate_blog_masonry','generate_blog_enable_blog_masonry_homepage');
    function generate_blog_enable_blog_masonry_homepage()
    {
            // If we're on the posts page, enable masonry
    	if ( is_home() )
    		return 'true';
    	
            // Otherwise, disable it
    	return 'false';
    }

    That should do it.

    Let me know πŸ™‚

    #97741
    Eugene Dvornikov

    I guess I’m too stupid… Should I add this code in Generate Blog plugin? In which of files? bcuz nothing happens…

    #97763
    Tom
    Lead Developer
    Lead Developer

    You can add that code to your child theme’s functions.php file, or you can use a plugin like this: https://wordpress.org/plugins/code-snippets/

    Let me know if you need more info πŸ™‚

    #97770
    Eugene Dvornikov

    No effect πŸ™ Or i can’t get something.. I disabled masonry, then tried to add the code both ways – in child’s function.php or in snippet. But anyway the homepage is a list of posts, not masonry. http://potokmedia.ru/

    #97783
    Tom
    Lead Developer
    Lead Developer

    Are you using GP Premium 1.2.1/Generate Blog 1.2.5?

    #97851
    Eugene Dvornikov

    Generated Press 1.2.9.2/Generate Blog 1.2.5, child theme ForeFront (maybe its not premium, i ordered Super Package of add-ons, not Premium Package).

    #97864
    Tom
    Lead Developer
    Lead Developer

    Can you possibly email me temporary admin login details to support@generatepress.com so I can take a look at the code?

    Let me know πŸ™‚

    #97869
    Eugene Dvornikov

    Sure.

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.