How to customize an existent widget in my child theme?

Home Forums Jevelin Theme How to customize an existent widget in my child theme?

Home Forums Jevelin Theme How to customize an existent widget in my child theme?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    RESOLVED Posts
  • jemzsoluciones
    Participant

    Hello!

    I am trying to modify the widget “recent-posts” but I have no success.

    I have copied the files to my child theme, and I’ve applied changes to “recent-posts\view\widget.php” to remove H6 tag from the post list.

    Child theme widget is not read, it still read the widget from Jevelin theme.

    Is there any way to get this work?

     

    Regards,

     

    Solution for this topic

    Hi @jemzsoluciones,

     

    I hope you are well today and thank you for your question.

     

    You have to overwrite whole following folder in the child theme in the same directory structure.

     

    /jevelin/inc/widgets/recent-posts/

     

    Then in the widget file class-widget-recent-posts.php on line number 23 change function call get_template_directory to get_stylesheet_directory

     

    Best regards,
    Shufflehound team

    jemzsoluciones
    Participant

    Thanks a lot friends. Ticket solved.
    Have a good day!

    You are most welcome here 🙂

Viewing 4 posts - 1 through 4 (of 4 total)