Inserting HTML into Joomla article

I am trying to insert this into my joomla article:

<div class="body">
These are the contents of the body
</div>

However, the code is output in the raw...  which is not what I want, I obviously want it to be an actual DIV, not just say "div."  I noticed joomla puts the article contents into a div...  I don't really want that to happen either.
LVL 14
EMB01Asked:
Who is Participating?
 
Amanda WatsonConnect With a Mentor Web DeveloperCommented:
If you want to create your own div tag then you can easily add that into the html code of the article.
There is a button in the article editing saying show/hide
then you get into the html code and can add your own div within that article if that is what you are after?
0
 
jimswebCommented:
0
 
EMB01Author Commented:
Thanks, but how do I get rid of the extra divs it makes?  I attached a screenshot for clarification.
ss030211.jpg
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
Amanda WatsonWeb DeveloperCommented:
Any chance of seeing a link to your site?
Is this unexpected layout a result of you using the div in your article?  If so did you close the div?

0
 
EMB01Author Commented:
Sure:

http://leslehmandesign.com/signature/joomla/article

I just used that HTML for brevity; the actual HTML is different.  For the content, I'm using:

<jdoc:include type="component" />
0
 
Amanda WatsonWeb DeveloperCommented:
Ok so your content isn't displaying properly..
I am getting a little confused as to what you wanted to do and what you have done and whether this article info is showing badly because of what you have added into your code?

I am not clear if you have added divs into your index.php or into the actual article in the article manager.

With the items that are showing with no styling etc they are part of the article parameters.   You can actually disable these parameters in the article manager by hitting "hide" for the pdf/email/article publisher etc.

Do you know where that is?

Also did you close your div tag in wherever you added it...it seems the styling may be off because you didn't close a div tag somewhere
0
 
EMB01Author Commented:
I tried to hide everything, but it still shows up.  See screenshot for my config settings.  Also, here's the live link:

http://leslehmandesign.com/signature/joomla/article
ss030211-2.jpg
0
 
EMB01Author Commented:
Thanks, I'll open another question for the other since I need help now.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.