• 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

Centering Title on Genesis Responsive Slider

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 › Centering Title on Genesis Responsive Slider

This topic is: not resolved

Tagged: center title, css, genesis responsive slider

  • This topic has 3 replies, 2 voices, and was last updated 12 years, 7 months ago by David Chu.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 31, 2013 at 8:17 pm #53476
    CreativeKristi
    Member

    Hello! I am trying (as per a client's request) to center just the title (she is not using excerpts on the slider) of the posts that are featured in the slider. The slider is in a sidebar widget.

    However when I try to center the text the post titles center on the actual posts too. Those she wants left-aligned but in the slider she wants centered.

    How can I separate the two? I tried adding
    .slide-excerpt h1, h2, h2 a, h2 a:visited to get it aligned centered but that seems to do nothing.

    Any help would be greatly appreciated!

    Here is the site where the slider is the first primary sidebar widget: http://testblog.creativekristi.com/


    I work at Creative Kristi Designs
    I play at Creative Kristi
    Affordable. Beautiful. Personal. Custom. Design for everyone.

    August 1, 2013 at 9:27 am #53555
    David Chu
    Participant

    Hi,
    That was a CSS brain-teaser. ๐Ÿ™‚ I found the smoking gun. In the following command, you have "float: left;" Remove that, and it will start to center.

    html > body .slide-excerpt-border {
      background: none repeat scroll 0 0 transparent;
      border: 0 solid #DDDDDD;
      display: inline;
      float: left;
      margin: 6px;
      padding: 6px;
      position: relative;
      text-align: center;
      z-index: 8;
    }
    

    Chances are, you'll want to remove the padding from this to get more precision:

    .slide-excerpt h1, h2, h2 a, h2 a:visited {
      font-size: 16px;
      padding: 0 10px 0 0;
      text-align: center;
    }
    

    Keep in mind that these changes may effect the slider if you have it in non-sidebar locations. Somebody at some point put those there for a particular reason. ๐Ÿ™‚

    Dave


    Dave Chu ยท Custom WordPress Developer – likes collaborating with Designers

    August 5, 2013 at 9:49 pm #54329
    CreativeKristi
    Member

    Thank you!


    I work at Creative Kristi Designs
    I play at Creative Kristi
    Affordable. Beautiful. Personal. Custom. Design for everyone.

    August 6, 2013 at 7:08 am #54353
    David Chu
    Participant

    You're welcome!


    Dave Chu ยท Custom WordPress Developer – likes collaborating with Designers

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 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

© 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