Zerif logo after update
-
Hi, just this weekend I upgrade the Zerif theme to 1.8.5.43
Now my custom logo is changed back to the Zerif Logo.
I have already changed the site identity through Customize, but when visiting it keeps showing the Zerif logo. I know I have had this problem earlier too, but have no clue how I changed it back then….The page I need help with: [log in to see the link]
-
Hi,
I see you are using a child theme/custom theme. Could you please let me know which files did you changed in the child theme?
Regards,
RodicaHi rodica,
After the update i didnt change anything.
Changes are mainly in custum css, I made a change for the footer, but no other major changes I can think of.Is there anything specific i could/should check?
Hey there! @vincentmes
Thanks for contacting us regarding your issue!
I’ve just tested the theme and I can change the logo successfully, everything seems right here. It can be a problem with the child theme that you use. Are you sure that you modified only the CSS? We are looking for a solution.Let us know how it goes!
Best regards,
Laurentiu!Dear Laurentiu,
Thanks for checking.
Just before I saw your reply, I solved the problem as well by replacing the logo.png in the theme images folder !
I know for sure that this is not correct, as for next update it will be overwritten again.So, I have checked the files in the child theme:
I found that I have also header.php. So I thought to rename this (to disable).
I renamed the Zerif file back to logo.png. To my opnion his should give a default update.
And tried again. This was also not working, so I copied the header.php to the child theme without any changes. I think the problem should be in this as my original child theme header text was:———————–
<?php// Exit if accessed directly
if( !defined( ‘ABSPATH’ ) ) {
exit;
}/** CHILD THEME HEADER.PHP – AMENDED BY VM MESKERS 05/2016
* The Header for our theme.
* Displays all of the <head> section and everything up till <div id=”content”>
*/
?><!DOCTYPE html><html <?php language_attributes(); ?>>
<link rel=”apple-touch-icon” href=”touch-icon-iphone.png” />
<link rel=”apple-touch-icon” sizes=”76×76″ href=”touch-icon-ipad.png” />
<link rel=”apple-touch-icon” sizes=”120×120″ href=”touch-icon-iphone-retina.png” />
<link rel=”apple-touch-icon” sizes=”152×152″ href=”touch-icon-ipad-retina.png” /><head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
<meta name=”viewport” content=”width=device-width, initial-scale=1″>
<link rel=”profile” href=”http://gmpg.org/xfn/11″>
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”><!–[if lt IE 9]>
<script src=”<?php echo esc_url( get_template_directory_uri() ); ?>/js/html5.js”></script>
<link rel=”stylesheet” href=”<?php echo esc_url( get_template_directory_uri() ); ?>/css/ie.css” type=”text/css”>
<![endif]–><?php
if ( ! function_exists( ‘_wp_render_title_tag’ ) ) :
function zerif_old_render_title() {
?>
<title><?php wp_title( ‘-‘, true, ‘right’ ); ?></title><?php
}
add_action( ‘wp_head’, ‘zerif_old_render_title’ );
endif;wp_head(); ?>
</head>
<?php if(isset($_POST[‘scrollPosition’])): ?>
<body <?php body_class(); ?> onLoad=”window.scrollTo(0,<?php echo intval($_POST[‘scrollPosition’]); ?>)”>
<?php else: ?>
<body <?php body_class(); ?> >
<?php endif;
global $wp_customize;
/* Preloader */
if(is_front_page() && !isset( $wp_customize ) && get_option( ‘show_on_front’ ) != ‘page’ ):
$zerif_disable_preloader = get_theme_mod(‘zerif_disable_preloader’);
if( isset($zerif_disable_preloader) && ($zerif_disable_preloader != 1)):
echo ‘<div class=”preloader”>’;
echo ‘<div class=”status”> </div>’;
echo ‘</div>’;
endif;endif; ?>
<div id=”mobilebgfix”>
<div class=”mobile-bg-fix-img-wrap”>
<div class=”mobile-bg-fix-img”></div>
</div>
<div class=”mobile-bg-fix-whole-site”><header id=”home” class=”header”>
<div id=”main-nav” class=”navbar navbar-inverse bs-docs-nav” role=”banner”>
<div class=”container”>
<div class=”navbar-header responsive-logo”>
<button class=”navbar-toggle collapsed” type=”button” data-toggle=”collapse” data-target=”.bs-navbar-collapse”>
<span class=”sr-only”><?php _e(‘Toggle navigation’,’zerif-lite’); ?></span>
<span class=”icon-bar”></span>
<span class=”icon-bar”></span>
<span class=”icon-bar”></span>
</button>
<?php
$zerif_logo = get_theme_mod(‘zerif_logo’);
if(isset($zerif_logo) && $zerif_logo != “”):
echo ‘‘;
echo ‘
‘;
echo ‘‘;
else:
echo ‘‘;
if( file_exists(get_stylesheet_directory().”/images/logo.png”)):
echo ‘
‘;else:
echo ‘
‘;endif;
echo ‘‘;
endif;
?>
</div>
<nav class=”navbar-collapse bs-navbar-collapse collapse” role=”navigation” id=”site-navigation”>
<?php _e( ‘Skip to content’, ‘zerif-lite’ ); ?>
<?php wp_nav_menu( array(‘theme_location’ => ‘primary’, ‘container’ => false, ‘menu_class’ => ‘nav navbar-nav navbar-right responsive-nav main-nav-list’, ‘fallback_cb’ => ‘zerif_wp_page_menu’)); ?>
</nav>
</div>
</div><!– / END TOP BAR –>
———————-
I think I only added lines with the apple icons.
However in the current header.php I see the lines regarding————–
<?phpif ( has_custom_logo() ) {
the_custom_logo();
} else {
?>
—————-So I will continue to find out what is going on.
You at least helped me further.It is solved by replacing the old child theme header.php with the updated version.
Thanks for guiding into the right direction.
Solved.
The topic ‘Zerif logo after update’ is closed to new replies.
