こんにちは、私は本当に深いコーディング プロジェクトに足を踏み入れています。これを学ぶことができれば、私は遠くまで来たと思います。これまでの努力にはとても満足していますが、私が望んでいたことができないように見えるので、少し助けていただければ幸いです.
Drupalを使用しています。ここで私が取り組んでいるページを表示できます
page.tpl にブロック領域を追加することができました (これは drupal の問題ではありません)。ブロック領域には画像が含まれています。画像の上にタイトルを印刷したかったのです。それは起こっていないようです。
<?php if ($has_header): ?>
<!-- Header -->
<header id="header" class="container-wrapper">
<div class="container">
<?php print render($page['header']) ?>
<?php if ($title): ?>
<?php print $breadcrumb ?>
<?php print render($title_prefix) ?>
<h1><?php print $title ?></h1>
<?php print render($title_suffix) ?>
<?php endif ?>
<?php print $messages ?>
<?php print render($page['help']) ?>
<?php if ($tabs): ?><?php print render($tabs) ?><?php endif ?>
<?php if ($action_links): ?><ul class="action-links"><?php print render($action_links) ?></ul><?php endif ?>
</div>
</header>
<?php endif ?>
上記の 5 行目の印刷レンダリング ページ ヘッダー ビットは、私の画像を含むブロック領域の「ヘッダー」です。タイトルを画像の真ん中に残したいと思っていました。
誰かもっとアドバイスできますか?
編集して追加していただきありがとうございます-
<header id="header" class="container-wrapper">
<div class="container contextual-links-region">
<div class="region region-header">
<h2 class="element-invisible">You are here</h2>
<div class="breadcrumb">
<a href="/">Home</a>
</div>
<h1>football</h1>