• 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

Parallax Pro: pull-left/pull-right not working with Gutenberg

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 › Parallax Pro: pull-left/pull-right not working with Gutenberg

This topic is: resolved

Tagged: Gutenberg, parallax-pro

  • This topic has 3 replies, 2 voices, and was last updated 4 years, 1 month ago by Victor Font.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • November 30, 2018 at 10:39 pm #224742
    Hyperbambus
    Member

    Hey everybody,

    I am currently considering to make the switch to the Gutenberg editor. The Studiopress website, after all, states that Genesis and the themes are compatible with it.

    Yet I cannot figure out how to get the Parallax Pro theme's "pull-left" and "pull-right" image classes to work. In the old editor, they are used to make images stick out from the text as visible on this site in the demo.

    Adding either one of the classes to an image in the Gutenberg editor has no effect at all, regardless of whether the image is part of a text block or a block in its own right.

    Does anyone know whether there's a solution for this problem?

    December 1, 2018 at 12:35 am #224748
    Victor Font
    Moderator

    The alignleft and alignright classes work fine for me in Gutenberg.

    See this tutorial. It may help you: https://gogutenberg.com/blocks/image/

    As for the pull-left and pull-right classes, you can add them as additional classes in the block's additional content classes area. You'll have to make a small change to style.css however.

    Additional classes in Gutenberg are added to the figure markup that surrounds the image, not the image itself. Therefore, in style.css change the pull-left and pull-right classes to look like this:

    .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;
    }

    For each of the CSS classes above, the original class (pre-Gutenberg) is the top line. The second line is class for Gutenberg. You'll want to have both for backwards compatibility.


    Regards,

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

    December 1, 2018 at 1:06 am #224750
    Hyperbambus
    Member

    Thank you, Victor! Adding these lines solved the problem.

    Do you happen to also have at hand the code necessary for Gutenberg's align:wide option to work with Genesis?

    December 1, 2018 at 9:10 am #224759
    Victor Font
    Moderator

    For alignwide and alignfull, try this added to style.css:

    .entry-content .alignfull,
    .entry-content .alignwide {
        margin-left  : calc( -100vw / 2 + 100% / 2 );
        margin-right : calc( -100vw / 2 + 100% / 2 );
        max-width    : 100vw;
    }

    Regards,

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

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Parallax Pro: pull-left/pull-right not working with Gutenberg’ 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

© 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