Hello there! I'm using Avisio and would like to remove the entire meta-box from underneath the title on the single portfolio theme...but leave it on the blog page. I can't find it in the CSS to add "display: none", as was suggested for another theme...can you tell me how to do it on Avisio? Thanks!
Remove meta from portfolio single page
6 posts from 4 voices-
Posted 1 year ago #
-
Hey,
in your single.php you can remove
<div class="entry-head"> <span class="categories"><?php _e('Posted in: ', 'avisio'); the_category(', '); echo $terms; ?></span><span class='limit'>-</span> <span class="date"><?php the_time('M d, Y') ?></span> <span class="comments"><?php comments_popup_link(__('No Comments','avisio'), __('1 Comment','avisio'), __('% Comments','avisio')); ?></span> </div>Keep in mind other pages that use the single.php file will also be changed. However, it doesn't affect the blog page.
Posted 1 year ago # -
Awesome -- thank you so much! :)
Posted 1 year ago # -
Glad I could help :)
Posted 1 year ago # -
If you create a copy of single.php called single-portfolio.php, and then remove those lines from that file it will only effect the portfolio pages. No other work is required, as WordPress will automatically use that template file if it exists.
Posted 1 year ago # -
Thanks FreewayProj. for this hint :)
Posted 1 year ago #
Reply
You must log in to post.














