Hi,
How can i remove the info associated with all the posts, like Author, Categories, Comments, and also Date?
i have found a similar question on the Avisio support, but not here.
I´m guessing it´s similar, but I don´t want to mess up.
Txs
Vasco
Hi,
How can i remove the info associated with all the posts, like Author, Categories, Comments, and also Date?
i have found a similar question on the Avisio support, but not here.
I´m guessing it´s similar, but I don´t want to mess up.
Txs
Vasco
In single.php and archive.php you'll find following code - please delete it:
<span class="date ie6fix"><?php the_time('M d, Y') ?></span>
<span class="comments ie6fix"><?php comments_popup_link(__('No Comments','newscast'), __('1 Comment','newscast'), __('% Comments','newscast')); ?></span>
<span class="author ie6fix"><?php _e('by','newscast');?> <?php the_author_posts_link(); ?></span>
The Dude
Thank you and sorry for my late reply. I was on holidays.
I did that, but It didn´t remove what I wanted. I want to remove the date and "no comments" on the top of the excerpt. You have this info, thatn the excerpt and than "read more...".
I want to get rid of the Date and "no comments"
Thank you
Vasco
If you want to remove these informations on the front page (index.php) you must delete following code in index.php:
<span class="date ie6fix"><?php the_time('M d, Y') ?></span>
<span class="comments ie6fix"><?php comments_popup_link(__('No Comments','newscast'), __('1 Comment','newscast'), __('% Comments','newscast')); ?></span>
<span class="author ie6fix"><?php _e('by','newscast');?> <?php the_author_posts_link(); ?></span>
If that doesn't help can you send me a screenshot of what you want to remove. I.e. my solution removes the date, comments and author of the article "Apple rebrands to Banana! " on the homepage located here: http://www.kriesi.at/themes/newscast/
The Dude
Hi,
Here is what i want:
Remove the "# comments" on the homepage excerpts like they appear here, but keep the "date" and "Read More" (here translated to "Ler mais") :
http://www.kipfitoficinas.com/wp-content/uploads/2010/09/comments.tiff
And when I go to the full article, I want to remove the categories list, as seen here on the bottom right:
http://www.kipfitoficinas.com/wp-content/uploads/2010/09/featured.tiff
That´s it.
Thank you,
Vasco
To remove only the comments you need to delete following line:
<span class="comments ie6fix"><?php comments_popup_link(__('No Comments','newscast'), __('1 Comment','newscast'), __('% Comments','newscast')); ?></span>
This line is used in index.php - here twice - for the "FULL SIZED POSTS" and for the "SMALL SIZED POSTS" (posts which are arranged in 2 columns). The code is also used in archive.php and in single.php.
To remove the categories list delete following code:
<span class="categories"><?php the_category(', '); ?></span>
It's used in index.php for the "FULL SIZED POSTS" and in single.php.
The Dude
Awesome! Worked again.
BTW, and while we´re "talking", how do I limit the number of blog entries on the mainpage to only 2?
Txs again
VC
Do you mean on the slider or below the slider? 2 entries only is a little short don t you think?
Under Newscast options you can select how many full size posts you would like to have (Article Appearance on frontpage and category overview pages).
If you want to limit the total number of displayed posts too, it's possible with a small modification of index.php:
Replace
if ($additional_loop->have_posts()) :
while ($additional_loop->have_posts()) : $additional_loop->the_post();
// ############################# FULL SIZED POSTS #############################
with:
if ($additional_loop->have_posts()) :
while ($additional_loop->have_posts() && $amount <= 2) : $additional_loop->the_post();
// ############################# FULL SIZED POSTS #############################
and
<?php
if($smallsized > 2): echo '</div>'; $smallsized = 1; endif;
endif; endwhile;
with:
<?php
if($smallsized > 2): echo '</div>'; $smallsized = 1; endif;
endif; $amount++; endwhile;
please notice that the value of $amount <= 2 can be changed to the number of posts you like - is it higher than your "Full size posts value" you'll get small and full size posts; is it equal ot lower you'll only full sized posts.
The Dude
Thank you. Will try this out and report back.
Hi,
As for the "limit posts":
I have done this, and it limited the number of posts, however, I still have 3.
I have defined (on Newscast Options) to limit to 2, and have made both your changes.
Any suggestions?
Txs
I meant "3 posts" on the homepage. And this is where I want to limit the number of posts displayed, below the slider.
The value of amount can be as low/as hight as you want. It starts to count with zero (0) and counts to the value you chose for amount. So if you want 2 posts you need to set amount to 1 --- it then counts 0...yes, 1...yes, 2....no value too high.
So replace:
if ($additional_loop->have_posts()) :
while ($additional_loop->have_posts() && $amount <= 2) : $additional_loop->the_post();
// ############################# FULL SIZED POSTS #############################
with:
if ($additional_loop->have_posts()) :
while ($additional_loop->have_posts() && $amount <= 1) : $additional_loop->the_post();
// ############################# FULL SIZED POSTS #############################
The Dude
Got you. Now I understand. I didn´t count the "0". Txs
Glad that it works now.
The Dude
Thanks for the information. I was able to remove the date, author and comments on my blog posts from the information you provided above. Very happy!
Kristen
Glad the information was able to help :)
Hello,
I want remove infos from posts (Comments and author) in all pages, but I would keep the date. It's possible ?
If this is not possible, I think to follow Dude as above : If you want to remove these informations on the front page (index.php) you must delete following code in index.php...
Sorry, for my many post, I hope to finish the setting of my blog, with this fine theme !
Best regards
Bigi
Hi,
I just figured out that deleting 2nd and 3 lines, it works (I keep the date). But it works only in archives, I stille see infos on the frontpage ?!
Someone could help me ?
Thank you
Bigi
Hi,
It's ok for me, I found it !
Bigi
Hey!
Good to see you've solved the issue already. I'll close this topic now.
If there's anything else you can create a new support topic.
Regards,
Chris
This topic has been closed to new replies.