creat a folder name it optimizer-child
creat 2 file in it
style.css with this code
/*
Theme Name: optimizer child
Theme URI: https://test.com
Author: test
Author URI: https://www.test.com
Template: optimizer
Description: optimizer Child Theme
Version: 1.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
functions.php with this code
<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
?>
then copy footer.php file from optiozer folder and paste it in optimizer-child folder
with a editor like notepad++ open footer.php
and put // in line 38 befor $foot
it must be such
<div class="copytext"><?php if (!empty ($optimizer['footer_text_id'])) { ?><?php //$foot = html_entity_decode($optimizer['footer_text_id']); $foot = stripslashes($foot); echo do_shortcode($foot); ?><?php } ?></div>
finally go to admin panel then apperance and activate the child-theme
Have a great day all
rohallah