Skip to content

Commit f0aa17b

Browse files
committed
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.
1 parent 18826a9 commit f0aa17b

4 files changed

+0
-65
lines changed

README.md

-8
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ WordPress.com took the original Independent Publisher theme from WordPress.org a
2323
* [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)
2424
* [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)
2525
* [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)
26-
* [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)
2726
* [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)
2827
* [How do I make MailChimp Signup Forms look better?](https://github.com/raamdev/independent-publisher#how-do-i-make-mailchimp-signup-forms-look-better)
2928
* [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*
158157

159158
![screen shot 2014-02-18 at 11 42 31 am](https://f.cloud.github.com/assets/5318719/2192202/dcd5a848-9861-11e3-8e96-85cc4cdee1cb.png)
160159

161-
162-
### How do I make the JetPack Sharing Buttons look better?
163-
164-
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.
165-
166-
![4dc42092-83b9-11e3-96a3-8b9580f82f80](https://f.cloud.github.com/assets/53005/2000387/8c1796bc-8558-11e3-8ee4-0c4f9f4fbf2e.png)
167-
168160
### How do I make the Subscribe to Comments Reloaded Advanced Options look better?
169161

170162
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:

css/jetpack-sharing-enhancements.css

-21
This file was deleted.

css/jetpack-sharing-label-enhancements.css

-8
This file was deleted.

inc/plugin-support.php

-28
Original file line numberDiff line numberDiff line change
@@ -16,34 +16,6 @@
1616
}
1717
}
1818

19-
if ( !function_exists( 'independent_publisher_jetpack_sharing_css' ) ) :
20-
/**
21-
* Improves the style of JetPack Sharing Buttons when used with this theme
22-
*/
23-
function independent_publisher_jetpack_sharing_css() {
24-
$sharedaddy_disable_resources = get_option( 'sharedaddy_disable_resources' );
25-
if ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'sharedaddy' ) && isset( $sharedaddy_disable_resources ) && $sharedaddy_disable_resources !== "1" ) {
26-
wp_enqueue_style( 'independent-publisher-jetpack-sharing-enhancements', get_template_directory_uri() . '/css/jetpack-sharing-enhancements.css', array(), '1.0' );
27-
}
28-
}
29-
endif;
30-
31-
if ( !function_exists( 'independent_publisher_jetpack_sharing_label_css' ) ) :
32-
/**
33-
* When the JetPack Sharing Buttons "Sharing label" is blank, this floats the sharing
34-
* buttons right instead of left and removes right padding to improve display.
35-
*/
36-
function independent_publisher_jetpack_sharing_label_css() {
37-
$sharedaddy_options = get_option( 'sharing-options' );
38-
if ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'sharedaddy' ) && isset( $sharedaddy_options['global']['sharing_label'] ) ) {
39-
$sharedaddy_disable_resources = get_option( 'sharedaddy_disable_resources' );
40-
if ( trim( $sharedaddy_options['global']['sharing_label'] ) === '' && $sharedaddy_options['global']['sharing_label'] !== false && ( !isset( $sharedaddy_disable_resources ) || $sharedaddy_disable_resources !== "1" ) ) {
41-
wp_enqueue_style( 'independent-publisher-jetpack-sharing-label-enhancements', get_template_directory_uri() . '/css/jetpack-sharing-label-enhancements.css', array(), '1.0' );
42-
}
43-
}
44-
}
45-
endif;
46-
4719
if ( !function_exists( 'independent_publisher_jetpack_dark_overlay_fix_css' ) ) :
4820
/**
4921
* Fixes an issue with a dark overlay that appears < 800px when the Jetpack Infinite Scroll

0 commit comments

Comments
 (0)