maxdome
Chevereto Member
Chevereto is becoming more powerful, is a system to share images and is the most requested worldwide.
Today I'll show you how to add a custom footer with colors and with the option to activate this menu in the admin panel.
What should I know before?
a) This Guide show you step by step how to add a Costum Footer on your home page.
b) This guide process is an extra code and has been tested with Chevereto versión 3.6.x
c) After a new updating of Chevereto, you should again follow the steps below.
Step 1 - Zip Archive:
Download file: https://zupics.com/downloads/saboxter.zip
Step 2 - Extract the files:
Step 3 - Upload the file to your Chevereto website (FTP):
if there is no (css) folder please create it.
Step 4 - Edit the header.php file:
Search this code snippet:
Step 5 - now add this code snippet below:
Step 6 - Go to your Chevereto MySQL database and insert this sql code:
Step 7 - Now edit the file (dashboard.php) :
Search this code:
Step 8 - now add this code snippet below:
Step 9 - Now search the footer.sample.php and rename the file to footer.php:
Step 10 - Edit the new file (footer.php) :
Step 11 - Add this Code after the: <?php /* Add your custom PHP/HTML code in this file */ ?>
Step 12 - Save and upload the new file in:
Here you can put the URL of your social and change social names:
If you want to add more menús or change with another, you need to edit or change this code to one:
Step 13 - Now go to your admin dashboard: -> settings -> homepage
Select: (Enable) the Custom Footer and click on the save button.
Now go to your Homepage web and check it.
Demo Admin:
Demo Homepage:
Good Luck
If you liked my idea, please click the "like" button
Best Regards:
Gio
Today I'll show you how to add a custom footer with colors and with the option to activate this menu in the admin panel.
What should I know before?
a) This Guide show you step by step how to add a Costum Footer on your home page.
b) This guide process is an extra code and has been tested with Chevereto versión 3.6.x
c) After a new updating of Chevereto, you should again follow the steps below.
Step 1 - Zip Archive:
Download file: https://zupics.com/downloads/saboxter.zip
Step 2 - Extract the files:
Code:
saboxter.css
Step 3 - Upload the file to your Chevereto website (FTP):
Code:
/lib/Peafowl/css/saboxter.css
Step 4 - Edit the header.php file:
Code:
/app/themes/Peafowl/header.php
Search this code snippet:
Code:
<link rel="apple-touch-icon" href="<?php echo CHV\get_system_image_url(CHV\getSetting('favicon_image')); ?>" sizes="114x114">
Step 5 - now add this code snippet below:
Code:
<!--//Start Custom Footer Script-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css">
<link rel="stylesheet" href="<?php echo G\get_base_url(); ?>/lib/Peafowl/css/saboxter.css">
<!--//End Custom Footer Script-->
Step 6 - Go to your Chevereto MySQL database and insert this sql code:
Code:
INSERT INTO `chv_settings` (`setting_id`, `setting_name`, `setting_value`, `setting_default`, `setting_typeset`) VALUES
('', 'custom_footer_enable', '0', '0', 'bool');
Step 7 - Now edit the file (dashboard.php) :
Code:
/app/themes/Peafowl/views/dashboard.php
Search this code:
Code:
<div class="input-below"><?php _se('Color of the homepage call to action button.'); ?></div>
</div>
Step 8 - now add this code snippet below:
Code:
<!--CUSTOM FOOTER START-->
<div class="input-label">
<label for="custom_footer_enable"><?php _se('Custom Footer'); ?></label>
<div class="c5 phablet-c1"><select type="text" name="custom_footer_enable" id="custom_footer_enable" class="text-input">
<?php echo CHV\Render\get_select_options_html([1 => _s('Enabled'), 0 => _s('Disabled')], CHV\Settings::get('custom_footer_enable')); ?>
</select></div>
<div class="input-below input-warning red-warning clear-both"><?php echo get_input_errors()['custom_footer_enable']; ?></div>
<div class="input-below"><?php _se('Enable this to use the Custom Footer for the homepage.'); ?></div>
</div>
<!--CUSTOM FOOTER END-->
Step 9 - Now search the footer.sample.php and rename the file to footer.php:
Code:
/app/themes/Peafowl/custom_hooks/footer.sample.php
Step 10 - Edit the new file (footer.php) :
Code:
/app/themes/Peafowl/custom_hooks/footer.php
Step 11 - Add this Code after the: <?php /* Add your custom PHP/HTML code in this file */ ?>
PHP:
<?php if(CHV\getSetting('custom_footer_enable') > 0) { ?>
<footer class="saboxter phone-hide phablet-hide pop-btn pop-btn-auto pop-btn-auto pop-btn-show">
<div class="sabox-right">
<a href="#"><i class="fa fa-facebook"></i></a>
<a href="#"><i class="fa fa-twitter"></i></a>
<a href="#"><i class="fa fa-google"></i></a>
</div>
<div class="sabox-left">
<p class="sabox-links">
<li>
<a href="<?php echo G\get_base_url('page/tos'); ?>"><span class="top-btn-text"><span class="btn-text phone-hide phablet-hide">» <?php _se('Terms of service'); ?></span></span></a>
</li>
<li>
<a href="<?php echo G\get_base_url('page/privacy'); ?>"><span class="top-btn-text"><span class="btn-text phone-hide phablet-hide">» <?php _se('Privacy'); ?></span></span></a>
</li>
<li>
<a href="<?php echo G\get_base_url('page/contact'); ?>" rel="contact"><span class="top-btn-text"><span class="btn-text phone-hide phablet-hide">» <?php _se('Contact'); ?></span></span></a>
</li>
</p>
</div>
</footer>
<?php } ?>
Step 12 - Save and upload the new file in:
Code:
/app/themes/Peafowl/custom_hooks/footer.php
Here you can put the URL of your social and change social names:
Code:
<a href="#"><i class="fa fa-facebook"></i></a>
<a href="#"><i class="fa fa-twitter"></i></a>
<a href="#"><i class="fa fa-google"></i></a>
If you want to add more menús or change with another, you need to edit or change this code to one:
Code:
<li>
<a href="<?php echo G\get_base_url('page/tos'); ?>"><span class="top-btn-text"><span class="btn-text phone-hide phablet-hide">» <?php _se('Terms of service'); ?></span></span></a>
</li>
Step 13 - Now go to your admin dashboard: -> settings -> homepage
Select: (Enable) the Custom Footer and click on the save button.
Now go to your Homepage web and check it.
Demo Admin:
Demo Homepage:
Good Luck
If you liked my idea, please click the "like" button
Best Regards:
Gio
Last edited: