Responsive II Child theme

This topic contains 2 replies, has 2 voices, and was last updated by  links 3 months, 2 weeks ago.

  • Author
    Posts
  • #289447

    links
    Participant

    I have set up a child theme for Responsive II However changes that I make to wp-content/themes/responsive-mobile-CHILD/includes/functions-sidebar.php do not take president over wp-content/themes/responsive-mobile-child/includes/functions-sidebar.php

    Question 1: Is anything in the child theme folder supposed to take precedent over the parent theme? If not can you please direct me to a location that includes directions on how to make it work?

    Thanks,

    Mark

  • #289980

    Hi,

    Can you please let me know which function in the functions-sidebar.php file you are trying to edit? What customization are you looking to do in the functions-sidebar.php?

    You can directly copy the function from the parent theme file and add it to the functions.php file of the child theme. Once added, you can edit the function based on your requirements. If it says duplicate function, you can try changing the function name keeping the same hook name.

    Hope this helps.
    Thank you.

  • #290021

    links
    Participant

    I added this

    /*MOS added new widget location in order to put in Elementor library parts on front page */
    register_sidebar( array(
    ‘name’ => __( ‘Front Sidebar’, ‘responsive-mobile’ ),
    ‘description’ => __( ‘front-sidebar.php – Displays under featured content’, ‘responsive-mobile’ ),
    ‘id’ => ‘front-sidebar’,
    ‘before_title’ => ‘<div class=”widget-title”><h3>’,
    ‘after_title’ => ‘</h3></div>’,
    ‘before_widget’ => ‘<div id=”%1$s” class=”widget-wrapper %2$s”>’,
    ‘after_widget’ => ‘</div>’
    ) );
    /* END new widget location*/

    to wp-content/themes/responsive-mobile/includes/functions-sidebar.php And it works…. however if I add it to

    wp-content/themes/responsive-mobile-CHILDTHEME/includes/functions-sidebar.php it does not work (above I had inadvertently put both paths as the child theme paths)

    This then adds a Widget area that I can add Elementor “pieces” into my front page

You must be logged in to reply to this topic.