Forums

[resolved] removing or hiding all "page title" on pages (5 posts)

  1. theserpent
    Member
    Posted 8 months ago #

    Hello, I had a look at other topics with no results...

    I made a simple template with artisteer and in the index.php there's no mention of php title..... so I looked at other php files where the indication could be and found this in post_title.php

    <h2 class="art-postheader"><a href="<?php echo $post_link; ?>" rel="bookmark" title="<?php echo $post_link_title; ?>">
                                           <?php echo $post_title; ?>
                                          </a></h2>
    
    <?php // the_title(); ?>

    shall I comment the title out, as it was suggested to me? How can I do?
    is it located somewhere else in the theme?
    Thanks!!!

  2. zoonini
    help me help you
    Posted 8 months ago #

    You'll need to remove all these lines:

    <h2 class="art-postheader"><a href="<?php echo $post_link; ?>" rel="bookmark" title="<?php echo $post_link_title; ?>">
                                           <?php echo $post_title; ?>
                                          </a></h2>

    To comment it out it's safest to comment out the HTML and PHP bits separately:

    <!--<h2 class="art-postheader"><a href="<?php //echo $post_link; ?>" rel="bookmark" title="<?php //echo $post_link_title; ?>">
                                           <?php //echo $post_title; ?>
                                          </a></h2> -->

    The default WordPress post title is already commented out so you can leave it or remove the whole thing:

    <?php // the_title(); ?>

    Always make a backup copy of any files, before you edit them.

  3. zoonini
    help me help you
    Posted 8 months ago #

    By the way, the above will likely remove the post title on your blog homepage, depending where that code was being called in. If you're looking to remove titles on actual pages, look in page.php, or on individual posts, look in single.php. Really depends how your theme is put together. I don't know anything about Artisteer but they have their own forums: http://www.artisteer.com/?forum_id=13&p=forum_topics

  4. theserpent
    Member
    Posted 8 months ago #

    thanks a lot zoonini for your advice, it worked!

  5. zoonini
    help me help you
    Posted 8 months ago #

    My pleasure, glad to hear it!

Reply

You must log in to post.

About this Topic