Class on a <H> tag and class on a <p> tag
Hello Jason,
I can fix this manually by changing my <p> tags but just curious about this.
When Logged into the CMS and on the page to edit: (does not happen if not logged in) explained better below -
So if I style a <p> and then place the Developer Notes inside of he tags my styles are removed when in "Edit" or in "Hide live edit".
However if I place the developer notes inside of a styled <h> tag the styles remain.
This is confusing the client.
Example from the source code:
<p class="Whitey PadLeft20 PadRght20">
<?php
include('/home1/plainvi5/public_html/WA_CMS/addtosite.php');
echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, '1- Home Page', 'Left Content', false);
?>
</p>
Whitey making font white - other styles are self explanatory.
But when logged into the CMS those styles are removed and font/ layout reverts to basic black with no padding.
However this is not the case on an <h> tag. Example:
<h1 class="Whitey PadLeft20 PadRght20">
<?php
include('/home1/plainvi5/public_html/WA_CMS/addtosite.php');
echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, '1- Home Page', 'Title Left', false);
?>
</h1>
Keeps the H1 styling attributes.
No bigs. I can just place all <p> inside of a div with the styles but now I need to go through the entire site and do this. Just thought maybe there was something stripping the <p>s and ot the <h>s.
Cheers