Can anyone please trouble shoot this page template code? (2 posts)

  1. pcrowell
    Posted 5 years ago #

    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?


    * Template Name: Store
    get_header(); ?>

    <div id="content" class="store">


    // 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;



  2. Michelle Langston
    Theme Wrangler at Automattic
    Posted 5 years ago #

    What exactly are you trying to do that isn't working? When I visit the link you posted, I see a page with content, but I'm not sure what you are trying to accomplish.

    Looking at the code, it looks like you're using the Genesis framework. That is a commercial theme, so you might want to seek help over at the StudioPress.com forums. They made the framework so they'll be able to help you with it.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.