dane-m
9/19/2013 - 3:21 PM

Add a content width in pixels to a forced layout so that Genesis and Jetpack Tiled Galleries play nicely in WordPress.

Add a content width in pixels to a forced layout so that Genesis and Jetpack Tiled Galleries play nicely in WordPress.

<?php

/**
 * Template Name: Full Width Content Page
 * Description: Used as a page template to show page contents using Genesis full-width content layout
 */


// Force full-width content layout setting
add_filter('genesis_pre_get_option_site_layout', '__genesis_return_full_width_content');


// Force content width
$content_width = 1060;


genesis();