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:
Support response
Support checklist
Yeah, exactly that!
/app/themes/Peafowl/overrides/views/
, this should be empty in a default installation./app/themes/Peafowl/views/index.php
in the folder /app/themes/Peafowl/overrides/views/
/app/themes/Peafowl/overrides/views/index.php
and look for the following row:<?php CHV\Render\show_banner('home_after_cta', (function_exists('get_list') ? get_list()->sfw : true)); ?>
<div class="overflow-auto text-align-center margin-top-20">
<?php $stats = CHV\Stat::getTotals(); ?>
<div class="stats-block c6 fluid-column display-inline-block">
<span class="stats-big-number">
<strong class="number"><?php echo $stats['Images'] > 999999 ? $stats['Images'] : number_format($stats['images']); ?></strong>
<span class="label"><?php _ne('Image', 'Images', $stats['images']); ?></span>
</span>
</div>
<div class="stats-block c6 fluid-column display-inline-block">
<span class="stats-big-number">
<strong class="number"><?php echo $stats['albums'] > 999999 ? $stats['albums'] : number_format($stats['albums']); ?></strong>
<span class="label"><?php _ne('Album', 'Albums', $stats['albums']); ?></span>
</span>
</div>
<div class="stats-block c6 fluid-column display-inline-block">
<div class="stats-big-number">
<strong class="number"><?php echo G\format_bytes($stats['disk_used']); ?> <span><?php echo G\format_bytes($stats['disk_unit']); ?></span></strong>
<span class="label"><?php _se('Disk used'); ?></span>
</div>
</div>
</div>
/app/themes/Peafowl/custom_hooks/
style.css
and write the following code:#index .stats-block {background-color: rgba(0, 0, 0, 0.4); border-radius: 2px; border: 1px solid rgba(0, 0, 0, 0.6);}
#index .stats-big-number .number {font-size:25px;}
#home-cover-content {text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.5);}
style.min.css
and copy following code:#index .stats-block{background-color:rgba(0,0,0,0.4);border-radius:2px;border:1px solid rgba(0,0,0,0.6);}#index .stats-big-number .number{font-size:25px;}#home-cover-content{text-shadow:1px 2px 1px rgba(0,0,0,0.5);}
At first, which version are you using now and for testing i need a link to your site.各位大佬,我在用v3.20.17的时候也用过这个代码,但是已经不是横三排了,你们有什么办法。
View attachment 4784
No. Any customization guide made for Chevereto V3 won't work with Chevereto V4 as the latter changed file locations, namespaces and several method names.Does this work for v4? It does not look like /apps/themes exists in v4.
Doh! So gotta start from scratch!No. Any customization guide made for Chevereto V3 won't work with Chevereto V4 as the latter changed file locations, namespaces and several method names.
Not really... Only use the updated references. For example, the CHV\Stat class is now at Chevereto\Legacy\Classes\Stat.Doh! So gotta start from scratch!