trinacrio
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Iknow] how to create a child theme`I did not find anything how to create a child theme.
The point is the following:
I have added my logo above the search bar. So far so good… but when I want to integrate the changes it to a child theme, I get a lot of errors…
Therefore my question if there is a tutorial or even if you consider to provide a child-theme package in the future?Maybe you take over the new logo placement into the new version? ??
here what I have changed:
—————————————————————————–
404.php
archive.php
index.php
page.php
search.php
single.php
template-iknow-home.php
\iknow\templates\iknow-full-width.php
\iknow\templates\iknow-focus.php
———————————————————————————–
<div class=”container has-text-centered”>a
add–> <?php $custom_logo_id = get_theme_mod( ‘custom_logo’ );
add–> $image = wp_get_attachment_image_src( $custom_logo_id , ‘full’ );
add–> ?>
add–> <a href=”<?php echo esc_url( home_url( ‘/’ ) ); ?>”>
add–> <img src=”<?php echo $image[0]; ?>” alt=””>
add–> </a>
<h1 class=”title is-3 is-family-secondary is-uppercase”>functions.php
————————————————–
add_theme_support( ‘custom-logo’, array(
‘height’ => 400,
‘width’ => 400,
‘flex-height’ => true,
‘flex-width’ => true,
) );\iknow\header.php
————————————————–
<div class=”navbar-brand”>
removed -> <?php if ( has_custom_logo() ) :
removed -> the_custom_logo();
removed -> ?>
removed -> <?php else : ?>
<a>”
title=”<?php echo esc_attr( get_bloginfo( ‘name’ ) ); ?>”>
<span class=”navbar-item has-text-info has-text-orbitron”><?php echo esc_html( get_bloginfo( ‘name’ ) ); ?></span>
</a>
removed -> <?php endif; ?>- This reply was modified 4 years, 4 months ago by trinacrio.