How to edit HTML in a Drupal web page?

I have a Drupal test site with a problem on the front (home) page.
There's a sticky page node in the content of the page titled "Our Mission" - see here:
http://at.mywitsend.co.nz/

Between that page and the primary links on the header is a mystery empty div which has somehow been created along with the "Our Mission" page:

<div class="mission">
<br />
</div>

That div inserts an empty block which you can see on the page. Problem is, I have no idea how to edit the actual HTML to get rid of it.

Help!



LVL 24
Alan HendersonRetired marine engineerAsked:
Who is Participating?
 
sivagnanam chandrakanthConnect With a Mentor Technical LeadCommented:
Go to page.tpl.php file in your themes folder

It will have following code

<div id="container" class="layout-region">
<div id="sidebar-left" class="sidebar">
</div>
<div id="main">
<div class="main-inner">
<div class="mission">
<br/>
</div>
<div id="content" class="clearfix">
</div>
<div class="feed-icon clearfix">
</div>
</div>
</div>
</div>

Remove the <div class="mission">
<br/>
</div> from that.

                   OR

Go to your style.css file in your selected themes folder

.mission {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:#FFFFFF url(images/bg-shade-white-lrg.png) repeat-x scroll left bottom;
border:1px solid #EEEEEE;
color:#000000;
margin:0 0 1px;
padding:15px;
}

Remove this 4 lines

background:#FFFFFF url(images/bg-shade-white-lrg.png) repeat-x scroll left bottom;
border:1px solid #EEEEEE;
color:#000000;
margin:0 0 1px;
padding:15px;

Hope you are problem will solve this
0
 
Amanda WatsonConnect With a Mentor Web DeveloperCommented:
The basic page layout of your site comes from the page.tpl.php file in your chosen theme's folder. Does that help?
0
 
Alan HendersonRetired marine engineerAuthor Commented:
Thank you both!

The offending code I removed was:
           <?php if ($is_front && $mission): ?>
             <div class="mission"><?php print $mission; ?></div>
           <?php endif; ?>
 
 Problem fixed.
 
 :o)
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.