This is definitely an Off-the-beaten path type of adventure, but it's well worth it, as it provides spectacular views of the city, while doubling down as a family day/afternoon out.
To get to Tibidabo, you need to take a local bus to the North side of Barcelona, and then a Funicular up to the top of the hill. At just under 1km, the railway is not very long, but it provides great views going up the way. Once you reach the top, discover the fairground that just magically seems to exist at the top of the hill, in the shadows of what appears to be two churches built on top of each other!
As I said, the views down the mountain to the South are spectacular, and you can see all the way up the North East Coast and down to the South West of the city too.
This is a very family-friendly activity, with loads for the kids to do while the parents enjoy a coffee and a wander around the Church grounds. it's very affordable too (for the funicular at least; Β£12 or so).