- Create a plugin file like GeoLiv.php
/* Plugin Name: GeoLiv Custom Code Plugin
Description: Place to insert custom code into WordPress
Look at this post source - a plugin is re-writing what you see here
*/
function add_font() {
$font_script = <<<'EOD'
<link href="https://fonts.googleapis.com/css?family=Roboto+Slab" rel="stylesheet">
EOD;
echo $font_script;
}
#add_action('wp_head', 'add_font'); - Compress to zip
- Login to WordPress and navigate to to your WordPress dashboard, and click “Plugins->Add New”
- Upload plugin.
- Activate plugin.
- Go to your WordPress dashboard and click “Appearance->Edit CSS”
- This will take you to your theme customization page where you can insert all the CSS you want. Now add the following:
p {
font-family: 'Roboto Slab', serif;
} - Font should be active.
