Here are some steps you can take to learn how to love yourself:
1. Make contact with your inner self by paying more attention to self-care.
2. Honestly face your inner obstacles and resistance.
3. Deal with old wounds.
4. Forgive your past.
5. Accept where you are right now.
6. Form relationships where you feel loved and appreciated.
7. Practice the kind of love you aspire to receive.
You can also try journaling to figure out why you have trouble loving yourself. A few questions to get you started: What do I love about myself? What do I not love about myself and what can I do to accept it or change it? Is there an experience that stops me from loving myself? When was the first time you remember thinking negatively about yourself?
Remember that practicing self-love would allow you to be good to yourself and in the process become a better human being.
I hope this helps! Let me know if there's anything else I can help you with.