Page title problem with WP e-Commerce

  • Tomi76

    #26125

    Hello Everybody!

    Here is the solution.

    In the loop-page.php (Original):

    <?php /* Post title */ ?>
    <h1 class="post-title entry-title">
    <?php if ( get_the_title() == '' ) { _e( '(No title)', 'graphene'
    ); } else { the_title(); } ?>
    <?php do_action( 'graphene_page_title' ); ?>

    Modifyed (Good):

    <?php /* Post title */ ?>
    <h1 class="post-title entry-title">
    <?php if ( get_the_category() == '' ) { _e( '(No title)',
    'graphene' ); } else { the_title(); } ?>
    <?php do_action( 'graphene_page_category' ); ?>
    Mod

    Kenneth John Odle

    #26126

    Code between backticks, please.

    Keep in mind that modifying core theme files is NOT recommended.

    You can create a copy of this file with your modifications and copy it over to your child theme folder, but:

    1) The child theme file will be loaded, instead of the parent theme file

    2) So when you update the parent theme, this page will not be updated. Also, if the theme structure changes (as Graphene did with the 1.6 release), this page may cease to work altogether.

    Any plugin that requires you to modify core theme files is not as well designed as it should be.

Viewing 2 posts - 11 through 12 (of 12 total)

  • 1
  • 2
  • You must be logged in to reply to this topic.