Forum Replies Created
-
AuthorPosts
-
Adam BradfordMember
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
Adam BradfordMemberHey 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
Adam BradfordMemberWe 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 showcommit 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
-
AuthorPosts