• 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

brightlaunch

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 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • February 23, 2015 at 12:22 pm in reply to: enable SSL load for background images in Parallax Pro #141895
    brightlaunch
    Member

    I had the same problem in Minimum Pro... the page_landing.php code includes on line 34 the following code:
    wp_localize_script( 'minimum-backstretch-set', 'BackStretchImg', array( 'src' => get_background_image() ) );

    which creates the following output on the page:
    <script type='text/javascript'>
    /* <![CDATA[ */
    var BackStretchImg = {"src":"http:\/\/yourdomain.com\/wp-content\/uploads\/bg.jpg"};
    /* ]]> */
    </script>

    So I replaced line 34 with this (notice how I removed the "http:" that created the issue):
    echo '<script type="text/javascript">var BackStretchImg = {"src":"\/\/yourdomain.com\/wp-content\/uploads\/bg.jpg"};</script>';

    When you upload page_landing.php, it now generates the following HTML:
    <script type="text/javascript">var BackStretchImg = {"src":"\/\/yourdomain.com\/wp-content\/uploads\/bg.jpg"};</script>

    Problem fixed!

    November 16, 2014 at 10:01 am in reply to: Minimum Pro: Switch to 3-column homepage #131742
    brightlaunch
    Member

    Perfect, worked like a charm!

    October 29, 2013 at 2:12 pm in reply to: Content Encoding Error for XML Sitemap (Yoast SEO) #69733
    brightlaunch
    Member

    Thanks @nutsandbolts.

    1. Site is hosted through yours truly websynthesis.
    2. Using W3 Total Cache. Cleared cache, deactivated plugin, reloaded http://skinnychef.com/post-sitemap1.xml = still same error.

    There's actually another error message showing up for 400ms before the other generic message shows:

    XML Parsin Error: no element found
    Location: http://skinnychef.com/post-sitemap1.xml
    Line Number 1, Column 1:

    ^

    February 18, 2013 at 10:21 am in reply to: Why is my if (!in_category) statement not working? #21014
    brightlaunch
    Member

    Ok, I figured it out.... needed || instead of &&:

    add_action('wp_print_styles', 'custom_show_zlrecipe');
    function custom_show_zlrecipe() {
    if (is_category() || !in_category (array ('11','284','285','288','289','291','292','293','294','295','296','270','273','274','275','279','280','282','283'))) {
    remove_filter('wp_head', 'amd_zlrecipe_process_head');
    }
    }

    February 18, 2013 at 8:43 am in reply to: Why is my if (!in_category) statement not working? #20989
    brightlaunch
    Member

    Thanks cdils... I realized the missing colon! Just revised my post... it's mostly working, but the scripts still show up on the category pages itself… I only want it to show for the posts in those categories…

    February 18, 2013 at 8:33 am in reply to: Why is my if (!in_category) statement not working? #20987
    brightlaunch
    Member

    add_action('wp_print_styles', 'custom_show_zlrecipe');
    function custom_show_zlrecipe() {
    if (!in_category (array ('11','284','285','288','289','291','292','293','294','295','296','270','273','274','275','279','280','282','283'))) {
    remove_filter('wp_head', 'amd_zlrecipe_process_head');
    }
    }

    accomplished most of what I needed. But, the scripts still show up on those category pages itself... I only want it to show for the posts in those categories...

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)

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