vis hal
Forum Replies Created
-
Forum: Plugins
In reply to: [Shortcodes Ultimate - Content Elements] Link for currect tabI’ve done it with spoilers, I guess it should work with tabs too
<a href="#content2-hotspot">Read Content 2</a> ... [su_spoiler anchor="content2-hotspot"] Content 2 [/su_spoiler] ...Forum: Plugins
In reply to: [Shortcodes Ultimate - Content Elements] W3C ErrorI believe this should help you out!
wp_enqueue_styleok – i think you can hack around and do it. but am not sure it’s a good approach!
so the way it works is that it creates a css class based on the value of icon. by default i think the css class is su-spoiler-icon-plus. if you use icon=”arrow”, then the class becomes su-spoiler-icon-arrow.
Now, in your dashboard, if you go in the Custom CSS section of shortcode, you can see the css it applies for spoilers in box-shortcodes.css
I believe (I have not tested) that you can do something like icon=”custom_name” and then add a background image to that class in the custom css that shortcode allows you to create.
Again, I have not tested it! Give it a try and let me know 🙂
Hi!
As for custom icons specifically… I don’t know yet! Will look into it!
There are several icons already available. In case you didn’t know:
Go to your dashboard > Shortcode > Example > Accordions, spoilers, different styles, anchors
Scroll down completely and you will find a list of available icons.
An example of how to achieve this is given and I’ve taken an extract from it:
[su_spoiler title=”plus” icon=”plus”] Spoiler content [/su_spoiler]