Home>Support>Coustom Widget Icon

Coustom Widget Icon

Hi there,

I love your plugin, nevertheless I’m heavely customising it with a plugin (outputting clean foundation 6 code, more options for full ZF6 support and so on). This plugin will be open source & available @github, so hopefully, you’re willed to help… even without pro. Do it for the goodwill ;o)

First:
Currently I am restyling the backend view of the pagebuilder to give it a (in my personal view) better UX. As I’ve seen, as you attach the “display:inline-block” to a section it will shrink down. Which is nice if you have many options. Like in my example building a slider plugin: you have global options and 3 breakpoints. Therefore 4 options AND an additional repeater for the slides, making it 5 painable long sections instead of 2 rows.

Still it’s very hard to style the widgets I the way I want, without using thousands of classes and painfull overwrites and a lot of “!important”s. Is there any chance to add a class to a custom widget in the backend? So basically extending the class for the widgets

Second:
Also for styling it would be nice to add Icons to a section, like a wrench, a phone, a table and a desktop Icon for the above example. So it’s even easier to understand at the first view. The “optional” badge would be shown next to the title, the “minimize” / “maximize” Icon would be reskinned for better overview. If not, a custom class would still make it easier so add icons, see the first issue.

Can you help me with a matching hook? I thought of:
https://pasteboard.co/IUkloOj.png

Also, I’m willed to pass the backend “theme” as open source if you help me out with this one.

Thank you in advance””

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 4 years, 7 months ago roya

    I forgot the second image: https://pasteboard.co/IUktaKm.png

  2. 4 years, 7 months ago Alex S
    Hi, I Work Here

    Hi Roya,

    1. You can add a custom body class to the admin interface with admin_body_class.

    2. Unfortunately, this isn’t currently possible so you’ll need to use CSS to do this. You may also be able to achieve this with PHP by creating an altered version fo the Section form field. I’ve logged this as a feature request.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More