close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Class on a <H> tag and class on a <p> tag

Thread began 10/07/2014 8:11 am by SPT | Last modified 10/07/2014 1:10 pm by SPT | 2096 views | 5 replies

SPT

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

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...