WordPress.org

Ready to get started?Download WordPress

Forums

Unable to locate page.php file to remove page titles in Graphene Theme (6 posts)

  1. freeunlocks
    Member
    Posted 3 years ago #

    I am trying to remove the titles from all of my pages (I am running a static site through WP) following the tutorial below:
    http://www.wordpressmax.com/wordpress-guide/remove-wordpress-page-title

    The problem is that in the Theme editor page (Appearance > Editor), I am unable to locate the page.php file as is required. I am using the latest version of the Graphene theme.

    Are you able to assist me?

    Thanks a lot!
    Adam

  2. Joseph
    Member
    Posted 3 years ago #

    Open loop.php and replace

    <h2 class="post-title">
    	<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(esc_attr__('Permalink Link to %s', 'graphene'), the_title_attribute('echo=0')); ?>"><?php if (get_the_title() == '') {_e('(No title)','graphene');} else {the_title();} ?></a>
    <?php do_action('graphene_post_title'); ?>
    </h2>

    with

    <?php if (!is_page()) : ?>
    <h2 class="post-title">
    	<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(esc_attr__('Permalink Link to %s', 'graphene'), the_title_attribute('echo=0')); ?>"><?php if (get_the_title() == '') {_e('(No title)','graphene');} else {the_title();} ?></a>
    <?php do_action('graphene_post_title'); ?>
    </h2>
    <?php endif; ?>
  3. freeunlocks
    Member
    Posted 3 years ago #

    Thanks so much! Worked great :D

  4. Joseph
    Member
    Posted 3 years ago #

    You're welcome :)

  5. friend60
    Member
    Posted 3 years ago #

    I'd also like to remove the titles from my pages. I'm using the Atahaulpa theme. I don't see a loop.php . Hope you can help.

  6. Katie C
    Member
    Posted 2 years ago #

    I can't find the code in the loop.php. I am a newbie. Is there an easy way to find it or delete page titles w/out editing code?

Topic Closed

This topic has been closed to new replies.

About this Topic