WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] hide post titles (11 posts)

  1. rcholden
    Member
    Posted 1 year ago #

    I have looked and looked and read and read but I can not figure out how to hide post titles in the intrepidity wp theme.

    Please help

    Thanks in advance

  2. mojowill
    Member
    Posted 1 year ago #

    You need to open up the template file in question and look for the the_title you can remove that to hide the title.

  3. rcholden
    Member
    Posted 1 year ago #

    I'm really new at wordpress therefore can you help me a little more? I'm guessing I'll need to look at the post.php file since my problem is only in posts. I did find the_title twice, <!--?php the_title(); ?--> and
    <div class="entry_content"><?php $more = 0;the_content('

    <span class="readmore-icon">Read the rest of '. get_the_title('', '', false). '</span>', FALSE);wp_link_pages();?> so I'm guessing I'll have to work on both of these. Right? If I remove them will that hurt my website in concerns with SEO? If it doesn't hurt SEO do I just remove both codes? How do I hide the title? I'm sorry for being such a pain, but wordpress has not been easy for me to figure out and I really hate to ask for help. I REALLY REALLY appreciate your help mojowill.

    THANKS!!!

  4. mojowill
    Member
    Posted 1 year ago #

    It looks like the_title() is already commented out so shouldn't be showing. The second bit of code you showed is merely the link to the article.

    You should have a title though I really couldn't think of any reason not to have one? Google does require a title at the very minimum.

  5. rcholden
    Member
    Posted 1 year ago #

    I thought that <!--?php the_title(); ?--> would hide the title, but it doesn't work. I want this to look like a website it is not going to be a blog. Now when you look at a post you see the title twice at the top of the page which I really do not like. I guess I might just have to reword the second title that shows on each posts, but I really do not like that either.

    Again I really appreciate your help mojowill. I thought XSitePro was hard to figure out but I believe wordpress is a lot harder for me.

    THANKS !!!!!!

  6. mojowill
    Member
    Posted 1 year ago #

    Ah ok dumb moment that is a HTML comment to comment out php you use //

    So it should read <?php //the_title();?>

    Or you can simply delete it all.

  7. rcholden
    Member
    Posted 1 year ago #

    I tried both of your suggestions on the post.php template, but I didn't see any difference when I viewed the site even when I cleared my cache. I really appreciate you trying to help me, but I guess I'll just change the title on each posts so that it at least says something different then the other title.

    Thanks again, but I'm taking up too much of your time.

  8. esmi
    Forum Moderator
    Posted 1 year ago #

    I tried both of your suggestions on the post.php template

    post.php? Exactly what file are you editing?

  9. rcholden
    Member
    Posted 1 year ago #

    My post.php template in intrepidity theme is as follows:

    <?php
    global $more;
    $template_url = get_bloginfo('template_url');
    ?>
    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
        <div class="entry_header">
            <p class="entry-date"><?php the_time('M y') ?><span class="date"><?php the_time('j')?></span></p>
            <?php echo (is_home()) ? '<h2 class="home">' : '<h1>'?><a>">
    
    <!--?php the_title(); ?-->
    
    </a> <?php edit_post_link('Edit', '<span class="editpost">', '</span>'); ?><?php echo (is_home()) ? '</h2>' : '</h1>'?>
            <?php if (FALSE && $post->comment_status != 'closed'):?>
            	<div class="comment-bubble"><span><?php comments_popup_link('<span class="nocomment">No Comment</span>', ' 1 Comment', '% Comments'); ?></span></div>
            <?php endif;?>
            <div class="recover"></div>
        </div>
    
        <div class="entry_content">
            <?php $more = 0;
    		the_content('
    
    <span class="readmore-icon">Read the rest of '. get_the_title('', '', false). '</span>', FALSE);
    		wp_link_pages();
    		?>
    
            <div class="postedinfo"><?php the_tags('<span class="tag-meta">Tags: ', ', ', '</span>'); ?> <?php _e('Posted in')?> <span class="categories"><?php the_category(' ') ?></span> <?php _e('by')?> <span class="usr-meta"><?php the_author() ?></span>.
            <span class="comment-icon"><?php comments_popup_link('No Comments', '1 Comment', '% Comments')?></span>
            <?php if (isset($options['tags'])) : ?><span class="tags"><?php the_tags('', ', ', ''); ?></span><?php endif; ?></div>
        </div>
    </div>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum's parser.]

    When you view my site on each post it has the title and then the title of the posts. I just got down changing my post title to something else instead of just repeating what is stated just above it. I guess I can live with it, but it sort of looks dumb I think. But I am concerned about SEO. From reading and reading I thought that
    <!--?php the_title(); ?--> would hide the post title but I can still see it when I view the site.

    Thanks for the reply esmi.

  10. esmi
    Forum Moderator
    Posted 1 year ago #

    That's a pretty old theme you're using. The most obvious solution would be to just hide the post titles using CSS. Try using Firefox with the Firebug add-on for this kind of CSS work.
    http://getfirebug.com/

  11. rcholden
    Member
    Posted 1 year ago #

    I'll give that a try.

    Thanks for taking the time to try to help me.

Topic Closed

This topic has been closed to new replies.

About this Topic