- This topic has 13 replies, 2 voices, and was last updated 8 years, 5 months ago by
Eugene Dvornikov.
-
AuthorPosts
-
April 3, 2015 at 3:39 pm #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!
April 3, 2015 at 10:43 pm #95108Tom
Lead DeveloperLead DeveloperThat 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; }
April 3, 2015 at 11:35 pm #95112Eugene 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!
April 4, 2015 at 4:40 pm #95572Tom
Lead DeveloperLead Developer1. 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 π
April 4, 2015 at 8:28 pm #95591Eugene Dvornikov
Great! Thank you, Tom! π
April 11, 2015 at 6:29 am #97603Eugene 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?
April 11, 2015 at 8:45 am #97684Tom
Lead DeveloperLead DeveloperTo 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 π
April 11, 2015 at 10:54 am #97741Eugene Dvornikov
I guess I’m too stupid… Should I add this code in Generate Blog plugin? In which of files? bcuz nothing happens…
April 11, 2015 at 12:06 pm #97763Tom
Lead DeveloperLead DeveloperYou 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 π
April 11, 2015 at 12:35 pm #97770Eugene 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/
April 11, 2015 at 12:45 pm #97783Tom
Lead DeveloperLead DeveloperAre you using GP Premium 1.2.1/Generate Blog 1.2.5?
April 11, 2015 at 7:28 pm #97851Eugene 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).
April 11, 2015 at 10:27 pm #97864Tom
Lead DeveloperLead DeveloperCan you possibly email me temporary admin login details to support@generatepress.com so I can take a look at the code?
Let me know π
April 11, 2015 at 11:23 pm #97869Eugene Dvornikov
Sure.
-
AuthorPosts
- You must be logged in to reply to this topic.