Tagged: JetPack Toggle Comment Threads | Keyboard Shortcuts

  • Jay Versluis 9:58 am on November 21, 2015 Permalink | Reply
    Tags: JetPack,   

    Categories: WordPress ( 136 )

    How to display Jetpack stats per post in WordPress 

    Some websites employ this or similar technologies to show how many views a single post has had. I was wondering how they did that without starting to count stats that have already been counted for several years, either by Google or by Jetpack.

    Yesterday I came across this post by a WordPress dev named Topher about how to render Jetpack Stats: http://wpgr.org/2013/03/02/rendering-jetpack-stats/

    I decided to test this in TwentyThirteen, and it works a treat – here’s how to do it. The principle will of course work with any theme.

    (More …)





     
  • Jay Versluis 9:54 am on April 23, 2015 Permalink | Reply
    Tags: JetPack   

    Categories: WordPress ( 136 )

    What is the Prove your Humanity login feature in WordPress 

    Screen Shot 2015-04-21 at 08.31.32

    Some of my clients have recently noticed a new math question on their WordPress login screen. It prompts to Prove your humanity in addition to your user name and password.

    This feature was recently introduced in Jetpack as part of the Protect Feature, which prevents hackers from trying to gain access to your WordPress site via brute-force attacks. Prove your humanity means that bots have a hard time logging in. You can even see how many times Jetpack has prevented unsuccessful login attempts.

    To remove the math question you can whitelist your own IP so that Jetpack knows you’re logging in from a legitimate address. To do this, login to your admin interface and head over to Jetpack – Settings – find the Protect Feature and hit Configure. This brings up a window similar to the one below.

    Screen_Shot_2015-04-23_at_09_38_18

    You will see your current IP address. Add it to the list and click save – and you won’t see the additional math question again, provided you login from the same IP. Repeat the process and add additional IPs if needed. If you have multiple users on your team who all contribute to the site, ask them to provide their IP via http://whatsmyip.org or similar services.

    If you’ve been accidentally logged out can cannot gain access to WordPress anymore, you can add a single IP address to your wp-config.php file by defining the following constant:

    define('JETPACK_IP_ADDRESS_OK', '12.34.56.78');

    Replace 12.34.56.78 with your actual IP address (obviously).





     
  • Jay Versluis 6:30 pm on May 21, 2014 Permalink | Reply
    Tags: JetPack,   

    Categories: WordPress ( 136 )

    How to fix JetPack 3.0 Sharing Icons in P2 

    JetPack 3.0 was released yesterday and it had quite a facelift: a new menu structure, dozens of graphical tweaks and a new set of Social Icons for sharing your posts. Those work well out of the box in TwentyThirteen and TwentyFourteen – but not in P2. Here’s how we can fix the problem.

    First let me show you what we’re actually fixing here. In JetPack 2.9.3 and before the social sharing icons at the bottom of a post looked like this:

    Screen Shot 2014-05-21 at 18.04.23

    After you upgrade to JetPack 3.0, and if you’re running P2, then those icons are stacked up like this:

    Screen Shot 2014-05-21 at 18.06.49

    Not what we want, and not how it’s meant to be. What we really want is something like this – new icons, but in the same row as before:

    Screen Shot 2014-05-21 at 18.09.06

    And here’s how we can make this happen – with a hint of CSS:

    /* fix JetPack 3.0 Sharing Icons */
    .sd-content ul li {
        float: left;
    }
    

    I’ve only noticed this with P2 1.5.3 – but if you’re using a theme that causes the same problem, just add the above to the bottom of your theme’s style.css file, or add it to the “Edit CSS” box (under Appearance).

    It’s not a perfect solution, but certainly a compromise for the interim.

    Hope this helps 😉





     
    • Jay Versluis 1:14 pm on May 22, 2014 Permalink | Reply

      The Social Icons are meant to be displayed next to the “Share This” text of course – but I didn’t manage to make this happen yet in P2. Any improvements suggestions are welcome of course.

  • Jay Versluis 8:37 am on March 26, 2014 Permalink | Reply
    Tags: JetPack   

    Categories: WordPress ( 136 )

    How to remove the Jetpack admin menu from subscribers 

    JetPackThe Jetpack admin menu is visible to everybody, including subscribers. This may not be what you want. You may even want to hide it from other admins, perhaps once you’ve given a site over o a client and you don’t want him to switch off vital functionality by accident.

    Here’s how you can hide the Jetpack admin menu in your WordPress back end.

    Hide Jetpack from Non-Admins (including Subscribers)

    If you would like your admin users to see Jetpack and hide it from everyone else, add this to your theme’s function.php file:

    function pinkstone_remove_jetpack() {
    	if( class_exists( 'Jetpack' ) && !current_user_can( 'manage_options' ) ) {
    		remove_menu_page( 'jetpack' );
    	}
    }
    add_action( 'admin_init', 'pinkstone_remove_jetpack' );
    

    Here we test “is Jetpack actually running”, and if it is, “is this user an administrator”. If all signs point to yes then we’ll remove the menu page. You can replace “pinkstone” with another prefix of course.

    Feel free to change the user capabilities to something else if you’d like to make Jetpack visible to authors or editors. You can read more about those options here:
    https://codex.wordpress.org/Roles_and_Capabilities

    You can also achieve this functionality by installing a super small plugin courtesy of Jeremy Herve, lead author of Jetpack:
    http://wordpress.org/support/topic/how-do-i-disable-jetpack-from-subscribers

    Hide Jetpack from everybody

    Here we remove the check for capabilities altogether, hiding Jetpack from all users:

    function pinkstone_remove_jetpack() {
    	if( class_exists( 'Jetpack' ) ) {
    		remove_menu_page( 'jetpack' );
    	}
    }
    add_action( 'admin_init', 'pinkstone_remove_jetpack' );
    

    I have included this functionality in my Zen Dash plugin with the latest version 1.4, where you can now hide Jetpack from admins and other users at the flick of a switch (and bring it back just as easily):

    Have fun, and happy hacking 😉





     
  • Jay Versluis 7:59 pm on January 2, 2014 Permalink | Reply
    Tags: JetPack, Social Features   

    Categories: WordPress ( 136 )

    How to share your posts on Google Plus publicly via JetPack 

    g+128I’ve decided to start using Google Plus more in 2014. Thanks to JetPack 2.7 it’s a breeze to publish my posts on Google Plus without having to share them manually.

    What I’ve noticed though was that by default all my posts were appearing as “privately shared” only. As I’d like the widest audience possible I would really like them to be shared publicly. I can do this when I manually post to Google Plus (for example via a Share button, or via the Google Plus app).

    Help is of course at hand – it’s only a matter of setting the permissions correctly that WordPress has over my Google Plus account. Here’s how to change your settings:

    • sign in to your Google Plus account
    • head over to https://plus.google.com/apps
    • under Manage Apps, find WordPress (even if you have multiple websites connected via JetPack, you’ll only see one WordPress “app” connected
    • under “visible to”, click edit and select Public
    • that’s it

    Screen Shot 2014-01-02 at 19.49.11

    Note that this setting changes all your connected websites. So you can’t currently have one website that shares privately, and another that shares publicly. I suppose you could setup two different JetPack / WordPress.com accounts for this to create two separate connections…. but I’m speculating here.

    Thanks to Jeremy from the JetPack team for pointing me in the right direction!





     
    • Delhi Courses 3:49 am on September 4, 2015 Permalink | Reply

      Thanks for sharing such a nice article. I was wondering this kind of solution to publicize my content on Google plus.

      thanks…

c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
shift + esc
cancel