• Hi!

    I just recently tried implementing a child theme. It seems to be working alright, except for the fact that it stops the infinite scroll from working. Infinite scroll is a part of the theme, enabled in customize, and worked just fine before I added the child theme. It seems to somewhat work when I enable numbered pages, but not even that works completely.

    This is my functions.php of the child theme:

    <?php
    add_action( 'wp_enqueue_scripts', 'blogito_parent_theme_enqueue_styles' );
    function blogito_parent_theme_enqueue_styles() {
        wp_enqueue_style( 'parent-styles', get_template_directory_uri() . '/style.css' );
        wp_enqueue_style( 'child-styles',
            get_stylesheet_directory_uri() . '/style.css',
            array( 'parent-styles' )
        );
    }
    

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Keep content.php out of a subfolder

    otherwise check for render function for jetpack.php

    • This reply was modified 6 years, 9 months ago by Pratik Kumar.
    Thread Starter annashili

    (@annashili)

    Thank you! There’s a render function in jetpack.php

    function blover_infinite_scroll_render() {
    		while ( have_posts() ) {
    			the_post();
    			get_template_part( 'template-parts/content-home', get_theme_mod( 'home_page_layout', 'classic' ) );
    			}
    }

    I don’t really know what this means or does though?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Child Theme not loading infinite scroll’ is closed to new replies.