Theme has no footer.php

Permalink
I'm new to C5, loving it so far.

I'm trying to edit the footer on my website. Information I've found says to edit the footer.php of the theme I'm using.

However, the free theme that I've installed from the community (Dreamy)doesn't have a footer.php. Yet a footer is displayed on the site.

Where is this theme pulling it down from? Which file would I have to edit to mod the footer if I want to continue using that theme?

 
enlil replied on at Permalink Reply
enlil
generally footer.php is in packages/packagename/themes/themename/elements/

If you want to edit it you should first copy your /packages/packagename/themes/themename/ folder to /themes/themename/ then modify it there!
Oliwally replied on at Permalink Reply
Thanks for helping out.

This particular theme has no 'elements' folder. The whole theme already resides in public_html/packages/. That's the location it installed to.
mikeyt55 replied on at Permalink Reply
mikeyt55
could possible be at the bottom of the default.php although I don't know for certain as I can't see the theme.
Oliwally replied on at Permalink Reply 1 Attachment
Hi, thanks for helping.

I've attached the default.php that came with the theme. It is found in packages/theme_dreamy/themes/dreamy
enlil replied on at Permalink Reply
enlil
it's pulling the footer.php from core/elements

<?php  require(DIR_FILES_ELEMENTS_CORE . '/footer_required.php'); ?>


You could just create a footer.php file and place it in your /themename/elements folder and call it with:

<?php $this->inc('elements/footer.php'); ?>


EDIT: you can do the same for the header.php file as well...
Oliwally replied on at Permalink Reply
Thanks again. I found the file, but I'm not sure that there is an option for editing what is written in the footer in that. It seems to be missing something (as you can tell, I have little idea what I am talking about :-). There is nothing there that would let me edit the words in the footer such as "This site is powered by..."

This is the contents of the file:

<?php 
$_trackingCodePosition = Config::get('SITE_TRACKING_CODE_POSITION');
if (empty($disableTrackingCode) && (empty($_trackingCodePosition) || $_trackingCodePosition === 'bottom')) {
   echo Config::get('SITE_TRACKING_CODE');
}
print $this->controller->outputFooterItems();
?>


If I make up my own footer.php and put it into the themename/elements folder, where then do I paste the line

<?php $this->inc('elements/footer.php'); ?>


to call it?
enlil replied on at Permalink Reply
enlil
If you dig into your /concrete/themes/greek_yogurt/elements/ folder you will find examples of header and footer php files.

Next look in concrete/themes/greek_yogurt for left_sidebar.php
within this file you will see how and where the calls are made to include the header and footer php files !!
Oliwally replied on at Permalink Reply
Great, thanks very much for your help with this. I'll have a play with it and see how it goes.
lavine58 replied on at Permalink Reply
I want to take my sign in or log in off my footer, which part of this code do I delete to do that? Also, how can I change the footer color to white?
Thank you.

<div id="footer-inner">

<p class="footer-sign-in">
<?php
$u = new User();
if ($u->isRegistered()) { ?>
<?php
if (Config::get("ENABLE_USER_PROFILES")) {
$userName = '<a href="' . $this->url('/profile') . '">' . $u->getUserName() . '</a>';
} else {
$userName = $u->getUserName();
}
?>
<span class="sign-in"><?php echo t('Currently logged in as <b>%s</b>.', $userName)?> <a href="<?php echo $this->url('/login', 'logout')?>"><?php echo t('Sign Out')?></a></span>
<?php } else { ?>
<span class="sign-in"><a href="<?php echo $this->url('/login')?>"><?php echo t('Sign In to Edit this Site')?></a></span>
<?php } ?>
</p>
<div class="clear"></div>
enlil replied on at Permalink Reply
enlil
simply removing this will remove everything:
<p class="footer-sign-in">
<?php
$u = new User();
if ($u->isRegistered()) { ?>
<?php
if (Config::get("ENABLE_USER_PROFILES")) {
$userName = '<a href="' . $this->url('/profile') . '">' . $u->getUserName() . '</a>';
} else {
$userName = $u->getUserName();
}
?>
<span class="sign-in"><?php echo t('Currently logged in as <b>%s</b>.', $userName)?> <a href="<?php echo $this->url('/login', 'logout')?>"><?php echo t('Sign Out')?></a></span>
<?php } else { ?>
<span class="sign-in"><a href="<?php echo $this->url('/login')?>"><?php echo t('Sign In to Edit this Site')?></a></span>
<?php } ?>
lavine58 replied on at Permalink Reply
Thank you!! That worked almost perfectly.
Now the "sign in to edit this site" is still there and the footer is still blue.
I would like to take out the sign in and make the footer white. Here is what is left:
<?php defined('C5_EXECUTE') or die("Access Denied."); ?>
<div class="clear"></div>

<div id="footer">

<div id="footer-inner">

<?php } ?>
</p>
<div class="clear"></div>
<p class="footer-copyright">©<?php echo date('Y')?> <?php echo SITE?>.</p>
</div>

</div>

<!-- end main container -->

</div><?php
$a = new GlobalArea('Footer_Stuff');
$a->display();
?>
<?php Loader::element('footer_required'); ?>

</body>
</html>
enlil replied on at Permalink Reply
enlil
remove this part:

<?php } ?>
</p>

As for the background color, check at Dashboard > Themes. Click customize for the theme you're using and see if the footer BG color is editable...

EDIT: also clear your cache, the sign in shouldn't still be there if you removed it!!
lavine58 replied on at Permalink Reply
THANK YOU SO MUCH! That all worked just fine. I am sure I'll be able to figure out the color change with your info too. I really appreciate the help!
lavine58 replied on at Permalink Reply
Well now, this is interesting, I cleared the cache and the old footer came back with all the stuff I just deleted! I go back to my ftp and it is still cleared out of the footer. Do you know why it came back? I cleared the cache in settings.
sorry to bother again, you've been so helpful.
enlil replied on at Permalink Reply
enlil
weird. try clearing your browser cache too.
lavine58 replied on at Permalink Reply
well thats just weird, maybe I will just reboot and see if that helps, I cleared browser cache and no change.
lavine58 replied on at Permalink Reply
ok, I got it fixed now! I just rebooted when back to my ftp and everything was showing back up that I had deleted. I just deleted it again and now I am good to go!
mhawke replied on at Permalink Reply
mhawke
I develop with Chrome and use 'Incognito Mode' to check problems like this.
rhiannagibbs replied on at Permalink Reply
rhiannagibbs
I have done this but I'm not sure if I just save it in my FTP files and its meant to work. Or am I meant to upload new settings or something. Please help as you can tell I'm super new with coding.

Rhianna