Permalink
Browse files

Remove Jetpack Sharing enhancements

These enhancements are no longer necessary as the Jetpack sharing output
has improved since these were implemented. Any desired changes to the
Jetpack Sharing buttons should now be applied on a case-by-case basis
using a Child Theme.
  • Loading branch information...
raamdev committed Mar 3, 2017
1 parent 18826a9 commit f0aa17b7ce96242e76e3af1d43c6f4c214baeb01
Showing with 0 additions and 65 deletions.
  1. +0 −8 README.md
  2. +0 −21 css/jetpack-sharing-enhancements.css
  3. +0 −8 css/jetpack-sharing-label-enhancements.css
  4. +0 −28 inc/plugin-support.php
@@ -23,7 +23,6 @@ WordPress.com took the original Independent Publisher theme from WordPress.org a
* [How do I get the small logo to show up in the top-left corner?](https://github.com/raamdev/independent-publisher#how-do-i-get-the-small-logo-to-show-up-in-the-top-left-corner)
* [Why is my Author Bio and picture at the top of my home page (or below a blog post) and not on the side?](https://github.com/raamdev/independent-publisher#why-is-my-author-bio-and-picture-at-the-top-of-my-home-page-or-below-a-blog-post-and-not-on-the-side)
* [How do I add Social Media Buttons below the Logo?](https://github.com/raamdev/independent-publisher#how-do-i-add-social-media-buttons-below-the-logo)
* [How do I make the JetPack Sharing Buttons look better?](https://github.com/raamdev/independent-publisher#how-do-i-make-the-jetpack-sharing-buttons-look-better)
* [How do I make the Subscribe to Comments Reloaded Advanced Options look better?](https://github.com/raamdev/independent-publisher#how-do-i-make-the-subscribe-to-comments-reloaded-advanced-options-look-better)
* [How do I make MailChimp Signup Forms look better?](https://github.com/raamdev/independent-publisher#how-do-i-make-mailchimp-signup-forms-look-better)
* [How do I add an Archive Page?](https://github.com/raamdev/independent-publisher#how-do-i-add-an-archive-page)
@@ -158,13 +157,6 @@ After you're done, below in **Theme Locations** (located in the **Menu Settings*
![screen shot 2014-02-18 at 11 42 31 am](https://f.cloud.github.com/assets/5318719/2192202/dcd5a848-9861-11e3-8e96-85cc4cdee1cb.png)
### How do I make the JetPack Sharing Buttons look better?
If you clear the JetPack Sharing Buttons "Sharing label" field so that it's empty, Independent Publisher will force the sharing buttons to float right and will remove the right padding so that the buttons look nicer.
![4dc42092-83b9-11e3-96a3-8b9580f82f80](https://f.cloud.github.com/assets/53005/2000387/8c1796bc-8558-11e3-8ee4-0c4f9f4fbf2e.png)
### How do I make the Subscribe to Comments Reloaded Advanced Options look better?
Go to *Settings -> Subscribe to Comments -> Comment Form -> Custom HTML* and wrap the contents in a paragraph tag with the `comment-form-subscriptions` class. For example:

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -16,34 +16,6 @@
}
}
if ( !function_exists( 'independent_publisher_jetpack_sharing_css' ) ) :
/**
* Improves the style of JetPack Sharing Buttons when used with this theme
*/
function independent_publisher_jetpack_sharing_css() {
$sharedaddy_disable_resources = get_option( 'sharedaddy_disable_resources' );
if ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'sharedaddy' ) && isset( $sharedaddy_disable_resources ) && $sharedaddy_disable_resources !== "1" ) {
wp_enqueue_style( 'independent-publisher-jetpack-sharing-enhancements', get_template_directory_uri() . '/css/jetpack-sharing-enhancements.css', array(), '1.0' );
}
}
endif;
if ( !function_exists( 'independent_publisher_jetpack_sharing_label_css' ) ) :
/**
* When the JetPack Sharing Buttons "Sharing label" is blank, this floats the sharing
* buttons right instead of left and removes right padding to improve display.
*/
function independent_publisher_jetpack_sharing_label_css() {
$sharedaddy_options = get_option( 'sharing-options' );
if ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'sharedaddy' ) && isset( $sharedaddy_options['global']['sharing_label'] ) ) {
$sharedaddy_disable_resources = get_option( 'sharedaddy_disable_resources' );
if ( trim( $sharedaddy_options['global']['sharing_label'] ) === '' && $sharedaddy_options['global']['sharing_label'] !== false && ( !isset( $sharedaddy_disable_resources ) || $sharedaddy_disable_resources !== "1" ) ) {
wp_enqueue_style( 'independent-publisher-jetpack-sharing-label-enhancements', get_template_directory_uri() . '/css/jetpack-sharing-label-enhancements.css', array(), '1.0' );
}
}
}
endif;
if ( !function_exists( 'independent_publisher_jetpack_dark_overlay_fix_css' ) ) :
/**
* Fixes an issue with a dark overlay that appears < 800px when the Jetpack Infinite Scroll

1 comment on commit f0aa17b

@raamdev

This comment has been minimized.

Owner

raamdev commented on f0aa17b May 19, 2017

See also: 20d03f1

Please sign in to comment.