Change certain font styles in post
-
I am trying to edit the PHP file of a theme to change the font styles inside my post. I don’t want to change it in Appearance because it messes with other parts of the site.
I’d like to change the post headline to Arial Black.
I’d also like to change the byline, post date, comments number, and the post content to Times New Roman.
My original code is below. Thank you in advance for your help. I’ve been trying to do this for hours, but nothing I’m doing is working.
HERE IS MY HEADLINE/BYLINE/DATE/COMMENT CODE:
<h1><?php the_title(); ?></h1>
<div class=”author-detail”>
post_author ) ); ?>”>
<i class=”far fa-user”></i>
<?php echo “<b> By ” ?>
<?php echo esc_html( bizberg_get_display_name( $post ) ); ?>
<?php echo “</b>” ?><br>
/<?php echo esc_attr( date( ‘Y/m’ , strtotime( get_the_date() ) ) ); ?>”>
<i class=”far fa-clock”></i>
<?php echo esc_html( get_the_date() );?><br>
#respond”>
<i class=”far fa-comments”></i>
<?php echo absint( get_comments_number() ); ?>
</div>HERE IS MY CONTENT CODE:
<div class=”item-content”>
<div class=”col-sm-10 col-sm-offset-1″>
<div class=”item-wrapper” id=”content”>
<div class=”item-detail”>
<?php the_content(); ?>
</div>
<div class=”item-tags”>
<?php
if( has_tag() ){
echo ‘<div class=”tag-cloud-wrapper clearfix mb-40″>
<div class=”tag-cloud-heading”>’ . esc_html__( ‘Tags :’ , ‘bizberg’ ) . ‘ </div>
<div class=”tagcloud tags clearfix mt-5″>’;
the_tags(”,”,”);
echo ‘</div>
</div>’;
}
?>
</div>The blog I need help with is: (visible only to logged in users)
-
Hi there,
We are not able to assist with custom PHP code like this, but you can add it by accessing your SFTP connection here: https://wordpress.com/support/ftp-access/
Hope that helps. Please let us know if you have any more questions.
-
I forgot to mention that this is the support forum for our free sites, but your Business Yearly Plan upgrade includes priority live chat support that you can access 24 hours a day (except major holidays)
With this in mind you are encouraged to reach out to us here, and we can take a closer look at your issue in realtime. No need to wait for a reply in the forums: https://wordpress.com/help/contact
- The topic ‘Change certain font styles in post’ is closed to new replies.