Solved

drupal 7 different font weight in teaser and node

Posted on 2013-01-03
2
595 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

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 …
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now