Posted by NNSL on September 5, 2012 at 5:38pm
Having difficulty getting captions to work with images. Have downloaded and installed caption filter module but not sure if that is necessary with Drupal 7 or what do to after that to configure. Is there an easier way? Have both IMCE and CKeditor installed and working well, all except no caption option. Thanks.
Comments
=-=
is the caption filter enabled on the text format in use?
Image Captions
They were not checked off but are now. I see no options for captions however the Image caption filter has the following. image-left image-right standalone-image Not sure what that means I have limited HTML skills. Thanks.
=-=
My assumption is that you are using this module: http://drupal.org/project/caption_filter or http://drupal.org/project/image_caption
is this correct? and if so could you please indicate exactly which one is in use?
Image Captions
Yes, I downloaded and installed both image_caption and image caption filter both also 7.X-1.x-dev. Modules page indicate both are enabled.
=-=
well you didn't need both. Pick one and we can work through the module docs.
Image Captions
Yes, I downloaded and installed both image_caption and image caption filter both also 7.X-1.x-dev. Modules page indicate both are enabled.
Image captions
Image caption filter disabled.
=-=
erm... of the two module I listed, neither were called the image caption filter. Please check the project pages of the modules given and determine which one is in use.
If http://drupal.org/project/image_caption have you read the README.txt file included in the module folder. It seems pretty straight forward, including with how to use it with an editor (by adding a class of caption). which instruction are you stuck on? if any.
Image Captions
You're right about the image caption filter, it was something I picked up from another site in an attempt to come at the problem from a different direction. It is disabled and I have image_caption enabled in my modules.
Here is where I get lost:
Add the css definition: .caption{} to the stylesheet used by your WYWSIWYG editor,
or perhaps to your theme style.css file.
I am familiar with style sheets in HTML, their purpose and even their location and how to make some style changes. Haven't delved into them with Drupal yet.
I see a CSS button on my WYSIWYG editor profiles (TinyMCE and CKeditor) but I am unsure how to deal with it. There is CSS path and below CSS Classes.
I have a feeling the .caption{} code needs to contain more information or point to a place where the info is lodged but I am guessing.
Thanks.
=-=
.caption would need to be fleshed out based on how you wanted the captions styled.
for now just add the class and see if it appears in the HTML when viewing the source using firebug. also make sure the .caption class is being called from the stylesheet.
Image Captions
Appreciate your patience. I am able to get the .caption{} into the HTML via the Advanced tab of Image properties window that comes up when inserting picture through CKeditor .
How do I: also make sure the .caption class is being called from the stylesheet?
=-=
class from stylesheet = use firebug on a caption that you've added. Can also add some styling to the .class in your stylesheet. If you make the font bold and the font displays as bold. The .class is being used. Alter as you see fit.
Image captions
Thanks. I am going work on this until I have some more understanding of the CSS and how to access/alter it. Your input has been very helpful but obviously I have some more work to do before I can make best use of advice. Will post when I have made some progress.