Jump to content

Change home page


Recommended Posts

Hello, sorry form my english

I'm starting to use prestashop 1.6.1.1 ..

I have this problem. I turned on the left column on the home page and would like facebook block and block cms full page, as in the attached images.

Please help me

post-1065800-0-35151600-1444993072_thumb.png

post-1065800-0-69539800-1444993082_thumb.png

  • Like 1
Link to comment
Share on other sites

Ok. solved.

Open file footer.tpl  in themes/default-bootstrap.

After  line {include file="$tpl_dir./global.tpl"} copy this:

 
<script type="text/javascript">
    $( document ).ready(function() {
        if ($('#index').length) {
            // get element to move to
            var newParent = document.getElementById('columns');  
 
            // Get the element that contains face book 
            // and cms info block (i.e in your case 
            // the <div class="clearfix"> that is put around these)
            var infoBlock = document.getElementById('fb-root').parentElement; 
 
 
            //move the whole div to be a child of the #columns element
            newParent.appendChild(infoBlock);  
 
        }
    });
</script>
 
Save file and clean cache.
 
 

post-1065800-0-17591600-1445250073_thumb.png

Edited by nemic (see edit history)
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...