When taking a copy of the node template, should you keep/maintain the original code that is in the file?

Example the article tag.

nid; ?>" class=" clearfix"> etc..

What are the implications of removing this, if any?

  • 2
    remove it and find out.
    – No Sssweat
    Mar 29 '16 at 21:33
  • If you keep the original code then what is the point of making a copy. You are making the copy so that you can make changes. Mar 30 '16 at 7:14

Actually you're free to edit templates !

  • The theme's css might depend on some tags, especially the article tag, so you could lose layout/design
  • If you're a forward thinking brave drupalista you definitely want to keep title logic and the possibility of rendering all fields (and comments) and respect the view modes ;)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.