footer

Hi!

In Elgg the footer is in page_wrapper div, I want to level up it:

I want to put out it from page_wrapper, as direct child of page_container div.

Can I do that?

Thanks

 

  • maybe I was not clear... ^^'

    I try to explain better, this is elgg strcture:

    <div id="page_container">
         <div id="page_wrapper">
             <div id="layout_header"></div>
             <div id="layout_canvas"></div>
             <div class="clearfloat"></div>
             <div id="layout_footer"></div>
             <div class="clearfloat"></div>
         </div>
    </div>

    I need to make this change:

    <div id="page_container">
         <div id="page_wrapper">
             <div id="layout_header"></div>
             <div id="layout_canvas"></div>
             <div class="clearfloat"></div>
         </div>

         <div id="layout_footer"></div>
         <div class="clearfloat"></div>
    </div>

    Is it possible? How can I do it?

    Thanks

  • Yes, you can do that with a plugin. You have to override the pageshell view.

  • ok, but how?

    in pageshell.php I have the div in page_wrapper.

    I have no visibility of page_container div. :(

    Thanks

     

  • You can easily do this by creating custom footers and page-wrapper(i think) in the page-elements folder in your theme. 

  • mmm where is page-wrapper?

    It's not in page-elements folder.

    Thanks

     

  • If you go to your elgg folder>views>default>page_elements, you will see the files which provide most of the HTML for your elgg site. DO NOT EDIT THESE FILES, instead, copy them to your theme folder and edit them there until you have your desired structure.

  • The files you will probably need to edit should be the footer.php  and maybe the header_contents... if not explore a bit...

  • I saw header_contents, but I didn't find the solution.

    In this file I have this:

    <div id="page_container">
    < id="page_wrapper">

    <div id="layout_header">
    <div id="wrapper_header">
        ....
    </div><!-- /#wrapper_header -->
    </div><!-- /#layout_header -->

    But I have not visibility to footer... :(

    Am I wrong?

     

  • Looking at your proposed structure, you can probably achieve this by just editing the footer.php. Try adding a </div> after the first clearfloat in the footer.php file, that should close the page wrapper div and then delete the now redundant page wrapper div at the bottom of the file (it is clearly commented so you shouldn't miss it).

     

    That should give you your desired layout.