• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Center h tags

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Center h tags

This topic is: not resolved

Tagged: css

  • This topic has 3 replies, 2 voices, and was last updated 13 years ago by brankica.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • June 22, 2013 at 3:17 pm #47214
    brankica
    Member

    I am wondering how to center the H2 h3 and h4 in a post/page. They are all left aligned by default.

    June 22, 2013 at 3:39 pm #47219
    Chris Cree
    Participant

    It would help folks give you good advice if you posted a link to the site you are asking about.

    But based on the default Genesis CSS this should get you moving in the right direction.

    h1,
    .entry-title,
    .entry-title a {
         text-align: left;
    }
    h2,
    h3,
    h4 {
         text-align: center;
    }
    June 22, 2013 at 7:28 pm #47243
    brankica
    Member

    Hey Chris,
    the site isn't live, and I am working with default Genesis CSS so your answer not only work but is greatly appreciated 🙂

    Do I need this part at all?

    h1,
    .entry-title,
    .entry-title a {
         text-align: left;
    }

    or can I use just the second part (since it centers the three H tags I wanted to center)

    June 22, 2013 at 8:35 pm #47252
    brankica
    Member

    Sorry, I saw what each one of them does, so thanks, I get it 🙂

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble