How to customize a section of a widget only on certain pages or page
I don’t think there’s a simple way to force WordPress to exclude a template part, or load a different one. See 1 and 2 for some Stack Exchange discussion and workarounds. BUT in the special case of widgets, you can implement a filter (namely,widget_display_callback) in which you check where the widget is to be displayed, … Read more