ASP.net "data-dark-logo" not working

1 reply · opened Aug 20, 2020

Eerpconsult365Aug 20, 2020

Because "data-dark-logo = "~/images/canvasone-dark@2x.png" was not working in my ASP.net html code.
Maybe the reason is the '~'-sign I have to use to find the file on every page.

I tried to switch it to the <picture> Tag.
But it still not work with "media="(prefers-color-scheme: dark)"".
If I tried it for testing with "media="(min-width: 600px)"" and the right picture shows up.

Here is the Code:


     
     WORKING-->
   
![attachment](~/images/canvasone.png)

Have you an idea what the problem could be.

Kind Regards

Manuel

SSemicolon WebSTAFFAug 21, 2020

Hello,

The tag is currently not supported. You will need to use the Default Structure provided. According to your usage, it would be more recommended to use Absolute (Full) URLs for the Images in the Logo. Ex: https://your-website.com/images/logo.png .

This should definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard