juandahveed
9/28/2017 - 1:16 PM

wp-config file change when pushing a site live away from wpengine.

wp-config file change when pushing a site live away from wpengine.

$wpe_all_domains=array ( 0 => 'mentalhealthcenter.org', 1 => 'mentalhealthce.wpengine.com', 2 => 'www.mentalhealthcenter.org', );
//set featured image as div background
function featured_bg_function() {
	global $post;
	return 'style="background: url('. wp_get_attachment_url( get_post_thumbnail_id($post->ID) ).') no-repeat center; background-size:cover;" ';
}

add_shortcode('featured_bg', 'featured_bg_function');