About Html codes on Blocks

davebaswel2
2 Posts
davebaswel2 posted this 26 June 2019
Ask a Question

Hi! I can hide the block, but the HTML code that I put there was disappeared. Is it possible to hide the block without the html code disappear?

Hi! I can hide the block, but the HTML code that I put there was disappeared. Is it possible to hide the block without the html code disappear?
Vote to pay developers attention to this features or issue.
3 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 26 June 2019

Hi David,

Please provide your project and indicate what HTML you have inserted. I have tried it with the sample HTML, inserted it into the block, then set that Blck to be hidden in every view and the block with the HTML still was present in the HTML of the page.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi David, Please provide your project and indicate what HTML you have inserted. I have tried it with the sample HTML, inserted it into the block, then set that Blck to be hidden in every view and the block with the HTML still was present in the HTML of the page. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
davebaswel2
2 Posts
davebaswel2 posted this 26 June 2019

I use the back to top button with icon here's the code

            <script src="https://kit.fontawesome.com/795d9cadb0.js"></script>
            <style>

myBtn1 {

cursor: pointer;
width: 32px;
height: 32px;
background-color: rgba(0, 0, 0, 0.7);
color: #999;
font-size: 20px;
text-align: center;
position: fixed;
bottom: 10px;
z-index: 10;
line-height: 1.4;
right: 10px;
right: -ms-calc(-594.5%);
}

myBtn1:hover {

background-color: #06A828;
}

            <button onclick="topFunction()" id="myBtn1"><i class="fa-chevron-up fas"></i></button>
            <script>

window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 400 || document.documentElement.scrollTop > 400) {

document.getElementById("myBtn1").style.display = "block";

} else {

document.getElementById("myBtn1").style.display = "none";

}
}

function topFunction() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}

I use the back to top button with icon here's the code <script src="https://kit.fontawesome.com/795d9cadb0.js"></script> <style> #myBtn1 { cursor: pointer; width: 32px; height: 32px; background-color: rgba(0, 0, 0, 0.7); color: #999; font-size: 20px; text-align: center; position: fixed; bottom: 10px; z-index: 10; line-height: 1.4; right: 10px; right: -ms-calc(-594.5%); } #myBtn1:hover { background-color: #06A828; } <button onclick="topFunction()" id="myBtn1"><i class="fa-chevron-up fas"></i></button> <script> window.onscroll = function() {scrollFunction()}; function scrollFunction() { if (document.body.scrollTop > 400 || document.documentElement.scrollTop > 400) { document.getElementById("myBtn1").style.display = "block"; } else { document.getElementById("myBtn1").style.display = "none"; } } function topFunction() { document.body.scrollTop = 0; document.documentElement.scrollTop = 0; }

Last edited 26 June 2019 by davebaswel2

Support Team
Support Team posted this 09 July 2019

Hi David,

Sorry for the delay in responding. I have copied your code, inserted it into the block, hide the block for all the views and then previewed the page. I have inspected the code and the HTML was still in the page. Please check that the code is correct.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi David, Sorry for the delay in responding. I have copied your code, inserted it into the block, hide the block for all the views and then previewed the page. I have inspected the code and the HTML was still in the page. Please check that the code is correct. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments