WordPress.org

Ready to get started?Download WordPress

Forums

Genesis Style Trump
[resolved] Appears to conflict with Parallax-Pro home backgrounds (11 posts)

  1. marcfuller
    Member
    Posted 2 months ago #

    Using Parallax-Pro, when the plugin activated the Home page widget backgrounds 1-3 do not work.

    https://wordpress.org/plugins/genesis-style-trump/

  2. Carrie Dils
    Member
    Plugin Author

    Posted 2 months ago #

    Hi Marc,

    Is this happening on both a mobile device and a full-width desktop screen?

    Also, when you say "do not work" - what displays on the home page? The background image? Nothing?

    I'm looking into it and any additional information you provide will be helpful.

    Cheers,
    Carrie

  3. marcfuller
    Member
    Posted 2 months ago #

    Hi Carrie,

    In my observations the home section backgrounds are not presented across any display sizes. The sections are presented with only their css color rule as the background.

    -Marc

  4. Gary Jones
    Member
    Posted 2 months ago #

    @marcfuller - Got an example URL showing the problem?

  5. marcfuller
    Member
    Posted 2 months ago #

    Yes. I just reactivated the plugin and the home section backgrounds are once again MIA - http://50.23.201.229/~santafe/

  6. Carrie Dils
    Member
    Plugin Author

    Posted 2 months ago #

    Hey Marc,
    I was able to re-create the problem locally, so at least you know you're not crazy. :)

    Parallax Pro is loading the background CSS via a script, which inserts inline CSS to the home page. Genesis Style Trump causes those inline styles not to load at all, as you've discovered.

    The point of GST is to load last of all, but in the case of Parallax, those background image styles need to trump.

    As a temporary fix, you can change the load priority to be higher than GST. Go to /lib/output.php and change line 6 from this:

    add_action( 'wp_enqueue_scripts', 'parallax_css' );

    to this:

    add_action( 'wp_enqueue_scripts', 'parallax_css', 1000 );

    That should get you going for now.

    Cheers,
    Carrie

  7. marcfuller
    Member
    Posted 2 months ago #

    Is this fix only for Parallax-Pro?

    Are you going to update the plugin to work with Parallax?

  8. Carrie Dils
    Member
    Plugin Author

    Posted 2 months ago #

    That is a Parallax-specific fix (the edit you're making is in the Parallax theme).

    It's the first Genesis theme to roll out functionality like that, so I need to investigate how to make it work with the plugin long-term. Just didn't want you to have to wait on an update since I'm not sure how quickly that will happen.

  9. marcfuller
    Member
    Posted 2 months ago #

    Ok.

  10. marcfuller
    Member
    Posted 2 months ago #

    I wonder if you should mention that the current version the plugin will not work with Parallax-Pro in the plugin's Description and/or your blog post.

  11. robbypayne
    Member
    Posted 3 days ago #

    Awesome! I was looking around for this exact fix and this worked perfectly! Carrie, you are a boss!

Reply

You must log in to post.

About this Plugin

About this Topic