A adam000 Chevereto Member Apr 3, 2017 #1 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
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
Rodolfo 👑 Chevereto Godlike Chevereto Staff Administrator Apr 3, 2017 #2 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>
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>
A adam000 Chevereto Member Apr 3, 2017 #3 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
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
Rodolfo 👑 Chevereto Godlike Chevereto Staff Administrator Apr 3, 2017 #4 Debug it via your browser's console, most likely you need to add custom styling to make it fit your needs.
Debug it via your browser's console, most likely you need to add custom styling to make it fit your needs.