Skip to main content
Inspiring
December 18, 2018
Answered

No Visual media queries bar

  • December 18, 2018
  • 2 replies
  • 390 views

When I use this:

<link href="../css/mediaQuery.css" rel="stylesheet" type="text/css">

I see the Visual media queries bar.

When i use this: (siteRoot() genrates the root)

<link href="<?php echo siteRoot()?>/css/mediaQuery.css" rel="stylesheet" type="text/css">

The css rules in the mediaQuery.css are applied but the Visual media queries bar is not shows. (I do press the button to show them)

Any reason why?

I also see the "mediaQuery.css" at the top of the panel as one of the open files and i can click it and see it's content.

This topic has been closed for replies.
Correct answer Jon Fritz

Which would make sense because the actual Live View window uses the built in browser that's accessing your testing/remote server to show you a browser-like preview after it's parsed by the server.

I assume DW's interface functionality has no ability to access the server to obtain the correct code to add items within the GUI itself.

2 replies

karpiyonAuthor
Inspiring
December 18, 2018

but it does respect the css in this file in live view

Jon Fritz
Community Expert
Jon FritzCommunity ExpertCorrect answer
Community Expert
December 18, 2018

Which would make sense because the actual Live View window uses the built in browser that's accessing your testing/remote server to show you a browser-like preview after it's parsed by the server.

I assume DW's interface functionality has no ability to access the server to obtain the correct code to add items within the GUI itself.

Jon Fritz
Community Expert
Community Expert
December 18, 2018

My guess would be because DW doesn't parse PHP code for interface items.

Basically, the Live View rendering engine isn't being used to create/populate those bars in the interface, so DW doesn't know what to do with the php in the link.