• 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

Trouble with indents when using .entry-content class selector

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 › Trouble with indents when using .entry-content class selector

This topic is: resolved

Tagged: class, css, selector

  • This topic has 4 replies, 3 voices, and was last updated 7 years, 4 months ago by Doug.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • February 12, 2019 at 12:25 am #489495
    Doug
    Participant

    I was having an issue with gallery images on my home page not aligning with the left edge of main content area. It's the section under "Work" on my home page.
    http://www.arrovox.com

    So I added the following code to Custom CSS in Appearance in the WordPress editor.

    .entry-content ul {
        margin-left: -5px;
    }

    That fixed the left-edge alignment problem.

    However, now, on my blog pages, any time I use a bullet, it's now pushing the bullet points out to the left, as you can see on the bullet points on this page:
    https://arrovox.com/2018/07/30/ep-02-synthetic-voice-personality-parameters/

    When I toggle the code above on and off in inspect, I can get the results I want for both the home page gallery images and the bullet indents, but not both at the same time.

    I don't understand how the ".entry-content" class selector works, and am wondering if there's a way I can have both the home page gallery images align to the left of the main content column, while also having the bullet points align properly, and not extending out into the left margin.

    Thank you for any guidance on this.
    Doug

    http://www.arrovox.com
    February 12, 2019 at 12:41 am #489496
    Victor Font
    Moderator

    You can further qualify the custom home page CSS with the .home class:

    .home .entry-content ul {
        margin-left: -5px;
    }

    Regards,

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

    February 12, 2019 at 12:46 am #489497
    andytc
    Participant

    You just need to be more specific with the selector for the class you want to affect

    As below should fix it for you -

    .home .wp-block-gallery {
     margin-left: 0;
    }

    This will affect only the wp-gallery-block on the home page and will be affected by what's set in Reading >> Settings , for you , it's 'home'.

    You could also use the page ID , on your site for the home page it would be -

    .page-id-1410 .wp-block-gallery {
        margin-left: 0;
    }

    Same result , it's about being specific when needed so that CSS changes you make don't affect the whole site on certain elements , so we have to be more focused to avoid that.

    February 12, 2019 at 12:47 am #489498
    andytc
    Participant

    Oops .. sorry Victor posted same time 🙂

    February 18, 2019 at 3:29 pm #489595
    Doug
    Participant

    Thank you Victor, that worked great!

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Trouble with indents when using .entry-content class selector’ is closed to new 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