One obvious solution would be to add more bike parking. Bike parking is rare in most cities, which is why you end up with people locking their bikes to poles, fences, trees, benches, and anything else available.
It's amazing how much urban space we're willing to dedicate to cars in the way of streets and parking (most of it free!), and yet bicycle parking is often a rarity.
When I was a kid, the schools had long rows of bike racks festooned with bikes. These days, a school has a single 5 foot rack with one forlorn bike in it and parents have to authorize their kids to bike to school.
When I drive by a school when they let out, the 20mph speed limit is a bit pointless because there are hardly any kids walking home (unlike the mobs when I was a kid). Their moms are all waiting in a long line with their SUVs idling (for some reason they never turn off the motor) while they text away.
The risk is that some kid runs around the car and into traffic to get in on the other side. You want cars to go slowly enough to quickly brake if small children dart into traffic.
It's amazing how much urban space we're willing to dedicate to cars in the way of streets and parking (most of it free!), and yet bicycle parking is often a rarity.