Skip to content

Commit

Permalink
Merge pull request #121 from MachoThemes/master
Browse files Browse the repository at this point in the history
Jetpack infinite scroll does not work with theme #119
  • Loading branch information
giucu91 committed Aug 7, 2017
2 parents b77d35b + 1974b88 commit 42710cb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
9 changes: 9 additions & 0 deletions inc/jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ function activello_jetpack_setup() {
'type' => 'click',
'container' => 'main',
'footer' => 'page',
'render' => 'activello_jetpack_post_template',
) );
}
add_action( 'after_setup_theme', 'activello_jetpack_setup' );

function activello_jetpack_post_template(){
while( have_posts() ) {
the_post();
get_template_part( 'template-parts/content' );
}

}
13 changes: 8 additions & 5 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Theme URI: https://colorlib.com/wp/themes/activello/
Author: Colorlib
Author URI: http://colorlib.com
Description: Activello is a clean and minimal WordPress blog theme with premium look and feel well suited for food, fashion, travel, lifestyle, sports and any other awesome blogs. This theme features WooCommerce integration that allows you to create fully functional eCommerce website side by side with your blog. This theme has several customization options that are available WordPress Theme Customizer. Theme is also multilingual ready and translated in several languages. This awesome blog theme is also SEO friendly helping you to achieve the highest positions on Google. Activello is the only WordPress blog theme you will ever need.
Version: 1.3.5
Version: 1.3.6
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: activello
Expand Down Expand Up @@ -908,10 +908,6 @@ ul.children, ul.children li {
border: 1px solid #DADADA;
background: #fff;
color: #a161bf;
-webkit-transition: all 0.5s;
-moz-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
}
#infinite-handle span:hover {
background-color: #a161bf;
Expand Down Expand Up @@ -1840,3 +1836,10 @@ p.logged-in-as {
.full-width {
width: 100%;
}

/* Infinite Scroll */
.infinite-wrap:after {
content: "";
display: block;
clear: both;
}

0 comments on commit 42710cb

Please sign in to comment.