• 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

Adam Bradford

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 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 17, 2016 at 7:24 am in reply to: Who Are You Using For Your Web Hosting? #189532
    Adam Bradford
    Member

    Hey there,

    Finding a good hosting company can be a challenge! There are many things to consider, (i.e. Cost, Features, Customer Support, etc.. )
    Personally, I consider the features of the platform and customer support above all else.

    The platform should

    • Be secure
    • Be scalable
    • Have reliable up time
    • Have caching ( revers-proxy cache, object cache )
    • Have the latest versions of software running, and are optimized for WordPress
    • Have built-in backups
    • Have built-in version control

    Depending on your skill set you can accomplish all of this with a couple of droplets on digital ocean.

    Here's a good few good guides to give you a few ideas

    • Initial Server Setup with Ubuntu 16.04
    • An Introduction to Securing your Linux VPS
    • How To Secure Nginx on Ubuntu
    • How Fail2Ban Works to Protect Services on a Linux Server
    • How To Secure Nginx with Let's Encrypt
    • A "simple" Varnish ang NGinx configuration for a WordPress blog

    This isn't an exhaustive list, you still would want to consider, installing tripwire, securing php, ddos mitigation ( cloudflare! ), and load balancing.

    If you're not comfortable with sever administration and want a developer friendly/feature rich solution, I highly recommend Pantheon.

    It's a container-based platform that was built on a distributed, horizontally scalable infrastructure with no single points of failure.
    Every site you create includes a Dev, Test, and Live environment connected by version control. Each has its own database, file system connection, and URL.

    Their CLI tool includes everything and everything you can do in the developer dashboard.

    Hope this helps!


    Adam Bradford

    Director of Web Development at Highforge

    July 15, 2016 at 9:09 am in reply to: Header Image Not Responsive #189535
    Adam Bradford
    Member

    Hey Keith,

    Try this

    
    .header-image .site-title > a {
        background: url(http://keith-moore.net/wp-content/uploads/2016/01/keith-banner-final.gif) no-repeat center;
        float: left;
        min-height: 120px;
        width: 100%;
        background-size: cover;
    }
    
    @media only screen and (max-width: 960px){
        .site-header .wrap {
            padding: 0;
        }
    }
    

    Adam Bradford

    Director of Web Development at Highforge

    April 18, 2016 at 7:37 am in reply to: Genesis Simple Share Pinterest Button #183826
    Adam Bradford
    Member

    We could add custom field support with just a few minor tweaks
    Below is my patch.

    Basically, it updates Simple Edits to check for {network}_image, {network}_text
    Returns the data if it's there, if not it continues as usual.

    For pinterest,
    You'd add pinterest_image for the name, and the value would be the url of the image
    && pinterest_text for the text you want to show

    commit c09acf1747037626cbf2e195f11ed76bb3a5a7a8
    Author: admbradford <[email protected]>
    Date:   Mon Apr 18 09:32:36 2016 -0400
    
        Added custom field support
    
    diff --git a/lib/front-end.php b/lib/front-end.php
    index cc06ed9..5bd1497 100644
    --- a/lib/front-end.php
    +++ b/lib/front-end.php
    @@ -352,10 +352,9 @@ class Gensis_Simple_Share_Front_End {
     
     			$div_id =  strtolower( $icon .'-'. $location .'-'. $id );
     
    -			$image = ( $image = genesis_get_image( array( 'format' => 'url', 'size' => 'full' ) ) ) ? $image : $this->get_first_image();
    +			$image = $this->get_share_image( $id, $icon );
     
    -			$image = $image ? $image : genesis_get_option( 'image_url', 'genesis_simple_share' );
    -			$description = the_title_attribute( array( 'echo' => false ) );
    +			$description = $this->get_share_description( $id, $icon );
     
     			//media
     			$button = 'twitter'   == $icon && ( $via = genesis_get_option( 'twitter_id', 'genesis_simple_share' ) ) ?  " twitter: { via: '". str_replace( '@', '', $via ) ."' }" : '';
    @@ -561,6 +560,48 @@ class Gensis_Simple_Share_Front_End {
     
     	}
     
    +	/**
    +	 * Get the share image for a social network
    +	 * @param  int    $id      the post id
    +	 * @param  string $network name of social media network
    +	 * @return string URL of image to share
    +	 */
    +	function get_share_image( $id, $network ) {
    +		$key = sprintf( "%s_image", $network );
    +		$image = get_post_meta( $id, $key, true );
    +
    +		if( ! empty( $image ) && file_exists( $image ) )
    +				return $image;
    +
    +		$args = array(
    +		     'post_id'	=> $id,
    +		     'format'	=> 'url',
    +		     'size'		=> 'full'
    +		);
    +
    +		$image = ( $image = genesis_get_image( $args ) ) ? $image : $this->get_first_image();
    +
    +		$image = $image ? $image : genesis_get_option( 'image_url', 'genesis_simple_share' );
    +
    +		return $image;
    +	}
    +
    +	/**
    +	 * Gets the share text for a social network
    +	 * @param  int    $id      the post id
    +	 * @param  string $network name of social media network
    +	 * @return string text to share
    +	 */
    +	function get_share_description( $id, $network ){
    +		$key = sprintf( "%s_text", $network );
    +		$description = get_post_meta( $id, $key, true );
    +
    +		if( ! empty( $description ) )
    +			return urlencode( $description );
    +
    +		return get_the_title( $id );
    +	}
    +
     
     }
     
    

    Adam Bradford

    Director of Web Development at Highforge

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