First of all sign up on cloudflare and connect your site there. Now on homepage you will see some options where change ssl to full.
Now go to page rules from side menu.
And add new page rule like below.
Now again add page rule.
Go to wp. Install wordpress https plugin and activate it. There u also need to check the option for force https for wp admin.
Now save everything.