• 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

auntialias

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • August 21, 2019 at 12:41 pm in reply to: Parallax Pro Pull Images and Captions #493080
    auntialias
    Member

    I know this is an old topic, but having just solved it, I'd like to share my solution as a way to pay it forward.

    It's based on a discussion with a solution by Victor Font (see post for full explanation of Victor Font's solution:

    .full-width-content img.pull-left,
    .full-width-content figure.pull-left img {
    	float: left;
    	margin: 0 40px 40px -200px;
    }
    
    .full-width-content img.pull-left,
    .full-width-content figure.pull-right img {
    	float: right;
    	margin: 0 -200px 40px 40px;
    }

    Victor's solution works when WordPress adds the custom style to the FIGURE element. But in the site I'm working on, when I selected the image block and applied the custom style pull-left to it, the style was applied to the DIV that contained the FIGURE. The styling would not apply.

    The DIV already has a class of wp-block-image. I applied the styling to a div with a class of both wp-block-image AND pull-left, and wrote it like so:

    .full-width-content .wp-block-image.pull-left

    I added this as a third class to this section of CSS code:

    .full-width-content img.pull-left,
    .full-width-content figure.pull-left img,
    .full-width-content .wp-block-image.pull-left {
    	float: left;
    	margin: 0 40px 40px -200px;
    }
    
    .full-width-content img.pull-left,
    .full-width-content figure.pull-right img,
    .full-width-content .wp-block-image.pull-right  {
    	float: right;
    	margin: 0 -200px 40px 40px;
    }
  • Author
    Posts
Viewing 1 post (of 1 total)

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