• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Cheat to add a footer

Harley

Chevereto Member
Just in case someone wants a cheat to add a footer that won't get overridden. Here's what I did. Of course you can change the code to suit your needs.

At the bottom of your "Pages" in admin IE: Contact page, Terms of Service etc

Add this code:

<button style="width:100%">
<div class="parent-div"></br>
<span style="font-weight: bold;"><a href="https://www.facebook.com/YourPage" rel="publisher" onmouseout="window.status='';return true" onclick="window.open(this.href); return false;" title="Facebook">Like Us on Facebook - </a></span>
<span style="font-weight: bold;"><a href="https://twitter.com/YourTwitter" rel="publisher" onmouseout="window.status='';return true" onclick="window.open(this.href); return false;" title="Twitter">Follow Us at Twitter</a></span>
</div>
<div class="clear"> </div>
<div class="disclaimer">
<h4>Copyright &copy; 2017 YourPageName. All Rights Reserved.</h4>
</br><p>Use of this Web site constitutes acceptance of the <a href="YourTermsPage">User Agreement</a> and <a href="privacy">Privacy Policy</a>. </br> Designated trademarks and brands are the property of their respective owners.</p>
</br></div>
</button>

I used the Button style so it greys out the background.

To have this on your home page, listing page and image page add this code to these Banners boxes:

After cover (homepage)
After pagination
Footer (image page)

It may not be perfect but it works :)
 

Attachments

  • footer.jpg
    footer.jpg
    39.1 KB · Views: 140
this footer is very good, but I would like to make a ''bootstrap grid'' inside it because I need a few columns, if this can be done by using css, where I have to put a css file to set it up? thanks for help
 
Last edited:
You don't need bootstrap for something that you can write in 20 lines. Or better, add just the grid component of bootstrap, simply add it to the custom hooks folder.
 
unfortunately after I copied some html code in custom_hooks/footer.php I got only white screen, refresh doesn't help
 
That's bad.

Most likely is just a coding issue like mess html markup with php code.

Anyway, hope you can sort it out.
 
You can use

PHP:
if(G\get_route_name() == 'index') {
// Stuff for home
} else {
// Anything else
}
 
when I have this:

Code:
<?php if(!defined('access') or !access) die('This file cannot be directly accessed.'); ?>

<?php

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>Bootstrap 101 Template</title>
    <!-- Bootstrap -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" integrity="sha384-y3tfxAZXuh4HwSYylfB+J125MxIs6mR5FOHamPBG064zB+AFeWH94NdvaCBm8qnd" crossorigin="anonymous">
    <!-- font awesome -->
    <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
</head>
<body>

<div id="justpushtobottom">
</div>

<footer class="footer p-t-1">
        <div class="container">
            <div class="pull-right">
                <nav class="navbar" style="background:transparent; color: black;">
                    <nav class="nav navbar-nav pull-xs-left">
                        <a class="nav-item nav-link" href="#">Home</a>
                        <a class="nav-item nav-link" href="#">About</a>
                        <a class="nav-item nav-link" href="#">Download App</a>
                        <a class="nav-item nav-link" href="#">Help</a>
                    </nav>
                </nav>
            </div>

            <a href="#"><i class="fa fa-facebook-official fa-2x"></i></a>
            <a href="#"><i class="fa fa-pinterest-p fa-2x"></i></a>
            <a href="#"><i class="fa fa-twitter fa-2x"></i></a>
            <a href="#"><i class="fa fa-flickr fa-2x"></i></a>
            <a href="#"><i class="fa fa-linkedin fa-2x"></i></a>

            <p class="h6">
                Powered by ParadigmOz.com
                <a href="http://www.paradigmOz.com" target="_blank"></a>
            </p>
        </div>
    </footer>
</body>

?>

when I have:

Code:
<?php if(!defined('access') or !access) die('This file cannot be directly accessed.'); ?>



<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>Bootstrap 101 Template</title>
    <!-- Bootstrap -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" integrity="sha384-y3tfxAZXuh4HwSYylfB+J125MxIs6mR5FOHamPBG064zB+AFeWH94NdvaCBm8qnd" crossorigin="anonymous">
    <!-- font awesome -->
    <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
</head>
<body>

<div id="justpushtobottom">
</div>

<footer class="footer p-t-1">
        <div class="container">
            <div class="pull-right">
                <nav class="navbar" style="background:transparent; color: black;">
                    <nav class="nav navbar-nav pull-xs-left">
                        <a class="nav-item nav-link" href="#">Home</a>
                        <a class="nav-item nav-link" href="#">About</a>
                        <a class="nav-item nav-link" href="#">Download App</a>
                        <a class="nav-item nav-link" href="#">Help</a>
                    </nav>
                </nav>
            </div>

            <a href="#"><i class="fa fa-facebook-official fa-2x"></i></a>
            <a href="#"><i class="fa fa-pinterest-p fa-2x"></i></a>
            <a href="#"><i class="fa fa-twitter fa-2x"></i></a>
            <a href="#"><i class="fa fa-flickr fa-2x"></i></a>
            <a href="#"><i class="fa fa-linkedin fa-2x"></i></a>

            <p class="h6">
                Powered by ParadigmOz.com
                <a href="http://www.paradigmOz.com" target="_blank"></a>
            </p>
        </div>
    </footer>
</body>

so code without <?php, ?>, everything works just fine, I tried to copy your:

Code:
if(G\get_route_name() == 'index') {
// Stuff for home
} else {
// Anything else
}

without <?php, ?> or with it and I still have my footer on each site, what I'm doing wrong? please help Rodolfo
 
without <?php, ?> or with it and I still have my footer on each site, what I'm doing wrong?

What you are doing wrong? It's simple: you don't know what you do!

Before you do some modifications, you should learn PHP and HTML.

Rodolfo is still working on Chevereto and Quickty - and Quickty is one of the projects I waiting for a long time. But many times there are people like you, who wants modifications and ask all the time Rodolfo for help. I cannot accept this longer, because every time he helps someone for private modifications, he has no time to work on the real projects.

Learn PHP and HTML and do it yourself!

You want an private modification - that's not an support request!
 
Don't mix php with html. Your syntax should be:

PHP:
<?php
#php code goes here for example:
If(2>1) {
?>
HTML goes outside the php tags, in this case anything when 2>1
<?php
} else {
?>
Another html section
<?php } ?>
 
Back
Top