• Resolved mattsv

    (@mattsv)


    net::ERR_NAME_NOT_RESOLVED

    Both Heading/Body font variables were set with use of “Populate with theme.json”, Content/Typography/Headings or Lightspeed/Dashboard/Heading Font URL, Body Font URL.

    I’m using v. 1.2.15, this bug was absent in previous.

    <link rel='stylesheet' id='areoi-heading-font-css'  media='all' />
    <link rel='stylesheet' id='areoi-body-font-css'  media='all' />

    Best Regards, Matt

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Miles

    (@areoimiles)

    Hi @mattsv

    Thanks for notifying me of this issue. Good to see you found the new Lightspeed options! Please be aware that these options are built to work with a starter theme we will be releasing soon so they may be a bit temperamental at the moment and some of the functionality could change.

    Please could you send me the contents of your theme.json file so that I can set this up locally and test it for myself? Then I will do my best to resolve the issue for you.

    Thanks again for flagging this issue

    Miles

    Thread Starter mattsv

    (@mattsv)

    Here it is whole. I know it could use a little clean up due to unnecessary settings, sorry for that.

    {
    	"$schema": "https://schemas.wp.org/trunk/theme.json",
    	"version": 2,
    	"customTemplates": [
    		{
    			"name": "blank",
    			"postTypes": [
    				"page",
    				"post"
    			],
    			"title": "Blank"
    		},
    		{
    			"name": "blog-alternative",
    			"postTypes": [
    				"page"
    			],
    			"title": "Blog (Alternative)"
    		},
    		{
    			"name": "404",
    			"postTypes": [
    				"page"
    			],
    			"title": "404"
    		}
    	],
    	"settings": {
    		"appearanceTools": true,
    		"color": {
    			"palette": [
    				{
    					"color": "#E8E9E0",
    					"name": "Creamy white",
    					"slug": "creamy-white"
    				},
    				{
    					"color": "#F39630",
    					"name": "Brutal orange",
    					"slug": "brutal-orange"
    				},
    				{
    					"color": "#F7BC60",
    					"name": "Sand Yellow",
    					"slug": "sand-yellow"
    				},
    				{
    					"color": "#4F3D20",
    					"name": "Dark Wood",
    					"slug": "dark-wood"
    				},
    				{
    					"color": "#1E1D10",
    					"name": "Contrast",
    					"slug": "contrast"
    				},
    				{
    					"color": "#F7BC60",
    					"name": "Primary Main",
    					"slug": "primary-main"
    				},
    				{
    					"color": "#F5B247",
    					"name": "Primary Hard",
    					"slug": "primary-hard"
    				},
    				{
    					"color": "#F8C777",
    					"name": "Primary Soft",
    					"slug": "primary-soft"
    				}
    			]
    		},
    		"layout": {
    			"contentSize": "1024px",
    			"wideSize": "1920px"
    		},
    		"spacing": {
    			"spacingScale": {
    				"steps": 0
    			},
    			"spacingSizes": [
    				{
    					"size": "clamp(1.5rem, 5vw, 2rem)",
    					"slug": "30",
    					"name": "1"
    				},
    				{
    					"size": "clamp(1.8rem, 1.8rem + ((1vw - 0.48rem) * 2.885), 3rem)",
    					"slug": "40",
    					"name": "2"
    				},
    				{
    					"size": "clamp(2.5rem, 8vw, 4.5rem)",
    					"slug": "50",
    					"name": "3"
    				},
    				{
    					"size": "clamp(3.75rem, 10vw, 7rem)",
    					"slug": "60",
    					"name": "4"
    				},
    				{
    					"size": "clamp(5rem, 5.25rem + ((1vw - 0.48rem) * 9.096), 8rem)",
    					"slug": "70",
    					"name": "5"
    				},
    				{
    					"size": "clamp(7rem, 14vw, 11rem)",
    					"slug": "80",
    					"name": "6"
    				}
    			],
    			"units": [
    				"%",
    				"px",
    				"em",
    				"rem",
    				"vh",
    				"vw"
    			]
    		},
    		"typography": {
    			"dropCap": false,
    			"fluid": true,
    			"fontFamilies": [			
    				{
    					"fontFace": [
    						{
    							"fontFamily": "Fredericka The Great",
    							"fontStretch": "normal",
    							"fontStyle": "normal",
    							"fontWeight": "400",
    							"src": [
    								"file:./assets/fonts/fredericka-the-great/fredericka-the-great.regular.woff2"
    							]
    						}						
    					],
    					"fontFamily": "\"Fredericka The Great\", display",
    					"name": "Fredericka The Great",
    					"slug": "fredericka-the-great"
    				},
    				{
    					"fontFace": [
    						{
    							"fontFamily": "Raleway Dots",
    							"fontStretch": "normal",
    							"fontStyle": "normal",
    							"fontWeight": "400",
    							"src": [
    								"file:./assets/fonts/raleway-dots/RalewayDots-Regular.woff2"
    							]
    						}						
    					],
    					"fontFamily": "\"Raleway Dots\", display",
    					"name": "Raleway Dots",
    					"slug": "raleway-dots"
    				},								
    				{
    					"fontFamily": "-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif",
    					"name": "System Font",
    					"slug": "system-font"
    				},
    				{
    					"fontFace": [
    						{
    							"fontFamily": "Noto Sans display",
    							"fontStretch": "normal",
    							"fontStyle": "normal",
    							"fontWeight": "200 900",
    							"src": [
    								"file:./assets/fonts/noto-sans-display/NotoSansDisplay-VariableFont_wdth,wght.woff2"
    							]
    						},
    						{
    							"fontFamily": "Noto Sans display",
    							"fontStretch": "normal",
    							"fontStyle": "italic",
    							"fontWeight": "200 900",
    							"src": [
    								"file:./assets/fonts/noto-sans-display/NotoSansDisplay-Italic-VariableFont_wdth,wght.woff2"
    							]
    						}
    					],
    					"fontFamily": "\"Noto Sans display\", display",
    					"name": "Noto Sans display",
    					"slug": "noto-sans-display"
    				},
    				{
    					"fontFace": [
    						{
    							"fontFamily": "Source Serif Pro",
    							"fontStretch": "normal",
    							"fontStyle": "normal",
    							"fontWeight": "200 900",
    							"src": [
    								"file:./assets/fonts/source-serif-pro/SourceSerif4Variable-Roman.ttf.woff2"
    							]
    						},
    						{
    							"fontFamily": "Source Serif Pro",
    							"fontStretch": "normal",
    							"fontStyle": "italic",
    							"fontWeight": "200 900",
    							"src": [
    								"file:./assets/fonts/source-serif-pro/SourceSerif4Variable-Italic.ttf.woff2"
    							]
    						}
    					],
    					"fontFamily": "\"Source Serif Pro\", serif",
    					"name": "Source Serif Pro",
    					"slug": "source-serif-pro"
    				},
    				{
    					"fontFace": [
    						{
    							"fontFamily": "Montserrat",
    							"fontStretch": "normal",
    							"fontStyle": "italic",
    							"fontWeight": "400",
    							"src": [
    								"file:./assets/fonts/montserrat/Montserrat-Italic-VariableFont_wght.woff2"
    							]
    						},
    						{
    							"fontFamily": "Montserrat",
    							"fontStretch": "normal",
    							"fontStyle": "normal",
    							"fontWeight": "400",
    							"src": [
    								"file:./assets/fonts/montserrat/Montserrat-VariableFont_wght.woff2"
    							]
    						}						
    					],
    					"fontFamily": "\"Montserrat\", display",
    					"name": "Montserrat",
    					"slug": "montserrat"
    				},
    				{
    					"fontFace": [
    						{
    							"fontFamily": "Raleway",
    							"fontStretch": "normal",
    							"fontStyle": "normal",
    							"fontWeight": "400",
    							"src": [
    								"file:./assets/fonts/raleway/Raleway-VariableFont_wght.woff2"
    							]
    						},
    						{
    							"fontFamily": "Raleway",
    							"fontStretch": "normal",
    							"fontStyle": "italic",
    							"fontWeight": "400",
    							"src": [
    								"file:./assets/fonts/raleway/Raleway-Italic-VariableFont_wght.woff2"
    							]
    						}
    					],
    					"fontFamily": "\"Raleway\", sans-serif",
    					"name": "Raleway",
    					"slug": "raleway"
    				}
    			],
    			"fontSizes": [
    				{
    					"fluid": {
    						"min": "0.875rem",
    						"max": "1rem"
    					},
    					"size": "1rem",
    					"slug": "small"
    				},
    				{
    					"fluid": {
    						"min": "1rem",
    						"max": "1.125rem"
    					},
    					"size": "1.125rem",
    					"slug": "medium"
    				},
    				{
    					"fluid": {
    						"min": "1.75rem",
    						"max": "1.875rem"
    					},
    					"size": "1.75rem",
    					"slug": "large"
    				},
    				{
    					"fluid": false,
    					"size": "2.25rem",
    					"slug": "x-large"
    				},
    				{
    					"fluid": {
    						"min": "4rem",
    						"max": "10rem"
    					},
    					"size": "10rem",
    					"slug": "xx-large"
    				}
    			]
    		},
    		"useRootPaddingAwareAlignments": true
    	},
    	"styles": {
    		"blocks": {
    			"core/navigation": {
    				"elements": {
    					"link": {
    						":hover": {
    							"typography": {
    								"textDecoration": "none"
    							}
    						},
    						":focus": {
    							"typography": {
    								"textDecoration": "none"
    							}
    						},
    						":active": {
    							"typography": {
    								"textDecoration": "none"
    							}
    						},
    						"typography": {
    							"textDecoration": "none"
    						}
    					}
    				},
    				"typography": {
    					"fontSize": "var(--wp--preset--font-size--small)"
    				}
    			},
    			"core/post-author": {
    				"typography": {
    					"fontSize": "var(--wp--preset--font-size--small)"
    				}
    			},
    			"core/post-content": {
    				"elements": {
    					"link": {
    						"color": {
    							"text": "var(--wp--preset--color--primary-main)"
    						}
    					}
    				}
    			},
    			"core/post-excerpt": {
    				"typography": {
    					"fontSize": "var(--wp--preset--font-size--medium)"
    				}
    			},
    			"core/post-date": {
    				"typography": {
    					"fontSize": "var(--wp--preset--font-size--small)",
    					"fontWeight": "400"
    				},
    				"elements": {
    					"link": {
    						"typography": {
    							"textDecoration": "none"
    						},
    						":hover": {
    							"typography": {
    								"textDecoration": "none"
    							}
    						}
    					}
    				}
    			},
    			"core/post-terms": {
    				"typography": {
    					"fontSize": "var(--wp--preset--font-size--small)"
    				}
    			},
    			"core/post-title": {
    				"spacing": {
    					"margin": {
    						"bottom": "1.25rem",
    						"top": "1.25rem"
    					}
    				},
    				"typography": {
    					"fontWeight": "400"
    				},
    				"elements": {
    					"link": {
    						":hover": {
    							"typography": {
    								"textDecoration": "none"
    							}
    						},
    						":focus": {
    							"typography": {
    								"textDecoration": "none"
    							}
    						},
    						":active": {
    							"color": {
    								"text": "var(--wp--preset--color--secondary)"
    							},
    							"typography": {
    								"textDecoration": "none"
    							}
    						},
    						"typography": {
    							"textDecoration": "none"
    						}
    					}
    				}
    			},
    			"core/comments-title":{
    				"typography": {
    					"fontSize": "var(--wp--preset--font-size--large)"
    				},
    				"spacing": {
    					"margin": {
    						"bottom": "var(--wp--preset--spacing--40)"
    					}
    				}
    			},
    			"core/comment-author-name": {
    				"elements": {
    					"link": {
    						":hover": {
    							"typography": {
    								"textDecoration": "none"
    							}
    						},
    						":focus": {
    							"typography": {
    								"textDecoration": "none"
    							}
    						},
    						":active": {
    							"color": {
    								"text": "var(--wp--preset--color--secondary)"
    							},
    							"typography": {
    								"textDecoration": "none"
    							}
    						},
    						"typography": {
    							"textDecoration": "none"
    						}
    					}
    				}
    			},
    			"core/comment-date": {
    				"typography": {
    					"fontSize": "var(--wp--preset--font-size--small)"
    				},
    				"elements": {
    					"link": {
    						":hover": {
    							"typography": {
    								"textDecoration": "none"
    							}
    						},
    						":focus": {
    							"typography": {
    								"textDecoration": "none"
    							}
    						},
    						":active": {
    							"color": {
    								"text": "var(--wp--preset--color--secondary)"
    							},
    							"typography": {
    								"textDecoration": "none"
    							}
    						},
    						"typography": {
    							"textDecoration": "none"
    						}
    					}
    				}
    			},
    			"core/comment-edit-link": {
    				"typography": {
    					"fontSize": "var(--wp--preset--font-size--small)"
    				}
    			},
    			"core/comment-reply-link": {
    				"typography": {
    					"fontSize": "var(--wp--preset--font-size--small)"
    				}
    			},
    			"core/comments-pagination": {
    				"spacing": {
    					"margin": {
    						"top": "var(--wp--preset--spacing--40)"
    					}
    				},
    				"elements": {
    					"link": {
    						"typography": {
    							"textDecoration": "none"
    						}
    					}
    				}
    			},
    			"core/pullquote": {
    				"border": {
    					"style": "solid",
    					"width": "1px 0"
    				},
    				"elements": {
    					"cite": {
    						"typography": {
    							"fontSize": "var(--wp--preset--font-size--small)",
    							"fontStyle": "normal",
    							"textTransform": "none"
    						}
    					}
    				},
    				"typography": {
    					"lineHeight": "1.3"
    				},
    				"spacing": {
    					"margin": {
    						"bottom": "var(--wp--preset--spacing--40) !important",
    						"top": "var(--wp--preset--spacing--40) !important"
    					}
    				}
    			},
    			"core/query": {
    				"elements": {
    					"h2": {
    						"typography": {
    							"fontSize": "var(--wp--preset--font-size--x-large)"
    						}
    					}
    				}
    			},
    			"core/query-pagination": {
    				"typography": {
    					"fontSize": "var(--wp--preset--font-size--small)",
    					"fontWeight": "400"
    				},
    				"elements": {
    					"link": {
    						"typography": {
    							"textDecoration": "none"
    						},
    						":hover": {
    							"typography": {
    								"textDecoration": "none"
    							}
    						}
    					}
    				}
    			},
    			"core/quote": {
    				"border": {
    					"width": "1px"
    				},
    				"elements": {
    					"cite": {
    						"typography": {
    							"fontSize": "var(--wp--preset--font-size--small)",
    							"fontStyle": "normal"
    						}
    					}
    				},
    				"spacing": {
    					"padding": {
    						"left": "var(--wp--preset--spacing--30)",
    						"right": "var(--wp--preset--spacing--30)"
    					}
    				}
    			},
    			"core/site-title": {
    				"elements": {
    					"link": {
    						":hover": {
    							"typography": {
    								"textDecoration": "none"
    							}
    						},
    						":focus": {
    							"typography": {
    								"textDecoration": "none"
    							}
    						},
    						":active": {
    							"color": {
    								"text": "var(--wp--preset--color--secondary)"
    							},
    							"typography": {
    								"textDecoration": "none"
    							}
    						},
    						"typography": {
    							"textDecoration": "none"
    						}
    					}
    				},
    				"typography": {
    					"fontSize": "var(--wp--preset--font-size--medium)",
    					"fontWeight": "normal",
    					"lineHeight": "1.4"
    				}
    			}
    		},
    		"color": {
    			"background": "var(--wp--preset--color--base)",
    			"text": "var(--wp--preset--color--contrast)"
    		},
    		"elements": {
    			"button": {
    				"border": {
    					"radius": "0"
    				},
    				"color": {
    					"background": "var(--wp--preset--color--primary-main)",
    					"text": "var(--wp--preset--color--contrast)"
    				},
    				":hover": {
    					"color": {
    						"background": "var(--wp--preset--color--contrast)",
    						"text": "var(--wp--preset--color--base)"
    					}
    				},
    				":focus": {
    					"color": {
    						"background": "var(--wp--preset--color--contrast)",
    						"text": "var(--wp--preset--color--base)"
    					}
    				},
    				":active": {
    					"color": {
    						"background": "var(--wp--preset--color--secondary)",
    						"text": "var(--wp--preset--color--base)"
    					}
    				},
    				":visited": {
    					"color": {
    						"text": "var(--wp--preset--color--contrast)"
    					}
    				}
    			},
    			"h1": {
    				"typography": {
    					"fontFamily": "var(--wp--preset--font-family--montserrat)",
    					"fontSize": "3.625rem",
    					"lineHeight": "1.2"
    				}
    			},
    			"h2": {
    				"typography": {
    					"fontFamily": "var(--wp--preset--font-family--montserrat)",
    					"fontSize": "clamp(2.625rem, calc(2.625rem + ((1vw - 0.48rem) * 8.4135)), 3.25rem)",
    					"lineHeight": "1.2"
    				}
    			},
    			"h3": {
    				"typography": {
    					"fontFamily": "var(--wp--preset--font-family--montserrat)",
    					"fontSize": "var(--wp--preset--font-size--x-large)"
    				}
    			},
    			"h4": {
    				"typography": {
    					"fontFamily": "var(--wp--preset--font-family--montserrat)",
    					"fontSize": "var(--wp--preset--font-size--large)"
    				}
    			},
    			"h5": {
    				"typography": {
    					"fontFamily": "var(--wp--preset--font-family--montserrat)",
    					"fontSize": "var(--wp--preset--font-size--medium)",
    					"fontWeight": "700",
    					"textTransform": "uppercase"
    				}
    			},
    			"h6": {
    				"typography": {
    					"fontFamily": "var(--wp--preset--font-family--montserrat)",
    					"fontSize": "var(--wp--preset--font-size--medium)",
    					"textTransform": "uppercase"
    				}
    			},
    			"heading": {
    				"typography": {
    					"fontFamily": "var(--wp--preset--font-family--montserrat)",
    					"fontWeight": "400",
    					"lineHeight": "1.4"
    				}
    			},
    			"link": {
    				"color": {
    					"text": "var(--wp--preset--color--primary-main)"
    				},
    				":hover": {
    					"typography": {
    						"textDecoration": "none"
    					}
    				},
    				":focus": {
    					"typography": {
    						"textDecoration": "none"
    					}
    				},
    				":active": {
    					"color": {
    						"text": "var(--wp--preset--color--secondary)"
    					},
    					"typography": {
    						"textDecoration": "none"
    					}
    				},
    				"typography": {
    					"textDecoration": "none"
    				}
    			}
    		},
    		"spacing": {
    			"blockGap": "0rem",
    			"padding": {
    				
    				"right": "var(--wp--preset--spacing--30)",
    				
    				"left": "var(--wp--preset--spacing--30)"
    			}
    		},
    		"typography": {
    			"fontFamily": "var(--wp--preset--font-family--montserrat)",
    			"fontSize": "var(--wp--preset--font-size--medium)",
    			"lineHeight": "1.6"
    		}
    	},
    	"templateParts": [
    		{
    			"area": "header",
    			"name": "header",
    			"title": "Header"
    		},
    		{
    			"area": "footer",
    			"name": "footer",
    			"title": "Footer"
    		},
    		{
    			"area": "uncategorized",
    			"name": "comments",
    			"title": "Comments"
    		},
    		{
    			"area": "uncategorized",
    			"name": "post-meta",
    			"title": "Post Meta"
    		}
    	]
    }
    
    Plugin Author Miles

    (@areoimiles)

    Hi @mattsv

    Thank you for sending that across.

    The below two fields are meant for adding a url to a font that is hosted on something like Google Fonts or Typekit. The font will then be added to the head of the page. An example value would be: https://fonts.googleapis.com/css2?family=Fredericka+the+Great&display=swap

    But, looking at the way you have setup your theme.json I don’t think you should need to use them! WordPress should automatically load your fonts for you as you have included the “fontFace” attribute etc.

    So, I think what you need to do is clear out the above two fields as you are including your fonts using a different method, then update the heading and body font in the Bootstrap settings.

    Body font variable = $font-family-sans-serif (you can find this under Content > Typography > Base)

    Heading font variable = $headings-font-family (you can find this under Content > Typography > Headings)

    The reason this isn’t working at the moment is due to a typo that I have found in the plugin files. I will be releasing an update in the next week or so that will fix the issue but in the meantime you can update the file yourself. The file is plugins/all-bootstrap-blocks/helpers.php on line 240.

    // Line 240: Replace this line
    $var = 'settings!!typography!!fontFamilies!!' . $row_key . '!!fontFamiliy';
    
    // With this...
    $var = 'settings!!typography!!fontFamilies!!' . $row_key . '!!fontFamily';

    Let me know if any of that doesn’t make sense or if the above doesn’t fix your issue and I will take another look. I will send you an update when I release the update.

    Thanks again for flagging the issue.

    Miles

    Thread Starter mattsv

    (@mattsv)

    Emptying these fields solved the problem.

    Once again thank You for support.

    Matt

    Plugin Author Miles

    (@areoimiles)

    Great stuff!

    If you need help with anything else, don’t hesitate to get back in touch.

    Miles

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error, populate with theme.json, adds unresolvable resource link’ is closed to new replies.