Site logo

Archived topic

Disable Masonry Load more

13 replies · Started by Eugene Dvornikov on April 3, 2015

Viewing posts 1–14 of 14

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!

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;
}

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!

Great! Thank you, Tom! ;)

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 :)

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

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/

Are you using GP Premium 1.2.1/Generate Blog 1.2.5?

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).

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 :)

Sure.

This archived topic is closed to new replies.