Oshine Knowledge Base


Options Panel

  • Hamburger Icon Settings
  • Options Panel Overview
  • General Settings
  • Logo
  • Background Settings
  • Color Settings
  • Typography Settings – Typehub
  • Responsive Typography Settings
  • Global Site Layout and Settings
  • Top Header Settings
  • Left Header Settings
  • Mobile Menu Settings
  • Footer Settings
  • Blog Settings
  • Portfolio Settings
  • Shop Settings
  • Contact Settings
  • Single Blog Hero Section
  • Single Shop Hero Section
  • Import/Export
  • Performance
  • GDPR Compliance

Others

  • Custom Font Addition ( For theme version below 6.3 )
  • Import Demo Contents Manually – Without any plugins
  • Import Demo Content – Old (For theme version below 5.1)
  • Menus
  • Update Plugins
  • Update Theme
  • Translating the Theme and Plugins
  • Changelog
  • Pointers to Improve Performance
  • Mega Menu
  • How to use Instagram in Tatsu Gallery Module
  • Generating Universal Google Analytics Tracking Id and Using It with Oshin Theme
  • Generate Google Maps API Key and Display Maps in Oshine
  • Support Renewal Instructions
  • How to use a Separate logo for Retina Devices with Oshine?

Getting Started

  • Import Demo Content
  • Install & Activate Required Plugins
  • Upload, Install & Activate Theme
  • Server Requirements
  • How to set up Oshine Theme and Import a Demo?

Tatsu 3.0+ Versions

  • Tatsu 3.0 Docs

Portfolio

  • Dual Carousel Portfolio Template
  • Horizontal Carousel Portfolio Template
  • Portfolio Navigation
  • Creating a Right Floating Sidebar
  • Creating a Left Floating Sidebar
  • Creating a Right Fixed Sidebar
  • Creating a Left Fixed Sidebar
  • Creating Portfolio Sliders
  • Creating Lightbox Image Portfolio
  • Creating Lightbox Video Portfolio
  • Creating Lightbox Gallery Portfolio
  • Portfolio Grid
  • Create a Portfolio Post Item
  • Portfolio Overview
  • Install BE Portfolio Post Plugin
  • Title Carousel Portfolio
  • Split Screen Portfolio

Tatsu 1x – 2x Versions

  • Copy and Paste Modules
  • Sections
  • Row
  • Columns
  • Modules
  • Actions and Templates
  • Migrating to Oshine 5.0
  • Tatsu Keyboard Shortcuts
  • Overview
  • Multi-Select Operations
  • ALT + Drag Drop to Duplicate
  • Copy and Paste Module Styles
  • Shape Dividers
  • Global Sections
  • Live Spacing Controls

FAQ's

  • How to enable Tatsu header and footer in Oshine theme
  • Sorry you are not allowed to upload this file type – Error
  • How do I add Custom Icons?
  • How do I add Custom Fonts in typehub ?
  • How to make the button in my header/footer open in new tab ?
  • How do I edit the labels ( ’Client’, ‘Project Date’, ’Category’ ) of the Portfolio Details module ?
  • Missing style sheet / style.css error when installing the theme ?
  • “Failed to Import” Messages while importing demo data ?
  • Getting “Are you sure you want to do this?” error after uploading theme ?
  • I am Unable to update Master Slider. The purchase code I enter is not working?
  • How do I update the theme manually / I am not getting the Automatic update notification, how do I update the theme?
  • How do I set up grid gallery of images in a single portfolio page.
  • How do I setup Dual Carousel Portfolio Page?
  • How do I link a portfolio thumbnail to a lightbox?
  • How do I link video to an Image in Lightbox?
  • All the menu links in my “Single Page Site”, are always highlighted. What am I missing?
  • I am getting “Google Map API key error” in my page with Google Maps Module ?
  • How to make the Icon in my header/footer open in new tab?
  • The elements in my page are not working when I navigate to the page using the menu, but they show up on Page Reload/Refresh ?
  • How do I Add / Change Icon Links in Footer / Bottom Widget Area / Header ?

BE Page Builder – Deprecated

  • Modules
  • Columns
  • Row
  • Sections
  • Page Builder Overview

Shop

  • Woocommerce Plugin – Documentation
  • Set up Shop Pages

One / Single Page Website

  • Set Up Single Page Site

Hero Section

  • Hero Section Settings
  • Hero Section Overview

Gallery

  • Carousel Gallery
  • Grid Gallery
  • Gallery Overview

Portfolio, Gallery

  • Portfolio and Gallery – Difference

Blog

  • Read More link
  • Blog Settings
  • Home
  • Docs
  • FAQ's
  • How do I add Custom Fonts in typehub ?

How do I add Custom Fonts in typehub ?

Table of Contents
  • UPLOAD CUSTOM FONT –
  • ADD CUSTOM FONT PROGRAMATICALLY –

UPLOAD CUSTOM FONT – #

1. Go to Web Font Generater –
2. Upload your font’s source OTF / TTF file ( DO NOT check the Embed font data in CSS option )
3. Generate web font and download the package
4. Go to the Custom Fonts tab inside Typehub and upload the webfont package.
5. That’s it, you can now use your custom font for any of the font options.

Here is a quick video of how it is done – https://youtu.be/4kR7qCgMfQA

ADD CUSTOM FONT PROGRAMATICALLY – #

To add a Custom Font using the method given here, you should have the Oshine Child theme installed and activated.

Upload the oshine_child.zip from the Buyers Package that you downloaded in the WordPress Dashboard and Activate the Child Theme.

1. Download the Custom Font files in all the required formats. Create a Folder named ‘custom-fonts’ in the Child Theme and place the font files in this folder.

2. Generate the Fonts CSS file and name it ‘fonts.css’. Place this file in a fonder named ‘fonts’ within the root folder in the  Child theme. Ensure the font sources are pointed to files with the custom-fonts folder –

Ex –

@font-face { 
font-family: 'Font Family';
src: url('../custom-fonts/font-name.eot');
src: url('../custom-fonts/font-name.eot?#iefix') format('embedded-opentype'),
url('../custom-fonts/font-name.woff') format('woff'),
url('../custom-fonts/font-name.ttf') format('truetype'),
url('../custom-fonts/font-name.svg#webfont') format('svg');
}

3. Add the following functions in ‘functions.php’ file in the Child Theme

add_action( 'typehub_register_font', 'my_typehub_custom_font' );
function my_typehub_custom_font() {
$font = array(
'name' => 'CUSTOM FONT NAME',
'src' => get_stylesheet_directory_uri().'/fonts/fonts.css', // URL of your font's stylesheet. Assuming its inside the fonts folder of your child or main theme
'variants' => array(
'300' => 'Light',
'400' => 'Normal',
'500' => 'Medium',
'700' => 'Heavy'
)
);
typehub_register_font( $font );
}
What are your Feelings
Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Table of Contents
  • UPLOAD CUSTOM FONT –
  • ADD CUSTOM FONT PROGRAMATICALLY –

Oshine Knowledge Base is proudly powered by WordPress