How can I get the Jetpack Image plugin to open links in a new window? [closed]

There is no hook available in the plugin. One solution is to simply copy this Jetpack Widget and add the target option. Another is through jQuery, in the file /theme/functions.php: add_action( ‘wp_enqueue_scripts’, ‘jetpack_widget_wpse_88067’ ); function jetpack_widget_wpse_88067() { wp_enqueue_script( ‘jetpack-hack’, get_stylesheet_directory_uri() . “/js/jethack.js”, array( ‘jquery’), // dependencies false, // version true // in footer ); } … Read more

Updating shortlinks from staging [closed]

There are 2 solutions to your problem: You can go to the Jetpack menu in your dashboard and disconnect, then reconnect to WordPress.com. It will force an update of your Jetpack settings. You can contact the Jetpack support team here: http://jetpack.me/contact-support/ They can update your Jetpack settings for you.

How to allow users to write jetpack custom post types? [closed]

No need to use Jetpack Post Types feature for that. Just use the following code to enable Jetpack Plublicize for any custom post type of your theme/plugin. Place it in functions.php: /** * Enable Jetpack Publicize Support for CPT * ————————————————————————– */ function wpse20150812_jetpack_publicize_support() { add_post_type_support( ‘mycpt’, ‘publicize’ ); } add_action(‘init’, ‘wpse20150812_jetpack_publicize_support’); Replace the mycpt … Read more

Jetpack Infinite Scroll – changing number of posts

Found the code that works here: https://themeshaper.com/2013/10/08/how-to-override-jetpack-infinite-scroll-settings-in-a-child-theme/ /* * Change the posts_per_page Infinite Scroll setting from 10 to 20 */ function my_theme_infinite_scroll_settings( $args ) { if ( is_array( $args ) ) $args[‘posts_per_page’] = 20; return $args; } add_filter( ‘infinite_scroll_settings’, ‘my_theme_infinite_scroll_settings’ );

Hiding Jetpack Ads from users who are signed in?

Your code should be the good one. You just have to use is_user_logged_in() into a hook instead of calling it directly, and probably to early. function wp_se_339916() { if ( is_user_logged_in() { add_filter( ‘wordads_excerpt_disable’, ‘__return_true’ ); add_filter( ‘wordads_content_disable’, ‘__return_true’ ); add_filter( ‘wordads_inpost_disable’, ‘__return_true’ ); add_filter( ‘wordads_header_disable’, ‘__return_true’ ); } } add_action( ‘template_redirect’, ‘wp_se_339916’ ); Using … Read more

techhipbettruvabetnorabahisbahis forumutaraftarium24edueduedueduedusedueduedueduedus