Can't make own template work, please help me :(

Permalink
I'm a complete concrete5 newbie so please excuse me if this is a silly question, but I have been struggling with it for over a week now :(

I made an own template and integrated the concrete codes and everything. On the first attempt my template could be activated and was there but i couldn't edit the content boxes, which according to my research was due to the fact that i used "position: absolute" and "z-index". So i got rid of all of that, but if I activate my theme now, its just a white blank page.. can anybody tell me where the problem is?


thats my html code


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- Concrete5 Start -->
<?php
   Loader::element('header_required');
?>
<!-- Concrete5 End -->
   <meta http-equiv="Content-Type"    content="text/html; charset=UTF-8" />
   <title>My Website</title>
   <link href="<?php echo $this->getThemePath(); ?>/"stylesheet.css" type="text/css" rel="stylesheet">
</head>
<body>
     <style type="text/css">
body,td,th {


and thats my css

@charset "UTF-8";
/* CSS Document */
<style type="text/css">
body,td,th {
   font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
   font-size: 12px;
   color: #000;
}
body {
   background-image: url(Logos-Background/background.jpg);
}
a:link {
   color: #000;
   text-decoration: none;
}



thank you very much for your help!

 
andrewjaff replied on at Permalink Reply
andrewjaff
Can you provide a public url..?
MaggieLine replied on at Permalink Reply
its not public yet, no, I am working with MAMP its only on the local server yet. :/
andrewjaff replied on at Permalink Reply
andrewjaff
Are you getting any error.? try to clear cache and off all the cache settings.
MaggieLine replied on at Permalink Reply
thanks I will try that! No there is no error message thats the problem!
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
A live link would be better to understand the exact problem.
djoniba replied on at Permalink Reply
djoniba
Not an expert, but how is the structure? Do you have header.php in the "elements" folder? What does the code look like?
MaggieLine replied on at Permalink Reply
my elements folder is empty..

oh my... I feel completely lost! :(



------ edit ----

just realised that in my concrete5.6.3.1 folder there is another folder called concrete, which has similar folders in it, among others elements, which is filled with some files as well.

think that is my problem here do i just need the concrete folder in my htdocs folder?
djoniba replied on at Permalink Reply
djoniba
You dont have to have the elements folder. But the "include Header" code is for that.
MaggieLine replied on at Permalink Reply 2 Attachments
Ok I cleared the cache and added the footer and header.php in the elements folder

still the site is blank :( I attach a screenshot if thats of any use!

any ideas anyone?
MaggieLine replied on at Permalink Reply 1 Attachment
If I use my original html and css codes with position absolute , the theme shows up perfectly fine but then again I can't edit the content areas...


I attach a screenshot of the codes when I click on inspect element..

Hope someone can help me I really wanted to use concrete5 but just can't seem to make it work :(
INTcommunications replied on at Permalink Best Answer Reply
INTcommunications
I think you probably have your theme in the wrong folder. The root of your concrete site will have have folders which you can put things into over ride the core Concrete which is in the folder Concrete. You generally don't put anything into the core concrete folder. I think it is designed this way so you can upgrade your version of Concrete and it won't overwrite any new stuff you have added ( i.e. Blocks, Forms, Config etc. ) If you are building your own theme named MYNEWTHEME- you start with a folder namedMYNEWTHEME and put it in the root themes folder. In that folder you put the stuff that is just related to that theme ( usually css, images for GUI etc. ) but if you build or buy an add-on it gets loaded into the root folders so it will work even if you switch the theme.

In the Elements folder make 2 pages header.php and footer.php

In the header.php - you have to have - <?php Loader::element('header_required');?>
somewhere in the <head> tag

and in footer.php - just before you close your <body> tag
<?php Loader::element('footer_required'); ?>
</body>
</html>


top of your default.php


include everything that repeats for every page in the header - i.e. banner, topnav, search etc. ( stored in your elements/header.php

<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
?>
<?php $this->inc('elements/header.php'); ?>

(
then the stuff that will change for each page ( middle of your page )

Then apply your footer -

<!-- END Content -->

<?php $this->inc('elements/footer.php'); ?>
MaggieLine replied on at Permalink Reply
THANK YOU VERY MUCH!! it works now !! I can finally edit the content areas... so happy right now :) :)

I had a wrong code in my default and view files that was the problem!