By Minty on
img_assist is working OK for me, but when the image is inserted, it includes HTML tags that I don't want.
I don't want it to make me have the caption in strong tags.
Can anyone tell me where this code is generated and if it is possible to edit it?
Comments
A themeable function in the .module file
This is a themeable function, so what you can do, is copy the code of that function into the template.php file you have in your theme folder (if you have no template file like that, just create it, it's used for those exact things)
the code that you need to change is included here below:
change the following lines:
First, change the name of the function, replace 'theme' with the name of the theme you're using (i.e. bluemarine, if you're using that theme)
Next, change the lines where the caption is defined (remove the strong tags):
And you're done :)
The original function:
HTH
/elfur.is
Brilliant - thank you
Now I can modify the output to give me the really clean code that I want with all styling issues dealt with in .css.
Not only that, but I can see that template.php will be useful in other areas.
Drupal really has a long learning curve, but it's worth it, and help like this in the forums is really appreciated!