Solved

drupal 7 different font weight in teaser and node

Posted on 2013-01-03
2
606 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

732 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