Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8947057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:39:23+00:00 2026-06-15T12:39:23+00:00

I am looking to remove system generated css from my nodes in drupal. Here

  • 0

I am looking to remove system generated css from my nodes in drupal.

Here is the code from my template:

<?php if (isset($content['field_portrait_image'])) { echo '<div class="portrait-image">'; print render($content['field_portrait_image']); echo '</div>';} ?> 

and here is what is being generated:

<div class="landscape-image"><div class="field field-name-field-landscape-image field-type-image field-label-hidden"><div class="field-items"><div class="field-item even"><img typeof="foaf:Image" src="http://logan-net.com/sites/default/files/ktgigpic-mini.png" width="300" height="225" alt="" /></div></div></div></div>

as you can see, there are 3 extra divs in there with a whole plethora of extra classes. How can I just get it to output what is in my template?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T12:39:25+00:00Added an answer on June 15, 2026 at 12:39 pm

    I would recommend couple approaches.

    • Look for Drupal framework themes that override default Drupal templates, and make for good starter barebone themes. Zen was good for me, but I have read of others, even more bare ones, some allowing to start virtually from scratch. If you look for Drupal 7 + HTML5 specifically, check this overview.

    • Learn basics of Drupal theming to understand exactly how these things work and interact with each other, there are plenty tutorials on official site. Meanwhile, there is good article by Nathan Smith (author of 960 grid system): HTML5 in Drupal 7. It explains how templates override each other and what to do to remove bloat.

    • Check Theme Developer module. Here is the screencast of how it works. (Thanks Terry in comments.)

    • Lastly, this question really belongs to drupal.stackexchange.com. Learn your network. Actually, it even says so on drupal tag description.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some JavaScript, which is generated by PHP code, using a template. The
I'm working to remove all system calls from an existing Java code base. We
I'm looking to remove the Facebook API from my iPhone project for 2 reasons:
I'm looking to remove duplicate phrases from any give string. Example: My_First_Post_My_First_Post.htm Would have
Looking for an awk (or sed) one-liner to remove lines from the output if
I am currently looking for a way to remove fullstops from a string in
I'm looking for a simplest way to remove duplication in my WPF code. Code
I was looking at this question: How to remove duplicate elements from an xml
I'm looking to bulk remove users from a database with a script for every
I am looking for a regular expression to remove comment lines from a sql

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.