If you want to travel overland from El Salvador to Nicaragua and want to avoid going through Honduras, then your only option is to take the boat across the Gulf of Fonseca, from La Unión to Potosí.
I made this journey in 2022, but I have updated the logistical details, and they are current as of September 2026.