• 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

Move Header Right Text to Center

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 › Design Tips and Tricks › Move Header Right Text to Center

This topic is: not resolved
  • This topic has 2 replies, 2 voices, and was last updated 9 years, 3 months ago by defree99.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 26, 2013 at 11:56 pm #81361
    defree99
    Participant

    I'm using the education theme, and maybe there is a better way to do this.

    http://tinyurl.com/omynpsp

    I currently have the phone number in the Header Right Widget.

    But I need to put the phone number in the center of the header, under the company name.

    And it has to be text (not a graphic image), otherwise I would simply add it to the header image.

    Is there a way to place the phone number, in text, centered in the header?

    December 27, 2013 at 5:09 am #81376
    Brad Dalton
    Participant

    I would simply hook it in using PHP code in your functions file:

    function header_phone_number() {
        echo '<p class="phone">123 456 789</p>';
    }
    add_action('genesis_header', 'header_phone_number');
    

    And then use CSS to style it:

    .phone {
    text-align: center;
    font-family: Verdana;
    font-size: 19px;
    }
    

    Tutorials for StudioPress Themes.

    December 27, 2013 at 8:34 am #81395
    defree99
    Participant

    Thanks!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ 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

© 2023 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