• I am using a Smpl Skeleton 2.1.0 theme at the moment, and I want to edit the functions.php file by using the layout hooks i.e. skeleton_before_content, skeleton_after_content etc. The problem is I have no idea what sort of code I need to write to get the layout of my site looking what I want.

    Are there any Skeleton theme tutorials that go in-depth about the layout hooks?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi David I’m having the same issue. Have you figured it out yet, if so please let me know.

    Thread Starter david221

    (@david221)

    Hi Voodoogrrl,

    I have worked out my problem. I went to Customize > Appearances and set my website to be 1200px wide under the Layout section, and set the number of columns to sixteen i.e. sidebar width = 5 columns and content width = 11.

    I had no idea how to organize my web page correctly until I realized that I had to set the number of columns to sixteen in the functions.php if the content is equal to a single page.

    //
    if ( !function_exists( ‘st_before_content’ ) ) {
    global $post;
    function st_before_content($columns) {

    //Sets container up to sixteen columns for all web pages
    if (is_page() && !is_active_sidebar(‘secondary-widget-area’)) {
    $columns = ‘sixteen’;
    }
    }
    }

    I hope that helps. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Skeleton Theme Layout Hook Tutorials?’ is closed to new replies.