• 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.
  • Chevereto Support CLST

    Support response

    Support checklist

    • ⚠️ Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • ✅ Confirm that the server meets the System Requirements
    • 🔥 Check for any available Hotfix - your issue could be already reported/fixed
    • 📚 Read documentation - It will be required to Debug and understand Errors for a faster support response

Two different logos

adam000

Chevereto Member
Hi, is that easy to achieve to have for example text logo on the main site and graphic logo on the rest of sites? Thanks
 
Easy as click some setting and done no, but is just a little bit harder.

You will need to add a conditional in app/themes/Peafowl/header.php file, the conditional that you need is:

PHP:
if(G\get_route_name() == 'index') {
    // home
} else {
    // anything else
}

So basically you need to change this:
PHP:
<div id="logo" class="top-bar-logo"><a href="<?php echo get_header_logo_link(); ?>"><img class="replace-svg" src="<?php echo CHV\get_system_image_url($logo_header); ?>" alt="<?php echo CHV\getSetting('website_name'); ?>"></a></div>

To this:
PHP:
<?php
    if(G\get_route_name() == 'index') {
        $logo = 'Text logo';
    } else {
        $logo = '<img class="replace-svg" src="' . CHV\get_system_image_url($logo_header) .'" alt="'. CHV\getSetting('website_name') .'">';
    }
?>
<div id="logo" class="top-bar-logo"><a href="<?php echo get_header_logo_link(); ?>"><?php echo $logo; ?></a></div>
 
after I pasted this new code to header.php I don't have any logo on the main site, but on the rest of them I have a logo from chevereto back end settings, how can I add another logo on the main site now? thanks
 
Debug it via your browser's console, most likely you need to add custom styling to make it fit your needs.
 
Back
Top