CSS syntax when applying to a widget

  • 1
  • Question
  • Updated 4 years ago
  • Answered
At the moment I am using a text widget inside of a custom panel widget so that I can add some styling. What I don't think I am able to do is apply changes globally to other widgets on my site that use the same Preset that I created in the Custom Panel.

If this is not possible, would I be able to just use a .css file so that I can change multiple widgets at once that are attached to this css file instead of using the custom panel? If I am able to do this, where do I put this code, in the text (old) widget that I am using or in a separate widget?



<link rel="stylesheet" href="mystyle.css">

Photo of Randy

Randy

  • 643 Posts
  • 8 Reply Likes
  • in need of clarification

Posted 4 years ago

  • 1
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
Hello Randy,

There may be an easier way. Set up your custom panel as you wish then save this as a preset within the custom panel facility itself. Subsequently you can recall the preset in the edit function of the custom panel and it will appear configured as you've previously set.

You are unable to set css for widgets such as this with style sheets.
Photo of Randy

Randy

  • 643 Posts
  • 8 Reply Likes
Thanks Gop!
Photo of Randy

Randy

  • 643 Posts
  • 8 Reply Likes
By the way, do you have any experience with CMS's? I was thinking of trying some like MODX and Concrete5 but am not sure if they are overkill for what I want to do or if I should just stay with Yola.

Regarding custom panel presets -it would be nice if there was a change all option so that if I am using a preset several times throughout my website, if I make a change to my preset, all of my presets will update accordingly.
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
Open source CMS's are ideal in that you can place anything you dream of in the content. You can still hit flexibility issues with provided and third party plug-ins in that they may not be exactly what you envisage and may still need to be worked around.

All flexible CMS's need a good understanding of HTML and other coding and an HTML editor either at a basic level or a sophisticated WYSIWYG HTML editor. This requires development of skills and knowledge, it doesn't come out of the air.

Re the custom panel: suggest that you propose this as an idea.
Photo of Randy

Randy

  • 643 Posts
  • 8 Reply Likes
Thanks Gop!

I'm still learning html. Actually my show pages were all done in a text editor and then pasted into a Yola widgets. I was hoping that there was a way to add a css stylesheet to a text or html widget so that I could style the widget myself. I'll see if I can find work arounds like using the Custom panel.