Is there a way to easily center post and page titles? I’ve found the following code
.single-article .post header, .page-header {
text-align: center;
}
but when I added it to the CSS box in Live Customization, it didn’t do anything, and I can’t find the matching entry in CSS and I suspect it may be in another file. Do I need to change CSS or the content-page.php…here:
?>
<article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
<header class=”entry-header”>
<?php the_title( ‘<h1 class=”entry-title”>’, ‘</h1>’ ); ?>
</header><!– .entry-header –>
<?php if ( has_post_thumbnail() ) { ?>
<div class=”tp-post-thumbnail”>
<figure>
<?php the_post_thumbnail(); ?>
</figure>
</div><!– End .tp-post-thumbnail –>
<?php
}?>
<div class=”entry-content”>
<?php the_content(); ?>
<?php
wp_link_pages( array(
‘before’ => ‘<div class=”page-links”>’ . esc_html__( ‘Pages:’, ‘bfastmag-pro’ ),
‘after’ => ‘</div>’,
) );
?>