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

Introducing Hooks for content header and footer #24

Open
felixarntz opened this issue Jan 24, 2014 · 1 comment
Open

Introducing Hooks for content header and footer #24

felixarntz opened this issue Jan 24, 2014 · 1 comment

Comments

@felixarntz
Copy link

THA currently includes four tha_entry_* hooks. What would you think of adding hooks for entry header, content and footer? For example when using HTML5 markup, I could have an <article>, and inside that a <header>, a <section class="content"> and a <footer>. I would propose six additional hooks:

  • tha_entry_header_before
  • tha_entry_header_after
  • tha_entry_content_before
  • tha_entry_content_after
  • tha_entry_footer_before
  • tha_entry_footer_after

In the theme I'm currently developing (Schemata) I named these a little differently: I have schemata_article_before (which is basically like tha_entry_before, schemata_article_header_before, schemata_article_content_before and schemata_article_footer_before, and of course the same for *_after (I do not use *_top and *_bottom at the moment, but I would definitely like to adjust things, however I need six hooks like the above in my theme).

I'm curious about your opinions.

@robneu
Copy link
Contributor

robneu commented Mar 24, 2015

+1 to adding some additional hooks within the entry content. Genesis has these hooks and I've found them to be pretty useful for adding and removing conditional content in the past.

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

2 participants