I wonder if it would be possible to integrate a code which shows the widget ID, so I don’t need an extra plugin for this.
Widget Id
This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.
Hi Heinz,
Unfortunately, outside of viewing the page source itself to find the widget id, this isn’t possible at this time. I’ve marked this thread as a feature request. We often look through these threads to get ideas for what to add in our future updates. Hopefully, we’ll be able to add this in a future update.
I saw that there is a possibility to name the class of the widgets when I put it in a row on a page, but in the code the don’t appear then, so I don’t know how to address them with CSS.
If I add a widget in a sidebar I don’t have this class-option.
Hi Heinz,
Oh. Sorry, I was treating this more as a (widget/page builder) developer type question. Okay, so the easiest way to see the widget, row or column id is to find it in your source code. Please refer to this page for information on how to do that in your browser. For reference, here is the general structure of the SiteOrigin Page Builder data:
#panel-PAGEID-ROWNUMBER-COLUMNNUMBER-WIDGETNUMBER
If your row id or widget class isn’t outputting – that’s a problem, do you have a public URL where we can take a look at what’s going on?
Regarding your sidebar, I highly recommend adding a layout builder to your sidebar and then adding your desired widgets to that as it’ll give you more control over your sidebar.
Great! Thank you very much, that helped a lot. Have seen these #pg and #pl IDs and used them but for some reason I had still troubles to address certain things. I will play around with these.
Thank for the tip with the builder in the sidebar, have done that already in another widget area, but sidebar seems to be a perfect place for it ;-).