Here is a link to one of the CPT
http://www.armchairallamericans.com/dev/player/lebron-james/
-
This reply was modified 10 years by
drae.
Hi,
You can use this css to hide the author only for the “player” post type:
.single-player .td-post-author-name{
display:none!important;
}
If you also want to remove the date as well, you can add this code instead:
.single-player .td-module-meta-info{
display:none!important;
}
Thank you!
Hi,
You need to add the code in the theme panel – custom css box and make sure your previous tag is closed if you have any other code in there.
The code works as seen here: http://screencast.com/t/MajmvFXWGR
You might try to clear your cache as well after you add the code.
Thanks.
Hi,
Recently I purchased this theme, could you please let me know how to hide Author name on the posts which admin posts, and show Author name on all other contributors post. For example admin will control all the ‘news’ posts which doesn’t need to show the author info, but for ‘Lifestyl’, ‘Health’, ‘Travel’ etc another guy is handling and he need to show his name on all the post which he posts.
Sorry for the complicated question, hope you understood what I need to do.
Thanks you
Hello,
Our theme has no such option unfortunately. It will have to be custom made. you can add an is_admin condition in every post template that you use on your site like so:
<?php if ( ! is_admin() ){
echo $td_mod_single->get_author();
}?>
Simply edit the loop-single files and replace the standard get_author function with the code provided.
http://screencast.com/t/mqkdLYbE
Thanks.
Hi,
Unfortunately, Yes as there is no update proof way of altering the theme files. You could use a child theme but even that is not update proof. You will still have to keep an eye out if the file was changed in an update and if it is, you will have to change it in the child theme as well, but it will spare you a couple of updates until we change the post files (they will not get changed too often hopefully)
Thank you!