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

How to hide the annoying [privacy script in document]?

Community Beginner ,
Nov 26, 2022 Nov 26, 2022

Copy link to clipboard

Copied

How can I hide the annoying privacy settings block in live view? Thank you for your help.

 

[Preformatting removed by moderator.]

 

TOPICS
Other

Views

617

Translate

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 2 Correct answers

Community Expert , Nov 27, 2022 Nov 27, 2022

This has nothing to do with Dreamweaver.  What you see is coming from scripts in your document.

 

Switch from Live to Design View (Ctrl + Shift + F11). 

Or disable scripts in your code.

 

 

 

Votes

Translate

Translate
Community Expert , Nov 28, 2022 Nov 28, 2022

Switching to Design View will disable scripts while adding content. Your site won't necessarily look exactly how it does in Live View, but you should be able to work without being blocked by the privacy statement.

Votes

Translate

Translate
Community Expert ,
Nov 26, 2022 Nov 26, 2022

Copy link to clipboard

Copied

No idea what you mean by privacy settings block. 😕   Please show us your code or a screenshot of what you mean, excluding any sensitive information of course.

 

 

 

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

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 Beginner ,
Nov 27, 2022 Nov 27, 2022

Copy link to clipboard

Copied

cookie banner in DW.jpg

Votes

Translate

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 ,
Nov 26, 2022 Nov 26, 2022

Copy link to clipboard

Copied

could you make a screenshot so that we can better understand what you are talking about exactly, what is bothering you?

Votes

Translate

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 Beginner ,
Nov 27, 2022 Nov 27, 2022

Copy link to clipboard

Copied

Hi Nancy, Hy Lena,

exactly, its a cookie banner, what I don*t want to see while programming the site

Votes

Translate

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 Beginner ,
Nov 27, 2022 Nov 27, 2022

Copy link to clipboard

Copied

cookie banner in DW.jpg

Votes

Translate

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 ,
Nov 27, 2022 Nov 27, 2022

Copy link to clipboard

Copied

This has nothing to do with Dreamweaver.  What you see is coming from scripts in your document.

 

Switch from Live to Design View (Ctrl + Shift + F11). 

Or disable scripts in your code.

 

 

 

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

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 Beginner ,
Nov 28, 2022 Nov 28, 2022

Copy link to clipboard

Copied

many thanks

Votes

Translate

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 ,
Nov 28, 2022 Nov 28, 2022

Copy link to clipboard

Copied

In the past, DW had a feature that could have met your current needs, unfortunately it has been removed much to the chagrin of the community.

 

In fact, what you need is a CSS sheet that is only active during development usualy called 'Design-Time CSS sheet'.

You can however reproduce a workaround that allows you to hide the desired areas only during development.

 

You can as @Nancy OShea recommends deactivate javascript, but this can harm some phases of your development.

 

I don't know how you develop and what are your habits, or the technos you use... so perhaps what follow can be beside a real usefulness. Anyway let's give it a try :

 

I would say that the simplest and least elegant way would be to create a specific CSS style sheet for your cookies management.

  1. First, isolate all the specific rules specific to the visual management of the alert message concerning the taking into account of cookies and move them to a cookies.css sheet (for example)...
  2. Put this CSS sheet file inline (and preserve a local version called cookies.bak, or cookies_bu.css... as you like),
  3. Now create a new local sheet called cookies.css on which your declaration will hide the main container of your annoying tab. for example :
#container_for_cookies_banner {
    display:none;
}

4. Now, it is very important to hide this file from the file palette by right-clicking on the file and choosing cloacked. This file will not be put online when your site will be synchronized

 

So, as a result, the cookies.css placed online will handle the cookie's information banner in a correct way and the local cookies.css will allow you to hide the tab that is bothering you locally.

 

I hope I haven't been too confusing in this explanation.

Votes

Translate

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 Beginner ,
Nov 28, 2022 Nov 28, 2022

Copy link to clipboard

Copied

sounds very good. Many thanks, will try

 

Votes

Translate

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 ,
Nov 28, 2022 Nov 28, 2022

Copy link to clipboard

Copied

Switching to Design View will disable scripts while adding content. Your site won't necessarily look exactly how it does in Live View, but you should be able to work without being blocked by the privacy statement.

Votes

Translate

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 Beginner ,
Nov 28, 2022 Nov 28, 2022

Copy link to clipboard

Copied

LATEST

simpliest way, thanks

Votes

Translate

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 ,
Nov 26, 2022 Nov 26, 2022

Copy link to clipboard

Copied

Without more information, I'm wondering if what you're seeing is actually generated by your computer's operating system or anti-virus & firewall software.

  • Which version of DW do you have?
  • Which operating system?
  • And which anti-virus/firewall are you using?
  • What were you doing when you experienced the problem?

 

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

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 ,
Nov 26, 2022 Nov 26, 2022

Copy link to clipboard

Copied

Based on your previous question from September, you're using a Cookie Banner on your site.  Is that what you're seeing in Dreamweaver?  Or is this question unrelated to that JavaScript?

 

 

 

 

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

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