_s: Add basic support for Content Options Post Details (#1131)
* _s: Add basic support for Content Options Post Details This allows us to always display the category and author since it can be hidden via Customizer -> Content Options We don’t need to check for `is_multi_author` or `_s_categorized_blog()` anymore.
This commit is contained in:
parent
69e08e1e5b
commit
d3ab4c0da4
5 changed files with 14 additions and 62 deletions
|
@ -12,6 +12,7 @@
|
|||
*
|
||||
* See: https://jetpack.com/support/infinite-scroll/
|
||||
* See: https://jetpack.com/support/responsive-videos/
|
||||
* See: https://jetpack.com/support/content-options/
|
||||
*/
|
||||
function _s_jetpack_setup() {
|
||||
// Add theme support for Infinite Scroll.
|
||||
|
@ -23,6 +24,18 @@ function _s_jetpack_setup() {
|
|||
|
||||
// Add theme support for Responsive Videos.
|
||||
add_theme_support( 'jetpack-responsive-videos' );
|
||||
|
||||
// Add theme support for Content Options.
|
||||
add_theme_support( 'jetpack-content-options', array(
|
||||
'post-details' => array(
|
||||
'stylesheet' => '_s-style',
|
||||
'date' => '.posted-on',
|
||||
'categories' => '.cat-links',
|
||||
'tags' => '.tags-links',
|
||||
'author' => '.byline',
|
||||
'comment' => '.comments-link',
|
||||
),
|
||||
) );
|
||||
}
|
||||
add_action( 'after_setup_theme', '_s_jetpack_setup' );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue