[Resolved] hide post titles
You need to open up the template file in question and look for the the_title you can remove that to hide the title.
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.
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.
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.
Ah ok dumb moment that is a HTML comment to comment out php you use
So it should read
Or you can simply delete it all.
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.
I tried both of your suggestions on the post.php template
post.php? Exactly what file are you editing?
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.
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.
- The topic ‘[Resolved] hide post titles’ is closed to new replies.