- This topic has 7 replies, 2 voices, and was last updated 5 years, 5 months ago by
Tom.
-
AuthorPosts
-
September 10, 2015 at 10:42 am #135874
stardrive
Hello Tom,
Please, I noticed that whenever I enable Masonry for the blog page, the Masonry blog is displayed correctly but WP-PageNavi control does not display. (I am OK with this if this is the way you made it to be).
Also, when i insert the code, <?php if(function_exists(‘the_ratings’)) { the_ratings(); } ?> , for WP-PostRatings into index.php file, I noticed that the Masonry blog is not displayed correctly.
Regards,
Stardrive
September 10, 2015 at 9:47 pm #135948Tom
Lead DeveloperLead DeveloperHi there,
When masonry is enabled, all page navigation is hidden and the More button is displayed to load more posts. You can use CSS to show the page navigation/hide the more button if needed.
As for the ratings code – it probably has to do with where you’re inserting it into index.php. It most likely shouldn’t go in there – you’ll want to place it in GP Hooks.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 11, 2015 at 2:35 am #135982stardrive
Hello Tom,
I am OK with the page navigation being hidden and the More button being displayed.
Please, where in GP Hooks should I place the WP-PostRatings code?
Regards,
Stardrive
September 11, 2015 at 9:07 am #136055Tom
Lead DeveloperLead DeveloperIt depends on where you want it. Try out some of the hooks to see the placement.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 11, 2015 at 12:06 pm #136090stardrive
Thank you.
I want the post ratings to appear for each post (just below the post meta) in the post archive page
Regards,
Stardrive
September 11, 2015 at 10:57 pm #136164Tom
Lead DeveloperLead DeveloperTry it in the “After Entry Title” hook.
You can also wrap it in this conditional to target the archives:
<?php if ( is_archive() ) : ?> Stuff in here <?php endif; ?>
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 12, 2015 at 7:43 am #136242stardrive
Hello Tom,
Thank you so much.
I placed the code below in the “After Entry Title” hook.
<?php if ( is_archive() ) : ?>
<?php if(function_exists(‘the_ratings’)) { the_ratings(); } ?>
<?php endif; ?>The WP-PostRatings is now showing below the Post Title.
But, initially, it was showing only in the post categories pages; it was not showing in the Blog page. So, I also added this code in the “After Entry Title” hook.
<?php if( is_home() ):?>
<?php if(function_exists(‘the_ratings’)) { the_ratings(); } ?>
<?php endif;?>The WP-PostRatings is now showing below the Post Title in both the Blog page and the post categories pages
Regards,
Stardrive
September 12, 2015 at 9:24 am #136278Tom
Lead DeveloperLead DeveloperPerfect 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.