Help with font codes
-
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 page I need help with: [log in to see the link]
The topic ‘Help with font codes’ is closed to new replies.