How to change/style Author and Date Info?

+1
0
-1

Hello

I want to display "author and date info" in teaser mode but not in full page for some content type.(it takes too much space,I want to make more room for main content.)

So I uncheck "Display author and date information" .But the node content does not align to the left in full page.How to fix this and still show "author and date info" in teaser mode?

Regards

Marco

+1
+9
-1

Dear Marco,

About the layout of theme is designed by graphic and we can't make sure that it is still good if we change it. However, I'd like to give you a way to do what you need in your situation.
1. Please open sites/all/themes/tb_anis/articles.css in

.article {
  border-top: 1px solid #f0f0f0;
  margin-top: 2em; /* Articles spacing */
  min-height: 155px;
  padding-left: 130px;
  padding-top: 2em;
  position: relative;
}

and remove line "padding-left: 130px;"

2- And remove

.article > .header {
  margin-left: -130px;
}

3. After that, open sites/all/themes/tb_anis/comments.css in

#comments {
  border-top: 1px solid #f0f0f0;
  margin-top: 2em;
  margin-left: -130px;
}

please remove, margin-left: -130px;

Let me know whether this helps and answers your question.
Regards,
HaiNN

Comments

Hi Marco, can you post a

Hi Marco, can you post a screenshot or URL so we can give you some suggestions to do that?

Thanks for your reply. I

Thanks for your reply. I applyed the changes.It seems to affect all content types .
How to make changes to just one content type,like gallery?
And it affect teaser mode too,I still want to print Author and Date Info in teaser mode.

Another question.I copy node.tpl.php to node-gallery.tpl.php under tb_anis/tpl directory and modify it,but the output doesn't change.How to do theming nodes by content type?

I solved the first question

I solved the first question by editing node.tpl.php .Codes like:
<?php if ($teaser && $display_submitted): ?> html element <?php endif; ?>

Second question "per content type theming" remains unsolved.