Inserting HTML into Joomla article

Posted on 2011-03-02
Last Modified: 2012-05-11
I am trying to insert this into my joomla article:

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

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.
Question by:EMB01
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3

Expert Comment

ID: 35021398
LVL 11

Accepted Solution

Amanda Watson earned 500 total points
ID: 35021576
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?
LVL 14

Author Comment

ID: 35021698
Thanks, but how do I get rid of the extra divs it makes?  I attached a screenshot for clarification.
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 11

Expert Comment

by:Amanda Watson
ID: 35021952
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?

LVL 14

Author Comment

ID: 35022148

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

<jdoc:include type="component" />
LVL 11

Expert Comment

by:Amanda Watson
ID: 35022246
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 seems the styling may be off because you didn't close a div tag somewhere
LVL 14

Author Comment

ID: 35022363
I tried to hide everything, but it still shows up.  See screenshot for my config settings.  Also, here's the live link:
LVL 14

Author Closing Comment

ID: 35023381
Thanks, I'll open another question for the other since I need help now.

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is a tutorial for making your own Joomla templates. Note before reading, you should have some existing knowledge of web development using HTML and CSS. Design Layout: Design your template in a graphics program like Adobe PhotoShop or Corel…
What you will need: Any version of Photoshop or similar product (examples in Photoshop) Internet Access FTP Access to your joomla install or ability to upload images within joomla administrator backend Create Image: Lets start off with cre…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question