Theme teaser block?

organizedhome - September 22, 2008 - 14:54
Project:Teaser block
Version:6.x-1.x-dev
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

This module is just great--and has solved a problem for me--but I need to theme it.

Specifically, the "Read more" link needs to be separated from the block text; at present, the link shows up hard against the block text. See an example here: http://organizedchristmas.com (the teaser block is the "this week at Organized Christmas" box in the upper right of the page).

How can I either theme or tweak the block so that there is a line or space separating the link from the text?

Thank you.

#1

organizedhome - September 22, 2008 - 15:19

Just adding that I've managed to get what I need by a kludgy HTML fix, inserting non-breaking spaces and line breaks into the teaser itself.

Still would like to figure out how to theme the link so it matches the rest of the site's "read more" format. Looking at the page code, I'm going to try to add the class teaser-block-more-link to my style.css, and see what happens.

Cynthia

#2

sun - November 2, 2008 - 16:48
Status:active» fixed

Exactly. You can add styles for the CSS class, f.e. display: block, which will result in a more link on a new line.

#3

System Message - November 16, 2008 - 16:52
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#4

stevestatic - February 24, 2009 - 13:51

i don't get, how can i add styles for the teaser-block, and the read-more link? how i it called?

.teaser-block a {} ?!?!

#5

jimmb - April 21, 2009 - 00:22

I was able to get it to work with:

.teaser_block-more-link {
display: block;
}

Jim

 
 

Drupal is a registered trademark of Dries Buytaert.