Advertisement:

Author Topic: Creating a Footer for Modern Theme  (Read 3634 times)

denver42

  • Newbie
  • *
  • Posts: 37
Creating a Footer for Modern Theme
« on: February 26, 2014, 08:02:03 pm »
Hello,

I'm a newbie and would like to know how I can create a custom footer on the bottom of the screen of the Modern Theme. I would also like the footer to appear in all of the pages... is that possible? I've attached a screenshot of what I envision would be an appropriate footer.

Any help would be appreciated. I'm not a coder and if anyone can help create the code would be great!
« Last Edit: March 16, 2014, 10:49:50 pm by denver42 »

fog

  • Hero Member
  • *****
  • Posts: 1062
Re: Creating a Footer for Modern Theme
« Reply #1 on: February 26, 2014, 08:42:53 pm »
hi, yes you can

in your all pages add:

Code: [Select]
<?php osc_current_web_theme_path('YourNameCustomFile.php') ; ?>

after footer Modern Theme...

But you can edit footer Modern theme... with your custom code... you choice what is better for you  :).

Regards

denver42

  • Newbie
  • *
  • Posts: 37
Re: Creating a Footer for Modern Theme
« Reply #2 on: February 26, 2014, 09:15:01 pm »
AWESOME! Just tried it and it works great. Created a new php (test.php) with the following:

Code: [Select]
<style type="text/css">
<!--
#divstylefooter {
background-color: #CCCCCC;
height: 75px;
}
-->
</style>
<div id="divstylefooter">Test</div>

Then added
Code: [Select]
<?php osc_current_web_theme_path('test.php') ; ?> after the last line in footer.php. Worked like a charm.

Only 1 problem now. It appears on all pages, except for the Main page. How can I get the footer to also appear on the Main page?

Thank you so much for your help! You're awesome!
« Last Edit: February 26, 2014, 09:53:42 pm by charoui »

cartagena68

  • issues
  • Hero Member
  • *
  • Posts: 1198
Re: Creating a Footer for Modern Theme
« Reply #3 on: February 26, 2014, 11:11:39 pm »
Hi,
you need to add this code to main.php before the closing body tag ( </body> )

Code: [Select]
<?php osc_current_web_theme_path('footer.php') ; ?>

denver42

  • Newbie
  • *
  • Posts: 37
Re: Creating a Footer for Modern Theme
« Reply #4 on: February 26, 2014, 11:24:02 pm »
Tried it and it's still not appearing. Strange. Still displays the same and does not display the footer.  :(

cartagena68

  • issues
  • Hero Member
  • *
  • Posts: 1198
Re: Creating a Footer for Modern Theme
« Reply #5 on: February 26, 2014, 11:34:14 pm »
strange, you add it in main.php in your modern theme folder?

denver42

  • Newbie
  • *
  • Posts: 37
Re: Creating a Footer for Modern Theme
« Reply #6 on: February 27, 2014, 12:03:21 am »
Cartagena68, you're a life saver. Everything works great! Thank you all for your help.

denver42

  • Newbie
  • *
  • Posts: 37
Re: [SOLVED] Creating a Footer for Modern Theme
« Reply #7 on: March 14, 2014, 08:31:40 pm »
Now how do you make it work as a sticky footer so that it stays in the bottom?

jamarchi1

  • Newbie
  • *
  • Posts: 8
Re: Creating a Footer for Modern Theme
« Reply #8 on: March 18, 2014, 04:35:50 am »
Thank you very much for the tip, It helped me alot

REgards,

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: Creating a Footer for Modern Theme
« Reply #9 on: April 14, 2014, 12:57:44 pm »
It is very strange that main.php is missing  :-\

Code: [Select]
<?php osc_current_web_theme_path('footer.php'); ?>