• 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>

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘Can anyone please trouble shoot this page template code?’ is closed to new replies.