Solved

drupal 7 different font weight in teaser and node

Posted on 2013-01-03
2
599 Views
Last Modified: 2013-01-04
I have a teaser to a node. The first line of the node appears in the teaser.
How can I arrange for the text in this line be bold and h2 in the node but normal weight and size in the teaser?
0
Comment
Question by:bogorman
2 Comments
 
LVL 16

Accepted Solution

by:
HagayMandel earned 500 total points
ID: 38742288
Use field_formatter_class
It allows you to add css class to each field (and in D7 'Body' is a field as well), and have different classes to 'Full body' & 'Teaser'.
So you add a custom class to the tease let's call it 'my_teaser', and then add the required css to the theme's css file accordingly:

.my_teaser {
 font-weight:bold;
 font-size: 16px;
}
0
 

Author Comment

by:bogorman
ID: 38743626
Thanks, HagayMandel, works perfectly.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Drupal based website 2 359
Maintenance Offline Page Not Working 4 138
Code for dynamic copyright on website? 4 253
Getting Users Via Invite 1 110
This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed. Note…
RTL (right to left) web applications aiming for audiences speaking languages like Hebrew or Arabic, are generally more complicated than the same applications aiming for audiences speaking Latin based languages. The main difference lies of course …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question