Changing the widget code in a child theme.
-
I need to modify the code in the footer, the code is generated by the register_sidebar function found in a file in the includes folder of the parent theme.
I tried duplicating the file and putting it in the includes folder of the child theme and modifying that file. But it has no effect on the code.
So 1. Am I doing something wrong? Do I need to add code at the top of the file to be sure it uses this one and not the parent file? Or 2. Is there any easier way to accomplish this? Like something I can add to functions.php?
EDIT: It exists inside the public function widgets_init()
public function widgets_init() { register_sidebar( ... etc ... 'before_title' => '<div class="widget-title">', 'after_title' => '</div>', ); }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Changing the widget code in a child theme.’ is closed to new replies.