V
V
Vladimir Yurchenkov2016-11-11 00:35:52
CMS
Vladimir Yurchenkov, 2016-11-11 00:35:52

How to make different pages on DLE?

Imagine that you have a page design.
- main page
- other pages
The difference is only in the header of the site.
1) On the main page , for example, a header 300px high with one background , logo, search form, profile.
2) On other pages , a header, for example , 100px high with a different background , logo, etc. is in place.
How to make everything work correctly? To change only the hat?
So far I only had an idea with the tag: available main. Are there any other options?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Goryachev, 2016-11-11
@webirus

So far I only had an idea with the tag: available main. Are there any other options?

The most normal idea, it was invented for this.
Depending on the page , change just redefine classes.
<header class="header[available="main"] header--main[/available]">header</header>
<style>
.header { height: 100px; }
.header--main { height: 300px; }
</style>

Eh, I haven’t worked with DLE for a long time, I’m bored right already)))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question