admin管理员组文章数量:1025535
I'm trying to remove the infinite-wrap class jetpack adds to posts with infinite scroll turned on because I want to add infinitely loaded posts to a gridded layout.
I found the article here that says to add the theme support stuff to the functions.php :/
I ended up adding
add_theme_support( 'infinite-scroll', array(
'wrapper' => false,
) );
The weird thing is this has no effect. I have jetpack installed as a plugin and turned on infinite scroll the the settings in the dashboard. Am I doing something wrong? This seems like it should be easy...
I'm trying to remove the infinite-wrap class jetpack adds to posts with infinite scroll turned on because I want to add infinitely loaded posts to a gridded layout.
I found the article here that says to add the theme support stuff to the functions.php :https://trickspanda/customize-jetpack-infinite-scroll/
I ended up adding
add_theme_support( 'infinite-scroll', array(
'wrapper' => false,
) );
The weird thing is this has no effect. I have jetpack installed as a plugin and turned on infinite scroll the the settings in the dashboard. Am I doing something wrong? This seems like it should be easy...
Share Improve this question asked Apr 1, 2019 at 17:31 Garrett ScafaniGarrett Scafani 731 silver badge6 bronze badges 02 Answers
Reset to default 1What if you remove the existing infinite-scroll before re-add it?
remove_theme_support( 'infinite-scroll' );
add_theme_support(
'infinite-scroll',
array(
'wrapper' => false,
)
);
Since I was using the underscores.me theme, I had to look in the 'inc' folder for the jetpack.php file. There is where I had to change the options to get the desired effect.
I'm trying to remove the infinite-wrap class jetpack adds to posts with infinite scroll turned on because I want to add infinitely loaded posts to a gridded layout.
I found the article here that says to add the theme support stuff to the functions.php :/
I ended up adding
add_theme_support( 'infinite-scroll', array(
'wrapper' => false,
) );
The weird thing is this has no effect. I have jetpack installed as a plugin and turned on infinite scroll the the settings in the dashboard. Am I doing something wrong? This seems like it should be easy...
I'm trying to remove the infinite-wrap class jetpack adds to posts with infinite scroll turned on because I want to add infinitely loaded posts to a gridded layout.
I found the article here that says to add the theme support stuff to the functions.php :https://trickspanda/customize-jetpack-infinite-scroll/
I ended up adding
add_theme_support( 'infinite-scroll', array(
'wrapper' => false,
) );
The weird thing is this has no effect. I have jetpack installed as a plugin and turned on infinite scroll the the settings in the dashboard. Am I doing something wrong? This seems like it should be easy...
Share Improve this question asked Apr 1, 2019 at 17:31 Garrett ScafaniGarrett Scafani 731 silver badge6 bronze badges 02 Answers
Reset to default 1What if you remove the existing infinite-scroll before re-add it?
remove_theme_support( 'infinite-scroll' );
add_theme_support(
'infinite-scroll',
array(
'wrapper' => false,
)
);
Since I was using the underscores.me theme, I had to look in the 'inc' folder for the jetpack.php file. There is where I had to change the options to get the desired effect.
本文标签: functionsRemove Jetpack infinitewrap
版权声明:本文标题:functions - Remove Jetpack infinite-wrap 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745634927a2160388.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论