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

Make the article-bottom widget area into an action #1131

Merged
merged 2 commits into from
Feb 10, 2016

Conversation

benlk
Copy link
Collaborator

@benlk benlk commented Feb 10, 2016

Changes

  • Replaces the article-bottom widget area call in the single one- and two-column templates with the action largo_post_bottom_widget_area
  • Adds new function largo_post_bottom_widget_area to output the article-bottom widget area, hooked on largo_post_bottom_widget_area. (Same name for function and action.)
  • Docs in docs/developers/hooksfilters.rst

Why

To make it easier to modify this area.

@benlk
Copy link
Collaborator Author

benlk commented Feb 10, 2016

Demo code for removing this area in a child theme:

/*
 * Remove the Largo default sidebar output.
 */
function rns_largo_remove_article_bottom_sidebar() {
    remove_action( 'largo_post_bottom_widget_area', 'largo_post_bottom_widget_area');
}
add_action( 'init', 'rns_largo_remove_article_bottom_sidebar', 99);

aschweigert added a commit that referenced this pull request Feb 10, 2016
Make the article-bottom widget area into an action
@aschweigert aschweigert merged commit ad78065 into develop Feb 10, 2016
@aschweigert aschweigert deleted the RNS-158-article-bottom-sidebar branch February 10, 2016 22:23
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

Successfully merging this pull request may close these issues.

2 participants