/ Published in: PHP
                    
                                        In this Thesis WP tutorial for multiple custom page templates, we find code for making a custom homepage template as well.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 /* HOME PAGE CUSTOM TEMPLATE */ function home_pagecustom() { /* check to see if homepage. has to happen inside the function */ if (is_home() || is_front_page()) { ?> ...Your custom layout goes here... <?php } } /* Now we tell Thesis to use the home page custom template */ remove_action('thesis_hook_custom_template', 'thesis_custom_template_sample'); add_action('thesis_hook_custom_template', 'home_pagecustom');
URL: http://www.berchman.com/thesis-tutorial-multiple-custom-page-templates/#primer
Comments
                    Subscribe to comments
                
                