Centering Page and Post titles

Home Forums WordPress Theme Support BfastMag Pro Centering Page and Post titles

This topic contains 2 replies, has 2 voices, and was last updated by  vchum 6 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8806

    vchum
    Member

    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>’,
    ) );
    ?>

    #8811

    Raja CRN
    Keymaster

    Hello,

    Yes, You can do that like this. Looks like You are completely customizing the theme. Better hire WP Customization service persons, if you don’t know how to customize it.

    Thanks.

    #8814

    vchum
    Member

    Not trying to customize the theme…just trying to adjust little things, as you update versions.

Viewing 3 posts - 1 through 3 (of 3 total)

Only Verified Customer of this Theme Can post reply to this Support Topic! .