Can anyone please trouble shoot this page template code?
-
I know nothing about php. This code was supplied by a tutorial. I added the get header line and the div/class.
I’m trying to style an individual page template and I can’t get it to work.
Here’s the page: http://www.ptcpublications.com
Can you tell me what I’m doing wrong?
Thanks!
<?php
/*
* Template Name: Store
*/
get_header(); ?><div id=”content” class=”store”>
<?php
// Remove Breadcrumbs
remove_action(‘genesis_before_loop’, ‘genesis_do_breadcrumbs’);// Remove Footer
remove_action(‘genesis_footer’, ‘genesis_do_footer’);
remove_action(‘genesis_footer’, ‘genesis_footer_markup_open’, 5);
remove_action(‘genesis_footer’, ‘genesis_footer_markup_close’, 15);add_filter(‘genesis_options’, ‘child_template_layout’, 10, 2);
remove_action(‘genesis_post_title’, ‘genesis_do_post_title’);function child_template_layout($options, $setting) {
if($setting == GENESIS_SETTINGS_FIELD) {$options[‘site_layout’] = ‘full-width-content’;
}
return $options;
}genesis()
?>
</div>
- The topic ‘Can anyone please trouble shoot this page template code?’ is closed to new replies.