Tagged: x
-
AuthorPosts
-
April 28, 2016 at 6:32 am #903903
weareobeoParticipantI’m hoping to add images beside each heading of the accordion items. I want them to stick to the right side so they line up with the one below.
Any help?
April 28, 2016 at 5:49 pm #904883
JadeModeratorHi there,
Please refer to this thread that is related to what you’re trying to achieve: https://community.theme.co/forums/topic/accordion-header-image/
Hope this helps.
May 5, 2016 at 9:50 am #914348
weareobeoParticipantThanks for that. It works great when I add the code to cornerstone and save. It looks great until I close CS. It’s stripping away the src img code though. So no image appears.
accordion_item title="Household <img src='http://weareobeo.com/wordpress/wp-content/uploads/2016/05/household.png' />" parent_id="my-accordion"May 5, 2016 at 4:24 pm #952145
FriechModeratorHi There,
You need to insert the image via CSS. To do that add a class to each of your accordion item. And then add this custom css on your customizer
.yourclass .x-accordion-heading .x-accordion-toggle:after { content: url('IMAGE URL HERE'); float: right; }Replace the yourclass with the actual class that you assign to your accordion item, and replace the IMAGE URL HERE with your actual image URL.
Hope it helps, Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-903903 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
