0

我正在尝试使用 Drupal 7,但到目前为止,在让菜单按照我想要的方式运行方面收效甚微。我的 CSS 和 PHP 基础很强,但理解 Drupal 的系统本身就是一个巨大的挑战,因此我对此表示怀疑。

对于那些熟悉 Bartik 主题的人来说,主菜单默认在标题中。

我正在尝试创建一个封装整个网站宽度的浮动/持久菜单。但我不确定我需要进入哪里并进行所需的更改。

我有一个选择是从 Bartik 标题中删除主菜单,然后在“特色”区域中引入主菜单块。这里的菜单是水平渲染的,而不是我想要的垂直渲染。

本质上的问题是,如何更改 Bartik 主题中的主菜单?我需要从哪里进入并进行更改。哦,我已经对它进行了子主题,只是为了让你知道。

非常感谢 !

帕里贾特

4

1 回答 1

0

I'm not sure I follow but it sounds like you need to create a new region to put the menu in. You add these in the themes .info file.

region[region_name] = Region name

Print the regions contents out in your themes page.tpl.php file.

Clear the cache and it will show up in the blocks page.

You can the style it how ever you want.

于 2011-11-30T21:07:02.633 回答