We are using SP2016 enterprise and I am trying to customize a Item Display template for a Content Search web part.
My work is based on existing template under Master Page Gallery > Display Templates > Content web part (subfolder) >
I searched online and several tutorial suggest look for the line with
but this line is not exist in
I have tried inserting the above line and sample content but it is not working. My Content search web part always returning
There are no items to show.
P.S. my custom template works great when there is item to show. The only problem is when result = 0 the error message is not working as expected.