Hidden <div> in PHTML, Does some elements hidden in PHTML or? |
Hidden <div> in PHTML, Does some elements hidden in PHTML or? |
Vozd Petrovic |
Aug 5 2020, 01:43 PM
Post
#1
|
Group: Members Posts: 1 Joined: 5-August 20 Member No.: 27,475 |
I have one div and there is no class="" :
<div style="position: fixed; z-index: 999999; bottom: 0; left: 0; right: 0; border: 1px solid #3ba2f4; background:#3ba2f4; text-align: center; padding: 10px 20px; color: #fff; font-size: 13px; line-height: 18px; font-family: inherit;"><b>Welcome</b>TEST TEST <a href="#" style="color: inherit; font-weight: bold; text-decoration: underline;">test</a></div> I have PHTML form with PHP code, that PHTML form is used for every page. I want to remove that <div> but I can't find it in that PHTML form. Are some elements hidden in PHTML forms? Sorry for my bad English. This post has been edited by Vozd Petrovic: Aug 5 2020, 01:53 PM |
pandy |
Aug 5 2020, 04:07 PM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Do you mean you see "Welcome TEST TEST test" on the page but you don't find it when you view source? Then it must be written by PHP. An include maybe? I don't know your setup, if the source of the page is a single php file or, as here at the forum for example, many php files contribute.
|
Christian J |
Aug 5 2020, 04:21 PM
Post
#3
|
. Group: WDG Moderators Posts: 9,653 Joined: 10-August 06 Member No.: 7 |
I want to remove that <div> but I can't find it in that PHTML form. Are some elements hidden in PHTML forms? It doesn't have to do anything with PHP forms, though it's possible for HTML code to be generated by PHP. It could also be generated by javascript, or be ordinary static HTML. The DIV uses CSS to make it appear at the bottom of the browser window, so the actual HTML code could be anywhere. Your browser's developer tools should indicate where in the page's HTML structure the DIV exists. |
pandy |
Aug 5 2020, 04:57 PM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Do you mean you see "Welcome TEST TEST test" on the page but you don't find it when you view source? Then it must be written by PHP. An include maybe? I don't know your setup, if the source of the page is a single php file or, as here at the forum for example, many php files contribute. I didn't express that too well. By view source I didn't mean View Source from the menu in your browser. There you would see it if it is as I think. I meant when you read the source file. I doesn't need to be in a HTML block. It can be generated by PHP in other ways. I assumed you see this... CODE <div style="position: fixed; z-index: 999999; bottom: 0; left: 0; right: 0; border: 1px solid #3ba2f4; background:#3ba2f4; text-align: center; padding: 10px 20px; color: #fff; font-size: 13px; line-height: 18px; font-family: inherit;"><b>Welcome</b>TEST TEST <a href="#" style="color: inherit; font-weight: bold; text-decoration: underline;">test</a></div> ... when you View Source in the browser but can't find it when you open the source file and read through it. Is that correct? |
Lo-Fi Version | Time is now: 19th April 2024 - 07:13 PM |