-
Author
-
March 16, 2015 at 11:21 #50263statusselectParticipant
How do I make KLEO work with JetPack Infinite Scroll? Here are the generic instructions, but I can’t seem to figure it out with KLEO. Please advise 🙂 http://jetpack.me/support/infinite-scroll/
March 17, 2015 at 19:10 #50538LauraModeratorHello, what type of layout for posts? Masonry, thumb, normal?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
March 17, 2015 at 20:34 #50559statusselectParticipantNormal, I think? Basically what I want to achieve is infinite scroll inside of an article the way it does on http://www.forbes.com/ where you click on an article, and then you can just keep scrolling to summon new articles.
March 19, 2015 at 02:20 #50784statusselectParticipantP.S. I do use Masonry view on the template, but I want infinity scroll inside the post. (Incase I was unclear in my last post)
March 23, 2015 at 22:25 #51267LauraModeratorHello, i saw this plugin working very good with the theme
http://codecanyon.net/item/animate-lazy-load-wordpress-plugin/9315381As for now the infinite scroll code is not finished… maybe another plugin can help
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
April 6, 2015 at 14:43 #53382renemusicParticipantI have bought the animate lazy load plugin, but it does not work with the masonry view posts and it also does not work smoothly in woocommerce. The first products on the page have a white colored thumbnail. While scrolling further down the woocommerce page, they appear smoothly.
I have checked there documentation, but i cannot seem to figure it out. Any ideas?They only mention this in the documentation for custom templates:
//Example : 1
$html = ‘‘;
$html .= ‘<p>animate lazy load image</p>’;
$html .= ‘‘;
$html = apply_filters( ‘animate_lazy_load_html’, $html );
echo $html;//Example : 2
$page_id = 1;
$page_data = get_page( $page_id );
echo ‘<h3>’. $page_data->post_title .'</h3>’;
echo apply_filters(‘the_content’, $page_data->post_content);//Example : 3
$content = apply_filters( ‘the_content’, get_the_content() );
$content = str_replace( ‘]]>;’, ‘]]&>’, $content );
echo $content;April 8, 2015 at 03:53 #53626LauraModeratorHello, right now there isnt a good integration but maybe in a future update it can be added, you could also hire a developer to check it out for you. I still suggest to use lazy load plugin because it increases the load speed of your website
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
May 31, 2015 at 04:34 #60617fanartixParticipantyou have to put id=”content” inside kleo’s index.php (in a div next to line 104, before the loop) and put this on kleo’s functions.php:
add_theme_support( ‘infinite-scroll’, array(
‘type’ => ‘scroll’,
‘footer_widgets’ => true,
‘container’ => ‘content’,
‘wrapper’ => true,
‘render’ => ‘kleo_render_infinite_scroll’,
‘posts_per_page’ => false
) );function kleo_render_infinite_scroll() {
while ( have_posts() ) : the_post();/*
* Include the post format-specific template for the content. If you want to
* use this in a child theme, then include a file called called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
?>
<?php
if ( $blog_type != ‘standard’ ) :
get_template_part( ‘page-parts/post-content-‘ . $blog_type );
else:
get_template_part( ‘content’, get_post_format() );
endif;endwhile;
}May 31, 2015 at 19:05 #60639renemusicParticipantThank you for the input fanartix! I tried the above solution edited the div and placed the other code in functions.php.
the infinite scroll seems not to be triggered and maybe i am doing something wrong.
Is this the right way in index.php?COPY CODE<?php if ($blog_type == 'masonry') : ?> <div id="content" class="row responsive-cols kleo-masonry per-row-<?php echo sq_option( 'blog_columns', 3 );?>"> <?php endif; ?>
May 31, 2015 at 20:02 #60641fanartixParticipantIt looks right… I forgot to mension I commented kleo_pagination(); on index.php. It works here…
May 31, 2015 at 20:13 #60642fanartixParticipantyou checked the infinite scroll option in jetpack configurations, right? don’t know what else could you be doing wrong. Just checking: the functions you put inside php tags, right? <?php put_functions_here ?>
May 31, 2015 at 22:51 #60643renemusicParticipantThank you fanartix for your reply,
I have double checked it and the jetpack with infinite sroll is activated.
index.php is adjusted as above and i have commented out kleo pagination as you suggested, but still no luck
To be sure, can you copy paste your code using the code tag in this post another time?May 31, 2015 at 22:58 #60644fanartixParticipantCOPY CODE<?php add_theme_support( 'infinite-scroll', array( 'type' => 'scroll', 'footer_widgets' => true, 'container' => 'content', 'wrapper' => true, 'render' => 'kleo_render_infinite_scroll', 'posts_per_page' => false ) ); function kleo_render_infinite_scroll() { while ( have_posts() ) : the_post(); /* * Include the post format-specific template for the content. If you want to * use this in a child theme, then include a file called called content-___.php * (where ___ is the post format) and that will be used instead. */ ?> <?php if ( $blog_type != 'standard' ) : get_template_part( 'page-parts/post-content-' . $blog_type ); else: get_template_part( 'content', get_post_format() ); endif; endwhile; } ?>
June 1, 2015 at 01:07 #60645fanartixParticipantthere were 2 wrong things in the code:
1)try to change
type' => 'scroll',
for
type' => 'click',
and place a comma after
'posts_per_page' => false
and take a look at jetpack otions max posts per page. I noticed that if you let as default (10) it does’nt show all page content. So it might be better to uncomment kleo paginatin to avoid problems.
June 1, 2015 at 10:49 #60656renemusicParticipantNo luck yet on my theme with the above solution from Fanartix. Has anyone tried this as well?
June 1, 2015 at 19:34 #60685renemusicParticipantAn infinite scroll would be such a great option to be integrated in the KLEO theme:-)
KLEO already has the wishlist from Yith included. maybe it is a good idea to also inlcude the infinite scroll from them.
I just tried the infinite scroll from Yith and it works half. Content is loaded but content is empty / white -
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.