-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
68 additions
and
161 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,45 @@ | ||
<?php | ||
// Enqueue child theme css | ||
function my_theme_enqueue_styles() { | ||
|
||
$parent_style = 'shapely-style'; | ||
$parent_style = 'shapely-style'; | ||
|
||
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css'); | ||
wp_enqueue_style( 'child-style', | ||
get_stylesheet_directory_uri() . '/style.css', | ||
array( $parent_style ), | ||
wp_get_theme()->get('Version') | ||
); | ||
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css'); | ||
wp_enqueue_style( 'child-style', | ||
get_stylesheet_directory_uri() . '/style.css', | ||
array( $parent_style ), | ||
wp_get_theme()->get('Version') | ||
); | ||
} | ||
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); | ||
|
||
// No admin bar on top | ||
show_admin_bar( false ); | ||
|
||
?> | ||
/** | ||
* Removed author tag from posts | ||
* Prints HTML with meta information for the current post-date/time and author. | ||
*/ | ||
function shapely_posted_on_no_cat() { | ||
$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>'; | ||
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { | ||
$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>'; | ||
} | ||
|
||
$time_string = sprintf( $time_string, | ||
esc_attr( get_the_date( 'c' ) ), | ||
esc_html( get_the_date() ), | ||
esc_attr( get_the_modified_date( 'c' ) ), | ||
esc_html( get_the_modified_date() ) | ||
); ?> | ||
|
||
<ul class="post-meta"> | ||
<li><span class="posted-on"><?php echo $time_string; ?></span></li> | ||
<!-- <li><span><?php echo esc_html__( 'by', 'shapely' ); ?> <a | ||
href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" | ||
title="<?php echo esc_attr( get_the_author() ); ?>"><?php esc_html( the_author() ); ?></a></span> | ||
</li> --> | ||
</ul><?php | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters