Where can I remove the tags so the Title of the uploaded image isn't brutally bolded? Also, this should be a css thing, right?
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | img_assist-259452.patch | 1.24 KB | monotaga |
| #2 | img_assist-259452.patch | 1.23 KB | monotaga |
Where can I remove the tags so the Title of the uploaded image isn't brutally bolded? Also, this should be a css thing, right?
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | img_assist-259452.patch | 1.24 KB | monotaga |
| #2 | img_assist-259452.patch | 1.23 KB | monotaga |
Comments
Comment #1
sunThis is a . You can override the
font-weightby using the selectorspan.inline .caption strongin your theme.Comment #2
monotaga commentedIn a particular installation, I found it more helpful to override theme_img_assist_inline() in my template.php and give the title and description separate spans with their own classes, esp. because my client wanted to two on separate lines and without the separating colon.
EDIT: The attached patch is wrong. Use the one in my follow-up comment when overriding theme_img_assist_inline().
Comment #3
monotaga commentedHere's the correct patch if you were wanting to override your theme the way that I did. (The patch in #2 is bogus.)
Comment #4
monotaga commentedComment #5
sunI'd be open to
1) Apply a class on the existing STRONG tag (without changing the tag to a SPAN).
2) Wrap the description in a SPAN, as that shouldn't result in visible styling.
Powered by Dreditor.
Comment #6
monotaga commentedsun,
Your suggestions sound fine by me to keep things backwards compatible. Overriding the CSS isn't really that hard, so I don't know why I changed the strong tag to a span.
Would you consider getting rid of the hardcoded ": " between the title and description, though? For the sake of backwards compatibility, perhaps a setting variable could be set up that would be inserted between the two, like :
$caption = '<strong class="image-assist-caption-title">'. $attributes['title'] .$image_assist_caption_separator . '</strong>'. $attributes['desc'];This could default to ": ", but could be user changeable via the admin settings page.
Another approach could be through an :after pseudo-class on your strong tag.
What do you think? I'll be happy to submit a patch for review based on what you think the best way to go on this is.
Thanks!