Archived topic
Disable Masonry Load more
13 replies · Started by Eugene Dvornikov on April 3, 2015
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!
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 :)
Great! Thank you, Tom! ;)
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?
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...
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 :)
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.