imlitala
asked 7 years ago

How to put author name under the title?

5 Answers
DominicStaff
answered 7 years ago

Hi !

You can copy code following paste in file content-single.php / line 13

URL : http://imgur.com/J4Eo45B


<div class="author-info">
<div class="author-avatar">
</div><!-- .author-avatar -->
<div>
<h2><a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"><span>by <?php the_author_posts_link(); ?> </span>
</a></h2>
</div><!-- .author-description -->
</div><!-- .author-info -->
<?php endif; ?>

Next : login dashboard > theme option > add code following :


<style>

.author-description {

margin-top: -16px;

}

.author-description h2 span {

font-size: 16px;

font-weight: bold;

}

.author-description h2 a {

font-size: 20px;

}

</style>

Regards,

Dominic

imlitala
answered 7 years ago

thank you, but somehow the styling does not work, i pasted it into theme options. i want the title font to be a little bit smaller.

DominicStaff
answered 7 years ago

Hi !

please, you can submit your site. and username & password /login dashboard. (webmaster@designwall.com)

Regards,

Dominic

imlitala
answered 7 years ago

hello, i submit already to your Email

Regards and thanks!

Mario

DominicStaff
answered 7 years ago

Hi !

What are  you doing with code in file content-single.php.

Regards

imlitala
replied 7 years ago

Hi Dominic, i removed the link from Author name to author post page. but even before that the styles were not applied

imlitala
answered 7 years ago

ok, now it is applied. but i want to remove that link from the Author name.

DominicStaff
answered 7 years ago

Hi !

🙂 you can stop fix in the file, if you fix in the file, style our will not work. i can help you add styling.

imlitala
answered 7 years ago

Hi 🙂 Author name is now perfectly styled, thank you! but i need to remove the link from by and Author name.

 

 

 

DominicStaff
answered 7 years ago

Hi !

You can remove  code


<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> </a> 
imlitala
answered 7 years ago

Hi, now it is good, thank you! but i had to adjust a little:


<a href="<?php echo esc_url( get_author( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> </a> 

 
DominicStaff
answered 7 years ago

Hi !

🙂 thank you for choosing our products

Regards

imlitala
answered 7 years ago

Thank you for your support!

DominicStaff
answered 7 years ago

Hi !

I’m very  happy to help you.

Regards,

Dominic

 

Powered by DW Question & Answer Pro