Getting Drupal's links to line up like you want them is not always easy. By default, the "read more" link on the front page is placed last in the item of links, while "add new comment" is placed first. If you examine the page's CSS, you'll notice that comment_add is prepended by "first," while "node_read_more" is prepended by "last." I think it's a lot more intuitive to place "read more" first, since I am likely to read the rest of the article before placing a comment. To change around the link placement, insert the following code snippet in your theme's stylesheet:
li.last.node_read_more { text-align: left } <br />
li.first.comment_comments, li.first.comment_add { float: right } If you have more links in your links section than simple "read more" and "add new comment," (for example, "forward" or "print"), then you can apply these style changes to these declarations as well. For example, to move the blog links after "read more" as well, you would use:
li.blog_usernames_blog What if you would rather have the "read more" link immediately following the teaser, and not in the links section at all? This is a common approach used by many sites, and it is a very intuitive approach since as your eyes leave the last sentence of the teaser they immediately fall upon the "read more" link. Drupal has a contributed module, Read More Tweak, that is for this purpose. Note, however, that during testing we've found that the nodeteaser and excerpt modules conflict with the use of this module. So if you are using either of these modules your inline "read more" links may not appear at all.
All Content © 2005 - 2009 Contract Web Development, Inc. All Rights Reserved. Privacy Policy | Terms of Use | Powered by Drupal
Read More Tweak...
Hi,
I used for a long time this helpful module "Read More Tweak"... but I did not know that it was incompatible with the excerpt-module... However, later I tried out the excerpt module, as I was looking for a similar feauture... As I noticed the incompatibility with the read-more-tweak, I uninstalled the excerpt-module again...
Unfortunately, since then the readmore-links disappear on *some* nodes (NOT on all but most nodes, while it does not matter, if the node was created in use with the excerpt-module or not). So I cannot get it back working... correctly
Do you have perhaps an idea, how I could get the tweak-module back working? How can i now fix this comflict?
Read more issue
Hi there,
We've experienced the same problem with read more - that the links simply don't appear for some nodes. We had either nodeteaser or excerpt installed so we assumed that was the problem. For now our solution is to use the CSS method above in lieu of the read more tweak module.
Re: Read more issue
Hi again,
Thanks for this quick reply... I'm sure it is the excerpt module (I never used nodeteaser) - but in my case deactivating/uninstalling the module does not help further.
Well, nevertheless I tried to implement the snipplet above (even though it is only a temporary solution for me). It did not work at first (< br /> tag!?!), but finally I got the thought of it for adjusting the other details too (except that the other links are now completely unordered?). Thanks!
If you hear of a better workaround or even a fix... please contact me...
Apropos... sorry, I did not even give a hint (in the first comment) about who I am...
hQuadrat (www.hQuadr.at)
bg image
how would the css be if I want different bg images to each link in the menu?
sherif
drupal read more link
Nice - I've been trying to get the read more placement to work for some time now. This is just the information i was looking for.
css for read more links
Hi there,
We've experienced the same problem with read more - that the links simply don't appear for some nodes. We had either nodeteaser or excerpt installed so we assumed that was the problem. For now our solution is to use the CSS method above in lieu of the read more tweak module.
Read more issue
how would the css be if I want different bg images to each link in the menu?
CSS menu background images
Hi Lara,
You can generally add background to your menu images using the following CSS (in this example the menus are generated using Drupal's Nice Menus module - you might need to adjust your CSS element accordingly):
#block-nice_menus-1 a { background: #fff url(example.gif) no-repeat top center }
Thanks for this!
Thanks a ton - I've been trying to find a way to get my "comment" links to appear in a way similar to Wordpress for ages. Now I have the flexibility to place my read more links where I want them