Also, if you copied and pasted the line you have pasted above, it has back ticks () instead of single quotes (”), which is the problem I was having initially.
you need to go into appearance -> lightbox plus make sure the checkbox for Use Secondary Lightbox is checked. It will then open up setting for secondary lightbox. Now go to the other tab and rename the secondary class name to lpbModal