• cuberuler

    (@cuberuler)


    Hello,

    I am trying to enable some more fonts on my theme’s options, because it currently only has three available. I have found two free fonts I would like to use. I installed them via the Custom Fonts plugin, but after saving them, they do not show up as options to use in my theme.

    The theme is Lotusx, but I could not find any information from them or about how to add it for that specific theme. I think I need to edit the theme’s stylesheet or something, but I am not sure exactly where. Would someone please point me in the right direction? I am so greatful for your help and appreaciate your time.

    Regards.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter cuberuler

    (@cuberuler)

    Here is a copy of my stylesheet (which shows the font I added, but they are not optoins?)

    {
    	"settings": {
    		"appearanceTools": true,
    		"color": {
    			"custom": true,
    			"customGradient": true
    		},
    		"layout": {
    			"contentSize": "960px",
    			"wideSize": "1140px"
    		},
    		"spacing": {
    			"units": [
    				"%",
    				"px",
    				"em",
    				"rem",
    				"vh",
    				"vw"
    			]
    		},
    		"typography": {
    			"customFontSize": true,
    			"dropCap": false,
    			"fluid": true,
    			"fontFamilies": [
    				{
    					"fontFace": [
    						{
    							"fontFamily": "Merriweather",
    							"fontStyle": "normal",
    							"fontWeight": "300",
    							"src": [
    								"file:./assets/fonts/merriweather_normal_300.ttf"
    							]
    						},
    						{
    							"fontFamily": "Merriweather",
    							"fontStyle": "italic",
    							"fontWeight": "300",
    							"src": [
    								"file:./assets/fonts/merriweather_italic_300.ttf"
    							]
    						},
    						{
    							"fontFamily": "Merriweather",
    							"fontStyle": "normal",
    							"fontWeight": "400",
    							"src": [
    								"file:./assets/fonts/merriweather_normal_400.ttf"
    							]
    						},
    						{
    							"fontFamily": "Merriweather",
    							"fontStyle": "italic",
    							"fontWeight": "400",
    							"src": [
    								"file:./assets/fonts/merriweather_italic_400.ttf"
    							]
    						},
    						{
    							"fontFamily": "Merriweather",
    							"fontStyle": "normal",
    							"fontWeight": "700",
    							"src": [
    								"file:./assets/fonts/merriweather_normal_700.ttf"
    							]
    						},
    						{
    							"fontFamily": "Merriweather",
    							"fontStyle": "italic",
    							"fontWeight": "700",
    							"src": [
    								"file:./assets/fonts/merriweather_italic_700.ttf"
    							]
    						}
    					],
    					"fontFamily": "Merriweather",
    					"slug": "merriweather"
    				},
    				{
    					"fontFace": [
    						{
    							"fontFamily": "Montserrat",
    							"fontStyle": "normal",
    							"fontWeight": "400",
    							"src": [
    								"file:./assets/fonts/montserrat_normal_400.ttf"
    							]
    						},
    						{
    							"fontFamily": "Montserrat",
    							"fontStyle": "normal",
    							"fontWeight": "500",
    							"src": [
    								"file:./assets/fonts/montserrat_normal_500.ttf"
    							]
    						},
    						{
    							"fontFamily": "Montserrat",
    							"fontStyle": "normal",
    							"fontWeight": "600",
    							"src": [
    								"file:./assets/fonts/montserrat_normal_600.ttf"
    							]
    						},
    						{
    							"fontFamily": "Montserrat",
    							"fontStyle": "normal",
    							"fontWeight": "700",
    							"src": [
    								"file:./assets/fonts/montserrat_normal_700.ttf"
    							]
    						}
    					],
    					"fontFamily": "Montserrat",
    					"slug": "montserrat"
    				},
    				{
    					"fontFamily": "Cyber Hashtags",
    					"slug": "cyber-hashtags",
    					"fontFace": [
    						{
    							"fontFamily": "Cyber Hashtags",
    							"fontStretch": "",
    							"fontStyle": "normal",
    							"fontWeight": "400",
    							"src": [
    								"https://oystera.fairplaywinelodge.com/wp-content/uploads/2023/10/CyberHashtags.ttf"
    							]
    						}
    					],
    					"isBcf": true
    				},
    				{
    					"fontFamily": "Main Font",
    					"slug": "main-font",
    					"fontFace": [
    						{
    							"fontFamily": "Main Font",
    							"fontStretch": "",
    							"fontStyle": "normal",
    							"fontWeight": "400",
    							"src": [
    								"https://oystera.fairplaywinelodge.com/wp-content/uploads/2023/10/Dolce.ttf"
    							]
    						}
    					],
    					"isBcf": true
    				}
    			],
    			"fontSizes": [
    				{
    					"fluid": {
    						"max": "16px",
    						"min": "13px"
    					},
    					"name": "xSmall",
    					"size": "16px",
    					"slug": "x-small"
    				},
    				{
    					"fluid": {
    						"max": "18px",
    						"min": "14px"
    					},
    					"name": "Small",
    					"size": "18px",
    					"slug": "small"
    				},
    				{
    					"fluid": {
    						"max": "20px",
    						"min": "16px"
    					},
    					"name": "Medium",
    					"size": "20px",
    					"slug": "medium"
    				},
    				{
    					"fluid": {
    						"max": "24px",
    						"min": "20px"
    					},
    					"name": "Large",
    					"size": "24px",
    					"slug": "large"
    				},
    				{
    					"fluid": {
    						"max": "30px",
    						"min": "24px"
    					},
    					"name": "xLarge",
    					"size": "30px",
    					"slug": "x-large"
    				},
    				{
    					"fluid": {
    						"max": "36px",
    						"min": "30px"
    					},
    					"name": "36px",
    					"size": "36px",
    					"slug": "max-36"
    				},
    				{
    					"fluid": {
    						"max": "48px",
    						"min": "36px"
    					},
    					"name": "48px",
    					"size": "48px",
    					"slug": "max-48"
    				},
    				{
    					"fluid": {
    						"max": "60px",
    						"min": "42px"
    					},
    					"name": "60px",
    					"size": "60px",
    					"slug": "max-60"
    				},
    				{
    					"fluid": {
    						"max": "72px",
    						"min": "48px"
    					},
    					"name": "72px",
    					"size": "72px",
    					"slug": "max-72"
    				},
    				{
    					"fluid": {
    						"max": "82px",
    						"min": "52px"
    					},
    					"name": "82px",
    					"size": "82px",
    					"slug": "max-82"
    				}
    			]
    		}
    	},
    	"styles": {
    		"blocks": {
    			"core/button": {
    				"border": {
    					"radius": "0px"
    				}
    			},
    			"core/heading": {
    				"color": {
    					"text": "#2a2a2a"
    				},
    				"elements": {
    					"heading": {
    						"color": {
    							"text": "#2a2a2a"
    						}
    					},
    					"link": {
    						":hover": {
    							"color": {
    								"text": "#008aff"
    							}
    						},
    						"color": {
    							"text": "#2a2a2a"
    						}
    					}
    				}
    			},
    			"core/list": {
    				"color": {
    					"text": "#333333"
    				},
    				"elements": {
    					"link": {
    						":hover": {
    							"color": {
    								"text": "#008aff"
    							}
    						},
    						"color": {
    							"text": "#008aff"
    						},
    						"typography": {
    							"textDecoration": "underline"
    						}
    					}
    				},
    				"spacing": {
    					"padding": {
    						"left": "20px"
    					}
    				}
    			},
    			"core/paragraph": {
    				"color": {
    					"text": "#333333"
    				},
    				"elements": {
    					"link": {
    						"color": {
    							"text": "#008aff"
    						}
    					}
    				}
    			},
    			"core/post-author": {
    				"color": {
    					"text": "#333333"
    				},
    				"elements": {
    					"link": {
    						":hover": {
    							"color": {
    								"text": "#008aff"
    							}
    						},
    						"color": {
    							"text": "#333333"
    						},
    						"typography": {
    							"textDecoration": "none"
    						}
    					}
    				}
    			},
    			"core/post-date": {
    				"color": {
    					"text": "#333333"
    				},
    				"elements": {
    					"link": {
    						":hover": {
    							"color": {
    								"text": "#008aff"
    							}
    						},
    						"color": {
    							"text": "#333333"
    						},
    						"typography": {
    							"textDecoration": "none"
    						}
    					}
    				}
    			},
    			"core/post-navigation-link": {
    				"elements": {
    					"link": {
    						":hover": {
    							"color": {
    								"text": "#008aff"
    							}
    						},
    						"color": {
    							"text": "#333333"
    						},
    						"typography": {
    							"textDecoration": "none"
    						}
    					}
    				}
    			},
    			"core/post-terms": {
    				"color": {
    					"text": "#333333"
    				},
    				"elements": {
    					"link": {
    						":hover": {
    							"color": {
    								"text": "#008aff"
    							}
    						},
    						"color": {
    							"text": "#333333"
    						},
    						"typography": {
    							"textDecoration": "none"
    						}
    					}
    				}
    			},
    			"core/post-title": {
    				"color": {
    					"text": "#111111"
    				},
    				"elements": {
    					"link": {
    						":hover": {
    							"color": {
    								"text": "#008aff"
    							},
    							"typography": {
    								"textDecoration": "underline"
    							}
    						},
    						"color": {
    							"text": "#111111"
    						},
    						"typography": {
    							"textDecoration": "none"
    						}
    					}
    				}
    			},
    			"core/query-pagination": {
    				"color": {
    					"text": "#008aff"
    				},
    				"elements": {
    					"link": {
    						":hover": {
    							"color": {
    								"text": "#008aff"
    							}
    						},
    						"color": {
    							"text": "#606060"
    						}
    					}
    				}
    			},
    			"core/site-title": {
    				"typography": {
    					"fontFamily": "var:preset|font-family|montserrat",
    					"fontSize": "var:preset|font-size|max-82",
    					"fontStyle": "normal",
    					"fontWeight": "600",
    					"lineHeight": 1.2,
    					"textTransform": "uppercase"
    				}
    			}
    		},
    		"elements": {
    			"heading": {
    				"typography": {
    					"fontFamily": "var:preset|font-family|montserrat",
    					"fontStyle": "normal",
    					"fontWeight": "700",
    					"lineHeight": "1.4"
    				}
    			}
    		},
    		"typography": {
    			"fontFamily": "var:preset|font-family|merriweather",
    			"fontSize": "var:preset|font-size|medium",
    			"fontWeight": "300",
    			"lineHeight": "1.75"
    		}
    	},
    	"templateParts": [
    		{
    			"area": "header",
    			"name": "header",
    			"title": "Header"
    		},
    		{
    			"area": "footer",
    			"name": "footer",
    			"title": "Footer"
    		}
    	],
    	"version": 2,
    	"$schema": "https://schemas.wp.org/wp/6.2/theme.json"
    }
    Moderator t-p

    (@t-p)

    I recommend asking at https://wordpress.org/support/theme/lotusx/#new-post so its developers and support community can help you with this .

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to install custom font on my website?’ is closed to new replies.