Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Forum: Plugins
    In reply to: [GenerateBlocks] otf Font
    Thread Starter Verity Cantare

    (@veritycantare)

    Thanks for info on the code, that’s very helpful!

    I gave a link to the font above. The name is Library 3 AM

    It doesn’t display in the editor. The other fonts do. When I type its name into Font Family, the default font displays, unlike the other fonts that display immediately.

    Forum: Plugins
    In reply to: [GenerateBlocks] otf Font
    Thread Starter Verity Cantare

    (@veritycantare)

    Thanks for your response! I didn’t know that it was possible to add custom fonts to the GB Font Family drop down, lol. Where would I put this code when the bug is fixed so it works? The place for Custom CSS?

    It would be wonderful if GB could automatically plug in to the Gutenberg Styles font library!

    But my issue is different.

    It’s possible to call the fonts loaded into the Gutenberg styles font library in GB without this code. I make a Text block, type my text into it, then in block settings I go to Typography / Font Family. Then click the 3 dot menu next to ‘Font Family’ and choose ‘Enter Custom Value’. Then I can type the name of the font into Font Family and have the font display. No, its name doesn’t show up in the drop down, which would be wonderful, but this works.

    I have several .ttf fonts loaded into the Gutenberg styles library that work perfectly like this. The one I’m having issues with is a native .otf file. It displays perfectly in Gutenberg blocks. It won’t display at all in GB. I’ve tried using online conversion tools to convert it to .ttf, .woff, .woff2, re-uploaded them to the styles library, and none of them will display in GB. They all work perfectly in Gutenberg.

    Here is the font https://www.1001fonts.com/library-3-am-font.html

    Thread Starter Verity Cantare

    (@veritycantare)

    Never mind. The update reset the setting ‘Enable requests from any type of device’ to OFF, so testing links on my computer browser wasn’t working… Turning it on has the redirect working again.

    • This reply was modified 1 month, 3 weeks ago by Verity Cantare. Reason: added info on solution
    Thread Starter Verity Cantare

    (@veritycantare)

    Forgot to mark this as resolved when I said thanks =)

    Thread Starter Verity Cantare

    (@veritycantare)

    Thanks!

    Thread Starter Verity Cantare

    (@veritycantare)

    Thanks for the help!

    I was able to get Ground Advantage to show by selecting the Parcel/Package shape.

    I was able to get the Small Flat Rate Box to show by making the mandatory dimensions inside the shipping method setup smaller than the actual box.

    It would be wonderful to have some documentation that would show which sub settings go with each Type to facilitate setting this all up. Since I’m still learning about shipping, it would be an even bigger bonus to include a brief description of what all of these services are! I’ve tried searching for information on a lot of them and it all seems very difficult to find or understand.

    It would reduce customer confusion if I could specify what service I want to offer when there are a group of them called. Like offering only the Small Flat Rate Box instead of the entire range of them.

    Again, thank you very much for the time you’ve spent helping me!

    Thread Starter Verity Cantare

    (@veritycantare)

    Request:

    Array
    (
    [originZIPCode] => 75402
    [weight] => 0.0237
    [length] => 11.8
    [width] => 9.3
    [height] => 0.5
    [mailClass] => ALL
    [priceType] => RETAIL
    [destinationZIPCode] => 77024-2006
    )

    The response is VERY long (almost 200 pages in google docs). Here is a share link to the doc instead of trying to paste it here.

    https://docs.google.com/document/d/1tus9slTVWC-32QrjfNZa21qxq4P0Wt0QBKI4eDy6N7I/edit?usp=sharing

    Thread Starter Verity Cantare

    (@veritycantare)

    I moved hosting today and now there are a lot of notifications. I have to finish setting it up so I will paste them tomorrow.

    Thread Starter Verity Cantare

    (@veritycantare)

    Thank you for your response!

    I activated the REST API and checked debugging mode on. The API connection says OK.

    I have set up a shipping method using Ground Advantage, sub-type: None, shape: Large Envelope/Flats, delivery type: None. I have entered the stats of the rigid envelope I will use for this method: 11.8 x 9.3 x .5 (inches) and its weight. I activated the free shipping option with a 50 threshold and used Flexible Shipping to add $2 to this shipping option to pay for materials and handling.

    My A2 card stats are 5.8 x 4.7 x .063 (inches)

    I’m signed into my website with my admin account. I’ve put my item in the cart, entered an address that has been verified and the only thing I see is ‘There are no shipping options available. Please check your shipping address.’

    If I advance to checkout, there is a notice at the top that says ‘USPS Live Rates: No rates added from standard service rates!’ and down in the shipping selection area it says ‘There are no shipping options available. Please check your shipping address.’

    I don’t see any sort of request or response messages besides the ones I noted above.

    I have a separate shipping method set up for Flat Rate. Priority Mail, Flat Rate, Box, None. I measured the small flat rate box and entered 8.7 x 5.5 x 1.8. This one also has the 50 free shipping threshold. When I turn on this method, only medium and larger boxes show up in both cart and checkout.

    Thread Starter Verity Cantare

    (@veritycantare)

    Thanks!

    Thread Starter Verity Cantare

    (@veritycantare)

    You are absolutely amazing! You gave me the last pieces I needed to figure this out after working on it for months. Here’s the solution for anyone else with the same problem:

    Here is the original line from the core file I mentioned above.

    .wp-block-cover-image .wp-block-cover__inner-container,.wp-block-cover .wp-block-cover__inner-container{width:100%;z-index:1;color:#fff}

    The color:#fff is the problem. I’m not sure how it decides what is affected, but it definitely affects regular text and headings of any sort inside the ‘inner container’ of the cover (which is all regular text and headings on the entire website if you are using a cover as a background of any sort) This value needs to be changed to:

    color: inherit

    This allows the inner container to inherit the color from the body, which is set in global styles, instead of dictating that all text is black.

    The headings are set to inherit their color from the inner container, so that is why they were turning black as well.

    I haven’t been able to get my child style.css sheet working yet, so I can’t test it in there, but pasting this line into the Customize/Additional CSS box and changing the value to ‘inherit’ fixed everything. Theoretically if I understand how things should work, it should also work when pasted into the theme style.css file.

    Thread Starter Verity Cantare

    (@veritycantare)

    This is amazing! Thank you so much for the time you took to write all that out.

    I’ve spent several hours trying to research how to enqueue stuff and I’m stuck there. Would you mind helping with that also please?

    Here is the function.php that was created by the plugin I used to make my child theme. Can you help me enqueue both the child style.css and the added_fonts.css I made from your previous instructions? Nothing I’ve tried from the various guides I found has made the font show up in the block editor font family typography selections.

    <?php /*
    
      This file is part of a child theme called 2023 Child.
      Functions in this file will be loaded before the parent theme's functions.
      For more information, please read
      https://developer.www.ads-software.com/themes/advanced-topics/child-themes/
    
    */
    
    // this code loads the parent's stylesheet (leave it in place unless you know what you're doing)
    
    function your_theme_enqueue_styles() {
    
        $parent_style = 'parent-style';
    
        wp_enqueue_style( $parent_style, 
          get_template_directory_uri() . '/style.css'); 
    
        wp_enqueue_style( 'child-style', 
          get_stylesheet_directory_uri() . '/style.css', 
          array($parent_style), 
          wp_get_theme()->get('Version') 
        );
    }
    
    add_action('wp_enqueue_scripts', 'your_theme_enqueue_styles');
    
    /*  Add your own functions below this line.
        ======================================== */ 

    My folder structure is 2023-child with the php and css files and a font folder to hold the actual fonts. I modified your code to look like this

    @font-face {
        font-family: "Petrona";
        src: url("fonts/petrona/petrona-v28-latin-regular.woff2") format("woff2"),
             url("fonts/petrona/petrona-v28-latin-regular.woff") format("woff");
        font-weight: 400;
        font-style: normal;
    }

Viewing 12 replies - 1 through 12 (of 12 total)