This forum is for assistance with theme development.

svg logo is not displaying

Hi All,

I've subthemed olivero and am just making a few adjustments. I uploaded an svg logo to sites/default/files and have specified it on the 'path to custom logo' settings field as 'logo.svg'. When I use the browser developer tools to look at the rendered html, I can see that the src for the logo is correct, but the rendered size is 0, so obviously its not displaying anything. Is there something obvious that I did wrong, or will olivero just not display svg logos?

FOOTER MENU

Hi everyone!

i want to ask you something, how can i reduce the height of footer menu on drupal 9? Bartik theme 

Can you show the way to think about these situations?

Thank you in advance!

Custom front page for Anonymous visitors only

I have an intranet website. You must log in to be able to view content.

I can accomplish this by not giving the permission "View published content" to the Anonymous user role, only to the Authenticated role.

However, this results in a rather nasty looking "Access denied" error page being shown to Anonymous visitors.

What I want to do is to not show "Access denied", but a friendly greating ("Howdy, stranger!" – I'll expand it when I get this working).

How to readonly change the creation date in node view?

After thinking about it, I decided to keep the system 'creation date', but modify it in the view node to adapt the format so that users can see the date with the Italian format (eg. 27 August 2022)
With Views it 's easy, but here I don't know how to do it.
Has anyone already solved this kind of need or know how it could be done?
Thank you very much

A simple theme for Drupal 9?

Is there responsive Drupal 9 themes that allow easy editing? I just want to have it ready for all platforms (mobile first), and then add my own colors, font sizes etc. I tried Bootstrap 5, made a sub-theme, but it seems much too over my head and nothing I do in the CSS seems to have any effect on the website.

How do I keep a twig variable from getting cached?

I have a content-type (house) with a date field "field_visiting_date" to indicate when a house can be visited.

Instead of just display the date, I also show how many days there are left until it's visiting day,
so in short, the difference in days between the visiting_day date and today. I currently have in my node display "teaser" twig file:

Pages

Subscribe with RSS Subscribe to RSS - Theme development