doulian8554 2015-11-27 03:58
浏览 55
已采纳

Drupal 7 Web Experience Toolkit - 如何修改主题?

I have been going insane trying to figure out how to modify the WET-BOEW distribution of Drupal 7 and have been met with little to no results.

http://drupalwxt.github.io/

I do not have a lot of experience with drupal. I used it many years ago and I hated it as much then as I do now; unfortunately, employment requirements have forced me to dig into it again.

How do I go about modifying the theme? Even just modifying the header would be a massive step in the right direction.

For the record, the files I am modifying are in /profiles/wetkit/themes/wetkit_bootstrap/templates

  • Modifying system/page.tpl.php has no effect
  • Modifying system/html.tpl.php has an effect, unfortunately I am met with $page_top, etc and no actual markup for the header.

I am completely and utterly lost.


EDIT 1

I have created a folder under /sites/all/themes called "playground". In this file, I have added my basic info and copied the regions from the original wetkit info file.

I created the structure for <theme>/templates/system and added an html.tpl.php file containing a die() to test if it is overriding the base theme...it does not appear to be.

I make a point of clearing the cache after every change.


EDIT 2 (Solution)

It turns out that I was trying to modify the wrong file all along. For the WET-BOEW Drupal 7 distribution, changing the markup is done through <theme>/templates/panels/page--panels--wet-boew.tpl.php and by adding a custom CSS file to theme_name.info.

I'm sure this is all elementary stuff, but I've been struggling with it for a while now. Thanks for the help.

  • 写回答

1条回答 默认 最新

  • doudi2520 2015-11-27 13:07
    关注

    First, go to appearance page (url: /admin/appearance) and see what theme is used. Maybe you are changing wrong theme.

    Then, check if page caching is on on performance page (/admin/config/development/performance). If so, you may need to clear the cache after every change with "Clear all caches" button on same page.

    Oh and those system template files are usually overwritten with custom theme files. So don't change them.

    Again, theme template files are usually placed in directory:

    /sites/all/themes/theme_name/templates

    starting from website root, so look for the files there or on some similar location if you have some specific site settings (multisite or something).

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Converting circular structure to JSON
  • ¥30 Hyper-v虚拟机相关问题,求解答。
  • ¥15 TSM320F2808PZA芯片 Bootloader
  • ¥45 谷歌浏览器出现开发者工具无法显示已创建的,但您可以调试已部署的代码。 状态代码 404, net::ERR HTTP RESPONSE CODE FAILURE
  • ¥15 如何解决蓝牙通话音频突发失真问题
  • ¥15 安装opengauss数据库报错
  • ¥15 【急】在线问答CNC雕刻机的电子电路与编程
  • ¥60 在mc68335芯片上移植ucos ii 的成功工程文件
  • ¥15 笔记本外接显示器正常,但是笔记本屏幕黑屏
  • ¥15 Python pandas