• 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

shotgunshell

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 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • April 7, 2016 at 9:10 am in reply to: Get URL of the post image to use it as a background-image #183115
    shotgunshell
    Member

    You're welcome!

    April 6, 2016 at 9:12 am in reply to: Get URL of the post image to use it as a background-image #183057
    shotgunshell
    Member

    This is the full function which worked for me in testing, so try replacing what you have with it:

    add_action( 'genesis_after_header', 'parallax_image' );
    function parallax_image() {
    	global $post;
    	if ( has_post_thumbnail() ) {
    		$url = wp_get_attachment_url( get_post_thumbnail_id($post->ID, 'full') );
    	} else {
    		$url = 'http://www.abc.de';
    	}
    
    	?>
    	<div class="parallax-section hero-parallax">
    		<div class="parallax-content wrap"></div>
    		<div class="parallax-background" style="background-image: url('<?php echo $url ?>');"></div>
    	</div>
    <?php }
    
    April 5, 2016 at 9:24 am in reply to: Get URL of the post image to use it as a background-image #182997
    shotgunshell
    Member

    @mocca, try inserting a global $post;, like so:

    function parallax_image() {
    	global $post;
    	if ( has_post_thumbnail() ) {
    
    February 2, 2016 at 5:57 pm in reply to: Modern Portfolio Pro Home Service Area #178197
    shotgunshell
    Member

    There are two things which need correcting inside the "More About Our Services" text widget:

    First, the <div class="align left"> should be <div class="alignleft"> (i.e., remove the space in the class name).

    Second, the a href tag shown below has a double quote mark in the wrong place (it should be just after href= not just before landing):

    <div class="alignright"><a class="button" href=http://glamarazzibrides.com/makeup-and-hair-services/"landing/">Learn More</a></div>

    February 2, 2016 at 5:44 pm in reply to: 500 error #178196
    shotgunshell
    Member

    This message typically means that your code is missing a closing brace (i.e., there's an opening brace which is missing its closing partner).

    November 24, 2015 at 2:25 pm in reply to: MAnual excerpts not showing up? #171940
    shotgunshell
    Member

    I don't know if this is considered to be the "proper" solution, but commenting out line 98 in the front-page.php file is what works for me:

    //			'grid_content_limit'    => 250,
    
    August 19, 2014 at 8:43 am in reply to: Featured Post List not working #119769
    shotgunshell
    Member

    I think it would be easier to just create a new widget area for your home page, and then add the Genesis Featured Posts widget to it.

    May 28, 2014 at 12:25 pm in reply to: Metro Pro & Jetpack not working #107140
    shotgunshell
    Member

    You need to activate the "Extra Sidebar Widgets" module.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 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