Tagged: x
-
AuthorPosts
-
September 22, 2016 at 11:08 am #1186580
spud1114ParticipantI am setting up a site and I want the closed/open icons to be different then what is currently setup in the theme.
I just about have the accordion setup the way I need it except the icons (I want them to be like the files I attached).
Any ideas?
Here is the page
http://www.m-powercoaching.com/dev/leadership-with-intention/September 22, 2016 at 11:34 am #1186628
RahulModeratorHey There,
Thanks for writing in!
Kindly walk-through this thread : https://community.theme.co/forums/topic/change-toggle-icon-and-icon-color/
Hope this helps!
Let us know how this goes!
September 22, 2016 at 12:02 pm #1186661
spud1114ParticipantThanks!
I saw this, however I do not see how to change the icon to an image since the icon I want to use could not be replaced with a character.
September 22, 2016 at 12:31 pm #1186704
Nabeel AModeratorHi again,
Try adding the following code in your child theme’s style.css file:
.x-accordion-heading .x-accordion-toggle:before { content: url(path/to/closed.png) !important; }Change the image path with your image URL. Your other image cannot be added since accordion is using a single item that is rotated when it’s open.
Thank you for understanding!
September 22, 2016 at 1:10 pm #1186765
spud1114ParticipantThanks!
But you can use both images. Here is how I did it:
`
/* Change Icon of Toggle and color when open */
.x-accordion-heading .x-accordion-toggle:before {
content: url(http://www.m-powercoaching.com/dev/wp-content/uploads/2016/09/plus.png) !important;
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-ms-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
}/* Toggle Icon Color when closed*/
.x-accordion-heading .x-accordion-toggle.collapsed:before {
content: url(http://www.m-powercoaching.com/dev/wp-content/uploads/2016/09/minus.png) !important;
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-ms-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
}September 22, 2016 at 1:35 pm #1186802
JoaoModeratorHI There,
Glad to hear you found a solution and thanks for the input.
Thanks
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1186580 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
