You need to add the callback function in the argument list as part of the function call, rather than as part of the argument object:
jQuery( infinite_scroll.contentSelector ).infinitescroll(
infinite_scroll,
function(){ addLazyLoad() }
);
You can remove the function(){ addLazyLoad()}
that’s part of the infinite_scroll
object (after "contentSelector":"#content #main"
); it’s not going to do anything.
Related Posts:
- How to add infinite scroll?
- Infinite scroll without plugin using ajax
- Jetpack Infinite Scroll Not Working
- How Do I Protect My Premium WordPress App Theme from Copying?
- When to use _e and __ for the translation?
- Get entered value of customiser field for live preview
- With WordPress themes, where do I store the images and files relatively?
- How to Include SVG sprites icons into the body tag? [closed]
- Why doesn’t /2013/01/ properly return January’s archives in archive.php?
- Excess White Space Above Admin Bar on Frontend Using Twitter Bootstrap
- Child Theme not loading parent CSS
- WordPress settings API error when checkbox unchecked
- How the WordPress sidebar works
- two tinyMCE editors in the same page
- How to remove header images from all pages except the home page? skeleton theme
- Replace Home with image link inside custom header menu
- Separated Comment from Post
- WordPress website loads but is not displayed until page scrolled
- wp_head() not inserting the default stylesheet style.css
- Theme Customizer not loading
- WordPress Customizer Control with React
- how to set more than one menus to the same theme location
- Override Constants in Child theme
- How do I update WooCommerce template files in my theme? [closed]
- Add tinymce to widget textareas
- Custom Nav Walker to show siblings and children of current branch?
- What is the best way to handle multiple calls to get_template_directory_uri() and similar functions?
- Child themes: disabling the parent
- Is there a filter for enqueue script to strip the type=”text/javascript” property
- trying to use wp_handle_upload with ajax
- Fancy-box Esay wordpress plugin fails to work on Multilingual site
- Add new panel inside parent panel in WP Customize?
- Should I use function_exists() and/or add_action() in theme development?
- Bold letters inside excerpt [closed]
- How to add field customizable by the theme editor to your theme?
- Translation Issue with WordPress Theme Check in comment_form function
- How to Add Custom Button to Text(HTML) Editor and NOT Visual Editor
- Custom Nav Walker Trouble
- How to get javascript slider to work! [closed]
- Dropdown filter by custom field
- Reactor Theme: Prevent Post Thumb on Post
- How to make permalinks update from code?
- How to properly create a child theme
- How can I tell what category I’m in?
- Syntax error potentially causing CSS catastrophic failure
- Custom WordPress File Inclusion
- Redirect to another page using contact form 7? [closed]
- WordPress 3.8 Backend Admin Color Scheme add more scheme how to do?
- How to change the theme directory uri for localhost?
- How To Pick Custom Size Of Uploaded Image In Theme Via the_post_thumbnail();?
- Take control of WordPress before functions.php
- Why in the static pages of my theme are showing these information?
- featured content: which area does this cover [closed]
- How to count posts of a category and of a category limited by a tag
- Which cache is kicking
- How do I merge 2 WordPress Themes?
- Fastest way to update a theme
- Load different single.php templates according to post layout selection
- Full width featured thumbnail
- Is there a way to switch to another theme?
- Right procedure when you develop a WP Website for a client
- Different themes on one site
- // File Security Check from WooCommerce [duplicate]
- Allow different tags in widget titles
- Site returns a 500 Internal server error
- Switch theme if ie compatibility/quirks mode?
- Pagination and multiple loops
- Does wordpress add their own classes into nav menus?
- Changing background color depending on parent page?
- Any way to change/add to the theme name dynamically?
- Available widgets is not showing up?
- Getting white screen of death on category pages because of body_class() function
- WordPress link to another page in site does not render a
- Developing WordPress site behind a static site
- Problem with Displaying Custom Theme Page’s Content
- Code showing in wordpress post titles around website
- Git ignore everything except custom theme directory
- HTML to → WP Conversion
- Add multiple sections, settings and controls at once to the Customizer
- Font not loading [closed]
- How to change parent permalink?
- how to call options on front end and add logo
- Adding a Class to an Getting From Post Content
- Editable screenshot.png in a custom theme developed
- How to create multiple pages in a client theme?
- How to share posts (and plugins) between existing site and new, separate dev/test installation?
- get_theme_mod not pulling css colors into header using wp_head
- Duplicate WordPress site to subdirectory but use same db?
- Menu order of parent menu from perspective of child menu
- Conditional loop based on current page
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- wp_deregister_script was called incorrectly
- Undefined index: debuging error for theme option template snippet
- custom theme’s search not working
- Permalinks problem with custom theme
- Purchased Theme to Custom Made Theme? [closed]
- How to send async emails in wordpress?
- ways to create customized theme (hard coded – no pagebuilder)
- Can’t select my block by clicking on it on apiVersion – but using blockProps
- Webpack does not create or update index.asset.php file in build folder