WordPress.org

Ready to get started?Download WordPress

Forums

help me remove topic titles (3 posts)

  1. ventrilqstman
    Inactive
    Posted 6 years ago #

    I'm working on making my whole site wordpress instead of just using it as a a blog. It's coming along well except for page titles. WP is sooo close to making a great CMS, but theres a few things that can really be a pain.

    The information pages on the site will be designed just like I was making a normal webpage, and I have to get rid of the titles that would normally be on a WP page. I have thought of simply not giving the page a title, but that would make it pretty tough to organize.

    Anyone know how I can remove the title from the top of a page? The blog posts will need to keep it of course.

  2. shadow
    Member
    Posted 6 years ago #

    Remove this [or similar] from your page template code:

    <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>

  3. ventrilqstman
    Inactive
    Posted 6 years ago #

    Looks like I learned something new today thanks to you shadow. Not only can I remove the titles on just pages ny taking the code out of the page.php code, I can also change the way it looks separate from the blog posts if need be by using h1 ect instead of say h2. You made it so I can go to bed feeling successful... Thanks

    One more quick question though. I found simalar code to what you mentioned in the following block...

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="post" id="post-<?php the_ID(); ?>">
    <h2><?php the_title(); ?></h2>
    <div class="entrytext">
    If I remove the whole thing it breaks the site, so I just removed "<h2><?php the_title(); ?></h2>" It's a lot shorter string than you mentioned, Should I take some of the other code in the block out, or is that correct?

Topic Closed

This topic has been closed to new replies.

About this Topic