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

Edit / Change Jetpack Mobile Theme [closed]

I see 3 ways to edit Jetpack Mobile theme: 1. Use Jetpack’s Custom CSS module Jetpack includes a module named “Custom CSS” that allows you to add your own custom CSS without having to edit your theme stylesheet. The custom CSS editor (under Appearance > Edit CSS) also includes an option to include this custom … Read more

Cropping images from top center using Jetpack Photon

We discussed about this issue in the WordPress.org support forums. Here is a code that should do the trick: /* * Let’s add support for Photon – that won’t be necessary once Jetpack 2.3.2 is out. * You’ll be able to use apply_filters( ‘jetpack_photon_url’… directly * See http://jetpack.me/2013/07/11/photon-and-themes/ */ if( function_exists( ‘jetpack_photon_url’ ) ) { … 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

Change description of my Jetpack facebook shared links [closed]

This part comes from the function comment_form() which is called by your theme, probably in comments.php: ‘comment_notes_after’ => ‘<p class=”form-allowed-tags”>’ . sprintf( __( ‘You may use these <abbr title=”HyperText Markup Language”>HTML</abbr> tags and attributes: %s’ ), ‘ <code>’ . allowed_tags() . ‘</code>’ ) . ‘</p>’, You can filter it out with a simple plugin: <?php … Read more

Using Jetpack carousel w/o creating a gallery [closed]

Adding another better solution: This displays only the first image in a gallery, linked to launch the carousel. You would make that first image, and it’s caption, clearly indicate it as a link to a gallery. Give gallery an HTML ID: <div style=”display:none”> </div> Then add CSS: #gallery-link .tiled-gallery-item { display: none; } #gallery-link .tiled-gallery-item:first-child … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)