[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

drupal 7 different font weight in teaser and node

Posted on 2013-01-03
2
Medium Priority
?
614 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 2000 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

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 …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

649 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