Theme Block Classes wrong target
Permalink
hi guys
i'm new to this concrete 5. i'm trying to create getThemeBlockClasses function just like the tutorial on the developer guide.
but when i try to apply the design on the images block, it's not working!
and the class happens to apply on the image parent.
as you can see : ( the .img-thumbail are apply to the div not the images )
<div class="ccm-custom-style-container ccm-custom-style-maincontent2-18 img-thumbnail img-thumbnail">
<img src="8.jpg" alt="test" width="299" height="384" class="ccm-image-block img-responsive bID-18">
</div>
but when i try with the elemental themes
its working just fine
anyone kindly enough to help me out?
Thank you
i'm new to this concrete 5. i'm trying to create getThemeBlockClasses function just like the tutorial on the developer guide.
but when i try to apply the design on the images block, it's not working!
and the class happens to apply on the image parent.
as you can see : ( the .img-thumbail are apply to the div not the images )
<div class="ccm-custom-style-container ccm-custom-style-maincontent2-18 img-thumbnail img-thumbnail">
<img src="8.jpg" alt="test" width="299" height="384" class="ccm-image-block img-responsive bID-18">
</div>
but when i try with the elemental themes
its working just fine
anyone kindly enough to help me out?
Thank you
What you are seeing is correct. I think you are expecting the class to be assigned to the img tag. The way it works is the class will be assigned to the parent div tag.
Example: .image-test-class added using getThemeBlockClasses()
The .img-test-class is added to the containing div tag, not the img tag.
The way to target the img tag using this class:
The img tag has a class of "ccm-image-block" assigned to it by default.