Passing variable from child theme to parent theme

Stick to filtering one value at a time to keep it simple, and add filters for the colors to be used by the child theme: add_filter( ‘post_thumbnail_html’, ‘map_thumbnail’); function map_thumbnail($html) { $my_post = get_post($post->ID); $defaultcolor1 = “#??????”; // parent theme default $defaultcolor2 = “#??????”; // parent theme default $water_color = apply_filters(‘water_color’,$defaultcolor1); $tree_color = apply_filters(‘tree_color’,$defaultcolor2); if($my_post->post_name … Read more

How can I remove css from a child theme?

Twentyten has a header.php file which has the style.css hardcoded into it: <link rel=”stylesheet” type=”text/css” media=”all” href=”https://wordpress.stackexchange.com/questions/40174/<?php bloginfo(“stylesheet_url’ ); ?>” /> There is no way to wp_dequeue_style because it is never “loaded” with wp_enqueue_style in the first place. To get that out of the header you’ll need to edit the twentyten theme (bad idea) or … Read more

Using the child theme functions.php to change the customizer.php on parent theme

Put this code in function.php. create custom section in customizer for logo : <?php add_action(‘customize_register’, ‘theme_footer_customizer’); function theme_footer_customizer($wp_customize){ //adding section in wordpress customizer $wp_customize->add_section(‘footer_settings_section’, array( ‘title’ => ‘Footer Text Section’ )); //adding setting for footer logo $wp_customize->add_setting(‘footer_logo’); $wp_customize->add_control(new WP_Customize_Upload_Control($wp_customize,’footer_logo’,array( ‘label’ => ‘Footer Logo’, ‘section’ => ‘footer_settings_section’, ‘settings’ => ‘footer_logo’, ))); }

How to change Parent Themes in Child Theme CSS

I think you are confused about this. Let me explain. The @import url(“../responsive/style.css”); is telling the Child theme to import the Responsive themes style.css. This is important because without this the Child theme doesn’t know what its Parent theme is. So the @import url(“../responsive/style.css”); points the Child theme to the default (main) file in the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)