如何在Drupal 6中修改HTML标签? [英] How to modify the HTML tag in Drupal 6?

查看:87
本文介绍了如何在Drupal 6中修改HTML标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Drupal的新手,我需要在HTML标签中添加一个属性,但是找不到方法。谢谢您的帮助。

I am new to Drupal and I need to add an attribute to the HTML tag, but I cannot find the way. Thank you for the help.

推荐答案

这可能部分取决于您的主题化机制。但是,doctype和html标记很可能硬编码在 page.tpl.php 或类似文件中(位于site / all / themes / themename中)。确切的文件将取决于您的主题。

This probably depends in part on your theming mechanism. However, the doctype and html tags are likely hard-coded in page.tpl.php or similar (located in sites/all/themes/themename). The exact file will depend on your theme.

例如,我在 page.tpl.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language; ?>" lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>">

如您所见,PHP注入了一些信息。这将是您进行更改的地方。

As you can see, there is some information being injected by PHP. This would be the place for you to make your change.

这篇关于如何在Drupal 6中修改HTML标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆