Skip to content

Commit 42710cb

Browse files
authored
Merge pull request #121 from MachoThemes/master
Jetpack infinite scroll does not work with theme #119
2 parents b77d35b + 1974b88 commit 42710cb

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

inc/jetpack.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ function activello_jetpack_setup() {
1515
'type' => 'click',
1616
'container' => 'main',
1717
'footer' => 'page',
18+
'render' => 'activello_jetpack_post_template',
1819
) );
1920
}
2021
add_action( 'after_setup_theme', 'activello_jetpack_setup' );
22+
23+
function activello_jetpack_post_template(){
24+
while( have_posts() ) {
25+
the_post();
26+
get_template_part( 'template-parts/content' );
27+
}
28+
29+
}

style.css

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Theme URI: https://colorlib.com/wp/themes/activello/
44
Author: Colorlib
55
Author URI: http://colorlib.com
66
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.
7-
Version: 1.3.5
7+
Version: 1.3.6
88
License: GNU General Public License v3 or later
99
License URI: http://www.gnu.org/licenses/gpl-3.0.html
1010
Text Domain: activello
@@ -908,10 +908,6 @@ ul.children, ul.children li {
908908
border: 1px solid #DADADA;
909909
background: #fff;
910910
color: #a161bf;
911-
-webkit-transition: all 0.5s;
912-
-moz-transition: all 0.5s;
913-
-o-transition: all 0.5s;
914-
transition: all 0.5s;
915911
}
916912
#infinite-handle span:hover {
917913
background-color: #a161bf;
@@ -1840,3 +1836,10 @@ p.logged-in-as {
18401836
.full-width {
18411837
width: 100%;
18421838
}
1839+
1840+
/* Infinite Scroll */
1841+
.infinite-wrap:after {
1842+
content: "";
1843+
display: block;
1844+
clear: both;
1845+
}

0 commit comments

Comments
 (0)