Hugo Academic: Adapting old hero widget CSS custom code #2213
-
|
Hello, I hadn't updated my website in a long time (at least 3 yrs), and a few weeks ago I decided to upgrade everything, Hugo and the Hugo Academic theme: The content is here: I wanted to customise my fonts, padding between sections, and hero widget in the same manner as I had before. So I literally copied my entire customised CSS code which used to be placed under While in doing so the font and padding are now working, I can't figure out how to customise the hero widget whatsoever. Probably there is a lot of older CSS there that doesn't even work anymore, but I have no idea what to keep and what to remove. I suspect that some of the classes for the widget have changed?! For instance, my original And I could customise it in But now the equivalent bits in And it seems that apart from: the rest of the CSS code in I am useless when it comes to to CSS btw, so I have been operating on a trial-an-error basis because unfortunately I do not have the time to learn it properly. Basically, I would like to have my hero front image (under This is the actual webpage: Ideally I would only have it proportionally stretched or shrunk if the size of the screen changed relative to the image size (e.g. massive screen or a smart phone). I would really appreciate it if someone could point me in the right direction on how to update my CSS code pertaining to the hero widget under Thanks in advance for your guidance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Have you tried using a |
Beta Was this translation helpful? Give feedback.


Have you tried using a
blankwidget with that image as its background image? Might be easier than customizing theherowidget