The current CVS version of the service_links module uses the class "service-links" as seen below.

When using FriendsElectric as a theme, the output looks a little funny, with the links on a different line to the Bookmark/Search this post:.

So my questions;

  • Is the output on two lines what you expected? and;
  • Where are the following classes defined service-links and service-label?

I have also IMHO cleaned up the code a little to suit myself (see below).

CVS Version:

function theme_service_links_node_format($links) {
  return '<div class="service-links"><div class="service-label">'. t('Bookmark/Search this post with: ') .'</div>'. theme('links', $links) .'</div>';
}

My Version:

function theme_service_links_node_format($links) {
  return '<div class="links">. t('Bookmark/Search this post: ') . theme('links', $links) .'</div>';
}

The differences are fairly minor, and the output renders on one line with the same style as other links.

Russ

Comments

frjo’s picture

Status: Active » Closed (works as designed)

The current output is by design. This way you can easily style the output anyway you like with only css. See http://drupal.org/node/70115.

The following code would put everything on one line e.g.

.service-label {
  display: inline;
}
udijw’s picture

Sorry for the lame question:
In which file should I add the

.service-label {
  display: inline;
}

Thanks,
Udi

apsivam’s picture

Your theme's css file

udijw’s picture

thanks apsivam,
I placed it in my themes/garland/style.css file, but saw no change. any idea what I am doing wrong?
thanks,
Udi

apsivam’s picture

may be you will have to do a force reload on your browser to update cached version of style.css file