Footer

Permalink 1 user found helpful
Bit of a numpty dont ask !! but have just deleted my footer and have lost some valuable work and cant log in was trying to remove the cs5 info at the bottom but have lost a fair bit now anyone help..
Theme is slate.

Jim

jamesy121
 
jackbasting replied on at Permalink Reply
jackbasting
To login on your site type your sitename (www.yoursite.com) and type then after it: /index.php/login
jamesy121 replied on at Permalink Reply
jamesy121
Thanks for replying can get to the log in part but when I log in it just goes back to (www.yoursite.com) and I am not in edit mode..
jackbasting replied on at Permalink Reply
jackbasting
try index.php/dashboard
jamesy121 replied on at Permalink Reply
jamesy121
Thanks got into the dashboard and can get around no problem but when I return to website it just takes me to my site with no editing god I cant believe I mucked around what a twat.
enlil replied on at Permalink Reply
enlil
if I'm not mistaken, you messed around with your footer.php file? If so, download a copy of the theme and copy the original footer file into the installed theme and you should be good to go, at square one with the footer again!
jackbasting replied on at Permalink Reply
jackbasting
delete your theme and re-install it.
jamesy121 replied on at Permalink Reply
jamesy121
Will I not lose everything, and are we talking deleting from concrete 5 project
enlil replied on at Permalink Reply
enlil
As long as you haven't made any modifications to the theme code you would be worried about losing, simply uninstalling it and re installing it should also solve your issue as jack states. You *shouldn't* lose any of your content in the process. Typically nothing goes missing, but I cant make that a promise either :)
jamesy121 replied on at Permalink Reply
jamesy121
sorry if I am uninstalling where and how do I do that I have done no modifacations if you are talking html I have just used the site as wysiwyg.
enlil replied on at Permalink Reply
enlil
go to Dashboard > Install and click edit to uninstall the theme. then on the same page re-install it again. Then visit Dashboard > Themes and activate the theme again.
jamesy121 replied on at Permalink Reply
jamesy121
Ok did that but looks like I am back to the same problem, could it have something to do with public domainhttp://www.topclassphotography.com/...
As you will see footer gone bit of a mess really
enlil replied on at Permalink Reply
enlil
ah, theres just an error in the code. Can you post the contents of your footer.php file?
jamesy121 replied on at Permalink Reply
jamesy121
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
<footer>
<div class="row">
<div class="col_3">
<?php
$a = new GlobalArea('Footer');
$a->display();
?>
</div><!-- .col_3 ends -->
<div class="col_3">
<?php
$a = new GlobalArea('Footer Column Two');
$a->display();
?>
</div><!-- .col_3 ends -->
<div class="col_3">
<?php
$a = new GlobalArea('Footer Column Three');
$a->display();
?>
</div><!-- .col_3 ends -->
<div class="col_3 last">
<?php
$a = new GlobalArea('Footer Column Four');
$a->display();
?>
</div><!-- .col_3 ends -->
</div><!-- .row ends -->
<div class="row">
<div id="credits" class="col_12 clearboth">
<p class="left">© <?php echo date('Y')?> <?php echo SITE?>. <?php echo t('All Rights Reserved.')?> <?php
$u = new User();
if ($u->isRegistered()) { ?>

</footer><!-- footer ends -->

</div><!-- #container ends -->

<?php Loader::element('footer_required'); ?><?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
<footer>
<div class="row">
<div class="col_3">
<?php
$a = new GlobalArea('Footer');
$a->display();
?>
</div><!-- .col_3 ends -->
<div class="col_3">
<?php
$a = new GlobalArea('Footer Column Two');
$a->display();
?>
</div><!-- .col_3 ends -->
<div class="col_3">
<?php
$a = new GlobalArea('Footer Column Three');
$a->display();
?>
</div><!-- .col_3 ends -->
<div class="col_3 last">
<?php
$a = new GlobalArea('Footer Column Four');
$a->display();
?>
</div><!-- .col_3 ends -->
</div><!-- .row ends -->
<div class="row">
<div id="credits" class="col_12 clearboth">
<p class="left">© <?php echo date('Y')?> <?php echo SITE?>. <?php echo t('All Rights Reserved.')?> <?php
$u = new User();
if ($u->isRegistered()) { ?>
?></p>
<p class="right"><span class="star"><?php echo t('Design by')?> <a href=title="<?php echo t('concrete5 themes')?>"><?php echo t('c5mix')?></a></span>   |   <span class="settings"><?
</div><!-- #credits ends -->
</div><!-- .row ends -->
</footer><!-- footer ends -->

</div><!-- #container ends -->

<?php Loader::element('footer_required'); ?>

</body>

</body>
</html>

Is this what you mean embarrassing bit of a mess sorry ....
enlil replied on at Permalink Reply
enlil
find this line:
<p class="right"><span class="star"><?php echo t('Design by')?> <a href=title="<?php echo t('concrete5 themes')?>"><?php echo t('c5mix')?></a></span>   |   <span class="settings"><?

remove "<?" from the end...
enlil replied on at Permalink Reply
enlil
you may want to remove this whole bit:
" | <span class="settings"><?"
as i also notice there is no closing span tag either, probably left over from something you already removed??
jamesy121 replied on at Permalink Reply
jamesy121
Done that but still not happening really appreciate you giving up your time to help...thanks
enlil replied on at Permalink Reply
enlil
i believe your problem now is there are two closing </body> tags... remove one of them and you should be good to go!

EDIT: after looking further at the code I realized it's all kinds of messed up. You have two instances of all the footer areas smashed together. At this point I think your best bet would be to physically copy the contents out of footer.php from a fresh download of the package and paste it into the installed theme and begin from square one again!
mhawke replied on at Permalink Reply 1 Attachment
mhawke
Attached you will find the footer.php file from the Slate theme. I have renamed it 'footer.txt' so that I can attach it here.

Download it to your local computer, rename it to footer.php and upload it to the '[root]/packages/theme_slate/themes/slate/elements' folder, overwriting the messed up footer.php file.
jamesy121 replied on at Permalink Reply
jamesy121
cheers downloaded file changed it to footer.php uploaded it, but still the same, however I still have footer.php and now footer.php.txt below it..Yes I am thick but can I just copy and past the lower part of footer where the errors are or am I just not doing it right...
jackbasting replied on at Permalink Reply
jackbasting
You have to replace the footer.php file by te footer.php file (rename it) you recieved from mhawke.
You can do that in your ftp-program (filezilla for example).
jamesy121 replied on at Permalink Reply
jamesy121
god I don't know what I am doing wrong I have uploaded using my file-manager host and just saves it as the footer.php.txt ?
jackbasting replied on at Permalink Reply
jackbasting
filename has to be "footer.php" instead of "footer.php.txt"
jamesy121 replied on at Permalink Reply
jamesy121
oops see what you mean rename when in my domain..done that!! but it only seems to upload to the public file cant seem to get it into the elements folder..
jamesy121 replied on at Permalink Reply
jamesy121
hey listen guy's I copied and pasted the one you gave me and it has came back again although just 3 column but at least now I can get logged in and edit...great thanks have a great xmas ...and a good New Year.
jackbasting replied on at Permalink Reply
jackbasting
looks better now ;-)
jamesy121 replied on at Permalink Reply
jamesy121
Thanks for helping me out.. everything is back to normal apart from one little thing...sitewide column footer one has reduced in size and no matter how much I adjust the image it still wont increase to the size of the others...see herehttp://www.topclassphotography.com/...
any ideas
mhawke replied on at Permalink Best Answer Reply
mhawke
Two things you need to fix here. First, you need to put a width of 226 in the Image Blocks along the bottom. This will force concrete5 to create smaller thumbnails for these images. As it sits now, the images that get downloaded are huge and the only reason they are small is because the container DIV they are squeezed into is small. One of concrete5's best features is that it can automatically create smaller 'thumbnail' images on the fly and only serve up these smaller thumbnails. This speeds up everything and creates a more enjoyable website visit, especially for mobile users who have bandwidth caps. They get annoyed when a huge image is downloaded. Google also like a fast website.

Second, the reason the first column is not as tall is because the 'aspect ratio' of the photo is not the same as the other 3 photos. Unfortunately if you try to force the first photo to stretch vertically to be the same height as the other photos, the woman in the photo will look stretched out.

Since the aspect ratio of the first photo is tough to change and it's the smallest of the 4, I would suggest 'cropping' the last 3 photos to the following sizes (width x height):

Second Photo: 599 x 693

Third Photo: 2400 x 2778

Fourth photo: 2400 x 2778

Hope that helps.
jamesy121 replied on at Permalink Reply
jamesy121
You are all stars !! in particular mhawke!!! thanks for bearing with me ..I just changed the picture and everything is back the way it is ..I know the website SEO will be mucked up (just cant get google to list me) but will now leave alone and learn how to get my site up the rankings..once again thanks a bunch guy's..

Jim