Currently a custom protocol is used, will create and release library soon!
Check out ajax.php , the method “get_visitor_country” and go through the flow. Create a library from this.
To use:
- Find the google fonts that are used on the page.
- Download them using: https://google-webfonts-helper.herokuapp.com/
- You should open the link i.e. “https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700|Roboto:300,400,500,700&display=swap” to see what settings to download on the herokuapp page.
- Now create a new CSS file i.e. /static/china_fonts/vip_page.css
- On the herokuapp page, enter the path/folder name you will place the font files for that font (Customize folder prefix (optional):) i.e. source_sans_pro/
- Create the folder in Step 5, i.e. /static/china_fonts/source_sans_pro
- Download the fonts.zip file from herokuapp page, and extract the font files into the folder in Step 6.
- Look for // <!– step 1: china google fonts –> in controllers/pages.php , load AJAX library
- Look for <!– step 2: china google fonts –> in views/pages/say_that_you_love_me/en/php
- Look for <!– step 3: china google fonts –> to run the ajax message in the same file in Step 9.
- That’s it!