[solved] font tags in yii2 template

Hi,

in my yii2 template I find at the bottom of <div class=“container”> tags tags like <font color="#ff0000">. What are they for? I didn’t declare them so they must be generated by Yii. And why is the <footer> tag declared within such a <font> tag and not right below a <div container> at the same level as <header>? And how can I move the <footer> (or other tags I declared) out of that tag?

Regards

Christian

That’s strange.

The default layout of the app-basic is something like the following:




<html>

  <head>

  </head>

  <body>

    <div class="wrap">

      <?= NavBar() ?>

      <?= Nav() ?>

      <div class="container">

         <?= Breadcrumbs() ?>

         <?= $content ?>

      </div>

    </div>

    <footer>

      <div class="container">

        ...

      </div>

    </div>

  </body>

</html>



It doesn’t contain the <header>. And the <footer> is a child of <body>, not a child of <div class=“container”>.

The layouts of the frontend and backend of the app-advanced are almost the same.

Are you using some other template? Or did you change something in the layout?

Hi,

thanks for your reply - it’s true, keep it simple.

I just found the miraculous <font> tag. I ported a cms written for php 4.x to Yii and this curious tags are part of that outdated software.

I luckily removed them…

Regards

Christian