infinite-scroll for 2 fixed height containers
infinite-scroll for 2 fixed height containers
infinite-scroll for 2 fixed height containers
Well, this was about half my fault half Jetpacks’. WordPress in general defaults to non protocol-relative URLs (eg http:// not //) and the problem was an explicit http:// image I used Jetpack to insert into my sidebar. Moving that to a protocol-relative // cleared up the mixed content problem. In general keep an eye out … Read more
The nature of $content_width is not to be responsive, there is just nothing you can do to it on wordpress side that will change that. For example it is the width that youtube videos will get when they are embedded and the canculation is done only once and will not be redone again unless you … Read more
Adding character count and limit in comments, modifying labels and fields – jetpack
I added the render and this is the full code. function mytheme_infinite_scroll_init() { add_theme_support( ‘infinite-scroll’, array( ‘container’ => ‘content’, ‘render’ => ‘mytheme_infinite_scroll_render’, ‘container’ => ‘content’, ‘posts_per_page’ => 2, ) ); } function mytheme_infinite_scroll_render() { while( have_posts() ) { the_post(); get_template_part( ‘template-parts/content’, get_post_format() ); } } add_action( ‘init’, ‘mytheme_infinite_scroll_init’ ); you may find a problem that … Read more
Jetpack post types Portfolio or Testimonials support for custom fields?
Changing sort order for presentation by Jetpack infinite scroll
The problem lies in the ‘container’ => ‘content’. The container parameter is the core of adding infinite scroll to your theme: it specifies the ID of the HTML element to which infinite scroll should add additional posts to. You need to add ID ( for example: product-wrapper ) to products wrapping element which is going … Read more
Hook into Jetpacks Publicize without using a post type
The the end the solution was to turn on Jetpack in development mode which allowed me to turn photon/ site-accelerator off. My site had a period in the name http://mh.local, so it was necessary to add [const JETPACK_DEV_DEBUG = TRUE][1]; to my wp-config file before I could turn Jetpack on.