Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow unique style for each instance #78

Closed
billerickson opened this issue Nov 30, 2016 · 0 comments
Closed

Allow unique style for each instance #78

billerickson opened this issue Nov 30, 2016 · 0 comments

Comments

@billerickson
Copy link
Collaborator

Currently we have a site-wide style setting, used for every instance of the share buttons.

But in some cases you may want to use different styling based on the instance. For instance, above post, below post, and in sidebar.

We should add a $style parameter to the display() method here. If not provided, the site-wide setting will still be used.

We should also update the $locations array to include this setting. It will be blank by default (so site-wide is still used), but that will allow the style to be set using the ea_share_count_theme_locations filter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant