• 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

How to center 'read more' link

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 › How to center 'read more' link

This topic is: not resolved
  • This topic has 5 replies, 3 voices, and was last updated 9 years, 11 months ago by beautyfool.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • August 5, 2016 at 2:35 am #190765
    beautyfool
    Member

    HI there,

    I have styled the "Read more" link to look like a little button (basically just gave it a background color + some padding), but I am having trouble centering it. I've tried float: center; text-align center... and I'm not sure what else! I've been looking online and found no answers.

    Would anyone know how to do this?

    Thanks in advance!
    Rene

    August 5, 2016 at 5:36 am #190770
    Victor Font
    Moderator

    Please post a link to your site.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    August 5, 2016 at 11:11 am #190789
    beautyfool
    Member

    Hi Victor, it's blogforbeauty.com. Thanks!

    August 5, 2016 at 1:35 pm #190798
    Victor Font
    Moderator

    This is a little tricky because we don't have direct access to the p element that wraps around the more link. If we did, adding text-align: center to the paragraph element would center the link within it. But since we only have access to the CSS for a.more-link, we need to add the following to the that element's CSS at line 1515 in style.css:

    position: absolute;
    left: 50%;
    transform: translate(-50%);

    Basically, you're moving it half way across the space and then pulling it back 50% of its width.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    August 5, 2016 at 2:17 pm #190800
    Christoph
    Member

    Hi Victor,
    do you think that

    .entry-content p:last-of-type

    or better

    .home .entry-content p:last-of-type

    would be too risky in case there is more content after the read more link?


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    August 5, 2016 at 8:59 pm #190812
    beautyfool
    Member

    Hi Victor, your code worked perfectly - thank you so much!

    Renee

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