Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comments
Comment #1
Cynthia Ewer CreditAttribution: Cynthia Ewer commentedJust 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
Comment #2
sunExactly. You can add styles for the CSS class, f.e. display: block, which will result in a more link on a new line.
Comment #4
stevestatic CreditAttribution: stevestatic commentedi don't get, how can i add styles for the teaser-block, and the read-more link? how i it called?
.teaser-block a {} ?!?!
Comment #5
jimmb CreditAttribution: jimmb commentedI was able to get it to work with:
.teaser_block-more-link {
display: block;
}
Jim