Main html file
Permalink
Well, here's the stupid question: What is the main html for concrete? I can't find any index.html or home.html or anything like that...
I need to add a new font. In Google fonts it's quite easy except the step where I have to copy a line in the head of the main html file.
I need to add a new font. In Google fonts it's quite easy except the step where I have to copy a line in the head of the main html file.
You probably want to put it in header.php which you can find in /themes/<your-template-name>/elements/
Well, concrete5 doesn't exactly have one. If you must know, it uses index.php to call dispatcher.php which then reads all kinds of data from the database. This data is what gets rendered.
It's best to forget how you used to build websites because nothing will make sense if you try to build your old way in concrete5.
What theme are you using?
Most themes have a header.php where you would add this code. Have a look in:
[root]/packages/your_theme/themes/your_theme/elements/header.php
or
[root]/themes/your_theme/elements/header.php
You might want to start your concrete5 journey here:
http://www.concrete5.org/documentation/recorded-trainings/theme-dev...
It's best to forget how you used to build websites because nothing will make sense if you try to build your old way in concrete5.
What theme are you using?
Most themes have a header.php where you would add this code. Have a look in:
[root]/packages/your_theme/themes/your_theme/elements/header.php
or
[root]/themes/your_theme/elements/header.php
You might want to start your concrete5 journey here:
http://www.concrete5.org/documentation/recorded-trainings/theme-dev...
Thank you both for your answers.
Mhawke: You got me! I'm Old School style...
Header.php is the one I was looking for.
Mhawke: You got me! I'm Old School style...
Header.php is the one I was looking for.
What was wrong with my header.php answer then :) ?
I answered his first question: "What is the main html for concrete"
I gave several possible locations for the header.php file because it's not always where you said it was and this is a confusing point for those just starting out with C5.
I gave a link to some documentation that might help him better understand how concrete5 works.
~ Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime ~
I gave several possible locations for the header.php file because it's not always where you said it was and this is a confusing point for those just starting out with C5.
I gave a link to some documentation that might help him better understand how concrete5 works.
~ Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime ~
Nah ... my guess is OP just doesn't like cute dogs ;)
Both answers were really useful. Thanks again.