Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

No Visual media queries bar

Engaged ,
Dec 18, 2018 Dec 18, 2018

Copy link to clipboard

Copied

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.

Views

341
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 18, 2018 Dec 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.

Votes

Translate
Community Expert ,
Dec 18, 2018 Dec 18, 2018

Copy link to clipboard

Copied

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.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 18, 2018 Dec 18, 2018

Copy link to clipboard

Copied

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 18, 2018 Dec 18, 2018

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines