Simple Gutenberg Google Fonts
Simple Google Fonts adds the posibility to change default fonts to Google fonts from within the new WordPress v5.0 editor, codename Gutenberg. You’ll need Gutenberg installed and activated in order to use this plugin. What it does? Simple Google Fonts adds the posibility to change default fonts to Google fonts from within the new WordPress v5.0 editor, codename Gutenberg. You’ll need Gutenberg installed and activated in order to use this plugin. Things to know: Read the After activation section for some info on how to use it. Supported post types: posts and pages You can set Google fonts for individual posts and pages or globally. Globally means that the styles from a selected post will apply to the entire website. It will also apply the styles in the Editor, for new or old posts (that don’t have any styles applied to them). The post needs to be published for you to be able to use its styles globally. If for some reason you change that post to draft mode and the global mode is enabled on it, the option will reset and you’ll need to enable it again after you publish the post. It’s safe to say that if you don’t have an Internet connection, Google fonts will not display (unless you have them installed on your system). To do list: Add support for word-spacing for both body and headings Auto add 700 and 700i weights if the font supports those variants. GDPR Notice By using this plugin (which requests data from Google Fonts servers) you consent that Google will retrieve your IP address and that it might send it to third parties. Also, it’s your responsability to notify and obtain consent from your website’s users (by updating your Privacy Policy and Terms and Conditions). Please read Google’s Privacy Policy and if you agree with it, you can start using this plugin. Theme developers You can use the sgf_defaults filter to change the plugin defaults, example: add_filter( 'sgf_defaults', function( $defaults ) { // since v1.0.1 $check = function_exists( 'sgf_get_font_id' ); // Headings font family $hff = ! $check ? 0 : sgf_get_font_id( 'Josefin Sans' ); // Body font family $bff = ! $check ? 0 : sgf_get_font_id( 'Muli' ); // Headings $defaults[ 'headings' ][ 'ff' ] = $hff; // int | Font Family // Body $defaults[ 'body' ][ 'ff' ] = $bff; // int | Font Family $defaults[ 'body' ][ 'wt' ] = '400'; // string | Font Weight $defaults[ 'body' ][ 'lh' ] = 1.8; // float | Line Height $defaults[ 'body' ][ 'ls' ] = 0; // float | Letter spacing $defaults[ 'body' ][ 'ws' ] = 0; // float | Word spacing // Returns new defaults return $defaults; }, 15 ); For headings you can use the sgf_headings_defaults, example: add_filter( 'sgf_headings_defaults', function( $defaults, $headings ) { // $headings = [ 'h1', ... 'h6' ]; $defaults[ 'h1' ][ 'wt' ] = '400'; // string | H1 font weight, italic is added automatically. $defaults[ 'h1' ][ 'tt' ] = 'none'; // string | H1 text transform $defaults[ 'h1' ][ 'lh' ] = 1.8; // float | Line height $defaults[ 'h1' ][ 'ls' ] = 0; // float | Letter spacing $defaults[ 'h1' ][ 'ws' ] = 0; // float | Words spacing // if a propriety is left out, it will use the plugin default. // you can use this for headings from h1 to h6 return $defaults; }, 10, 2 ); For text logos you can use the sgf_styles_frontend_txt_logo filter to make sure it always takes on the Headings font family, example: add_filter( 'sgf_styles_frontend_txt_logo', function() { return '.logo-wrap'; }, 15 ); You can add these in your functions.php file. If you want to support old PHP versions, replace the anonymous functions with normal functions.
Top keywords
- defaults19×3.28%
- font11×1.90%
- headings10×1.73%
- fonts9×1.55%
- google9×1.55%
- google fonts7×1.21%
- 'h1'6×1.04%
- add6×1.04%
- float6×1.04%
- styles6×1.04%
- 'body'5×0.86%
- defaults 'body'5×0.86%
Ultimate Blocks – 25+ Gutenberg Blocks for Block Editor
Get Pro | Documentation Ultimate Blocks is a free powerhouse for bloggers and content marketers using WordPress. It’s not just a plugin, it’s a toolkit to skyrocket user engagement and simplify content creation. With Ultimate Blocks, you’re not just adding functionalities; you’re crafting experiences. From interactive content filters, captivating call-to-actions, to social sharing made effortless, every block is a step towards a more engaging and visually appealing website. It’s about making every visit count, every interaction memorable, and every content piece a breeze to create and manage. Transform your WordPress journey; let Ultimate Blocks be the catalyst for your website’s success. Ultimate Blocks currently includes the following blocks: Coupon (Available in Pro) – View Demo Timeline (Available in Pro) – View Demo Content Filter – View Demo Review (Schema Markup Enabled) – View Demo HowTo Schema – View Demo Table of Contents – View Demo Tabbed Content – View Demo Call to Action – View Demo Content Toggle (Accordion) – View Demo Styled Box – View Demo Styled List – View Demo Expand – View Demo Testimonial – View Demo Click to Tweet – View Demo Social Share – View Demo Countdown – View Demo Progress Bar – View Demo Post Grid – View Demo Star Rating – View Demo Image Slider – View Demo Button (Improved) – View Demo Divider – View Demo We have more exciting blocks in the making. Have a suggestion? Let us know. Join Us To Get Updates and Resources Visit Ultimate Blocks Website Follow Us on Twitter Join Our Support Community Join Our Facebook Group More Info About the Blocks Content Filter Content Filter lets your visitors filter the content based on different filters. You can let your users go through your content more easily. Review Block Add a review block with product name, features, summary, button and star rating. It is Schema Markup enabled. HowTo Schema Block Add HowTo Schema with sections, steps and valid schema data. Table of Contents Block Generate a table of contents from your headings. Tabbed Content Block Add content in tabs in your posts/pages. This comes with a nice drag and drop feature to sort the tabs. Call to Action Block Add a nice call to action box with a button. Encourage users to take action, engage more. You can customize everything in the block. Content Toggle Add contents in accordions. Let visitors expand them and show the content. Styled Box Block Add styled box like – Notification box, Number box, Feature box in your content. Three templates now, more in the making. Styled List Block This block lets you add a styled list in your post or pages. Instead of bullets you can use various icons as your list style type. You can also choose color for icons. Expand Block Expand Block lets you add expandable content. You can hide some part of your content initially. Upon clicking on ‘Show More’ it will show. It can be hidden again. Testimonial Block Nice, simple testimonial box with option to add image, name, role of the testimonial author. Click to Tweet Add tweetable content in your posts/pages. Social Share Block Add social share buttons in your posts and pages with this blocks. It comes with lots of customization options too. Countdown Block Add a countdown in your post/pages. Comes with three different styles. Progress Bar Block Add Cirle/Line Progress bar with this blocks. Comes with options to change thickness, color. Post Grid Block Add a list or grid of your posts. Comes with options to change categories, order and many more. Star Rating Block Add Star ratings in your posts/pages. You can customize size, color, numbers of stars. Image Slider Block Add a lightweight, simple image slider in your post. Comes with additional settings. Button Block Button block with more customization options and controls. Divider Block Add custom divider between your blocks. Customize the color, size, everything. Other tools from us Tableberg: The Best WordPress Block Table Plugin to create beautiful and responsive tables. GroundWP: Lightweight and Minimal Block Theme for efficient Full-Site Editing.