Forum Replies Created

Viewing 1 replies (of 1 total)
  • I wanted to get the static front page working and here is the hack I’ve used to make it work for me. It seems to work ok but I guess you’d have to try it to see if it works for you too. I’ve used Hatch 0.21.

    Note: This works OK for me but if you decide to do this make sure you at least backup this file before you change it.

    After you’ve changed the code you can set the static front page and WordPress should render it ok. You can then tweak the CSS if needed.

    You can see the end result on a site I’ve used it on at: http://www.justgentz.co.uk

    – Locate the file context.php in themes/hatch/library/functions

    – Locate the function hybrid_get_context

    Comment out these two lines in that function:

    if ( is_front_page() )
          $hybrid->context[] = 'home';

    Becomes:

    //if ( is_front_page() )
          //$hybrid->context[] = 'home';

    Should look like this after editing:

    function hybrid_get_context() {
            global $hybrid;
    
            /* If $hybrid->context has been set, don't run through the conditionals again. Just return the variable. */
            if ( isset( $hybrid->context ) )
                    return $hybrid->context;
    
            /* Set some variables for use within the function. */
            $hybrid->context = array();
            $object = get_queried_object();
            $object_id = get_queried_object_id();
    
            /* Front page of the site. */
            //if ( is_front_page() )
            //      $hybrid->context[] = 'home';
    
            /* Blog page. */
            if ( is_home() ) {
                    $hybrid->context[] = 'blog';
            }
    
            // rest of function...
Viewing 1 replies (of 1 total)