• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • 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