author link on article page
This commit is contained in:
parent
81d022f8e8
commit
1708916680
@ -10,6 +10,7 @@
|
|||||||
$post_id = get_the_ID();
|
$post_id = get_the_ID();
|
||||||
?>
|
?>
|
||||||
<h1 class="st-article__title"> <?php the_title(); ?> </h1>
|
<h1 class="st-article__title"> <?php the_title(); ?> </h1>
|
||||||
|
<a href="<?php echo get_author_posts_url( $post->post_author ); ?>" class="st-article-page__author-link">
|
||||||
<div class="st-article__author-box">
|
<div class="st-article__author-box">
|
||||||
<div class="st-article__author-name">
|
<div class="st-article__author-name">
|
||||||
<?php the_author() ?>
|
<?php the_author() ?>
|
||||||
@ -18,6 +19,7 @@
|
|||||||
<?php the_date() ?>
|
<?php the_date() ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</a>
|
||||||
<?php the_content(); ?>
|
<?php the_content(); ?>
|
||||||
<?php
|
<?php
|
||||||
if (function_exists('get_field')) {
|
if (function_exists('get_field')) {
|
||||||
|
@ -1148,6 +1148,15 @@ COMPONENTS
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.st-article-page__author-link {
|
||||||
|
text-decoration: none;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.st-article-page__author-link:hover {
|
||||||
|
color: #FFDB12;
|
||||||
|
}
|
||||||
|
|
||||||
.breadcrumbs li:first-child {
|
.breadcrumbs li:first-child {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user