Sorry about the previous format, guess i was a bit confused and in a rush myself, So let me put it this way. I'm like, i have a dc battery and a solar panel which of course produce d.c so I'm thinking what if i connect the panel directly to the battery with a diode to ensure current always flows into battery, my question is the baytery charge?. If it would work out how can i add load to the battery such that load draws power from battery and panel charges the battery only
Yes, you can charge a car battery with a solar panel. You can even buy commercial products that do this, as a battery maintainer. Larger capacity panels can do full charging but you'd want to include multiple protection circuits in it.
For a simple trickle charger, all you need is a 13 to 14V solar panel and a diode.
But as you drew it, it will not work. You have two diodes, one on each side, oriented the same way. No power will flow. Remove the one on the low side.