How to override astra walker in child theme
-
On line 117, within single-blog.php, your guide mentions the following:
* To override this walker in a child theme without modifying the comments template simply create your own astra_theme_comment(), and that function will be used instead.
Can you provide a simple example of how we can create our own astra_theme_comment() function? Just trying to get my feet wet beyond the text mentioned above. Here’s what I am trying to look for…
– How do we initiate that function?
– Should that initiation process occur in functons.php, within our child theme?
– Does it need to, or can it tie to, a hook or a do_action()?
– Can we pass any arguments into it?
– What would be an example of something to use inside of it?- This topic was modified 3 years, 10 months ago by .
- This topic was modified 3 years, 10 months ago by .
- This topic was modified 3 years, 10 months ago by .
- This topic was modified 3 years, 10 months ago by .
- This topic was modified 3 years, 10 months ago by .
- This topic was modified 3 years, 10 months ago by .
- The topic ‘How to override astra walker in child theme’ is closed to new replies.