Hide Jetpack for Contributor [closed]

This code will do the trick. Create a file, jetpack-hide.php (or another name of your choosing) and upload it to wp-content/mu-plugins (create that directory if it doesn’t exist). add_action( ‘jetpack_admin_menu’, ‘hide_jetpack_from_others’ ); function hide_jetpack_from_others() { if ( ! current_user_can( ‘administrator’ ) ) { remove_menu_page( ‘jetpack’ ); } } To re-enable JetPack for all users, simply … Read more

Does Jetpack conflicts with load_template()?

Does anyone know if Jetpack is caching pages/content Jetpack does not cache the contents of your posts and pages. Once I do disable Jetpack, it works as expected. This seems like a conflict between how your code filters the_content, and the way one of the Jetpack features uses the same filter. I would recommend that … Read more

Jetpack infinite scroll not working on twentysixteen custom theme

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 social icons in other places on site

If you don’t want to rely on Jetpack for font awesome you need to have the CSS files loaded. Best way (in my opinion) to do this is via the CDN. I use the following: // Add font awesome & bootstrap function awesome_css() { wp_enqueue_style(“fontawesome”, ‘https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css’); wp_enqueue_style(“bootstrap3”, ‘https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css’); } add_action( ‘wp_enqueue_scripts’, ‘awesome_css’ ); This goes … Read more

techhipbettruvabetnorabahisbahis forumutaraftarium24eduseduedusedueduseduedueduedusedu