Copyright info change in Theme Child PHP

You need to modify 2 functions not only 1 in your functions.php: /** * Function to display footer content. * * @since 1.1.24 * @access public */ //ADDED CHILD TO THE END OF THE NAME function hestia_the_footer_content_child() { /** * Array holding all registered footer widgets areas */ $hestia_footer_widgets_ids = array( ‘footer-one-widgets’, ‘footer-two-widgets’, ‘footer-three-widgets’ ); … Read more

Function in Child Theme not overriding Parent Theme function [duplicate]

First, you are confused. It is not the same “override a function” that remove a filter. Assuming that you want to remove a filter, I think that your code should be: function remove_html5_insert_image(){ remove_filter(‘image_send_to_editor’,’html5_insert_image’, 10); } add_action(‘after_setup_theme’,’remove_html5_insert_image’); Note that the filter tag and the priority argument in remove_filter must match the filter tag and the … Read more

How to avoid loading style.css twice in child-theme?

You usually don’t need to enqueue a child theme’s stylesheet. The parent theme does that. This is a bit confusing, so I’ll explain. In most themes, Twenty Seventeen included, the stylesheet is loaded like this: wp_enqueue_style( ‘twentyseventeen-style’, get_stylesheet_uri() ); The trick to understanding what’s going on here is understanding what get_stylesheet_uri() does. When a regular … Read more

Developing a childtheme, how to disable the parents templates?

As @toscho mentioned it is tricky. But it is doable. Basically you need to find action hooks called before and after the template dropdown is generated and call ob_start() to initiate output buffering and ob_get_clean() to capture the buffered HTML. The ‘submitpage_box’ and ‘edit_page_form’ hooks will work for this, respectively. After you’ve captured the buffered … Read more

Post format selector in Thematic child theme post class

Okay, I’m going on the assumption that the real question is “how do I get Thematic to add the post-format to its body classes?” Try this in your functions.php: function my_thematic_post_format_class( $classes = array() ) { $format = get_post_format(); if ( ” == $format ) $format=”standard”; $classes[] = ‘format-‘ . $format; return $classes; } add_filter( … Read more