Forum Replies Created

Viewing 25 posts - 151 through 175 (of 475 total)
  • Author
    Posts
  • in reply to: Errors in new gutenberg-course plugin #49397
    Zac Gordon
    Keymaster

    Okay, it looks like the .babelrc file was not there so it was not understanding JSX.

    Should be all fixed now 🙂

    in reply to: Errors in new gutenberg-course plugin #49395
    Zac Gordon
    Keymaster

    Okay, I’m seeing what you’re seeing now.. exploring solution..

    in reply to: Wrong hyperlink in Course 00 #49392
    Zac Gordon
    Keymaster

    Thank you! Just fixed 🙂

    Zac Gordon
    Keymaster

    Similar to your other question on extending existing blocks I’m not sure it’s possible yet. Please ask in the WP slack #core-editor channel and let us know what you find!!!

    in reply to: How to remove inspector controls from core blocks #49231
    Zac Gordon
    Keymaster

    Hiya!

    Yes, when I made the course this wasn’t really possible. They are looking for ways to make blocks more customizable like you want and I hope to cover more hooks in a separate advanced video.

    For the time being if you want a custom block you have to build it yourself.

    That said, please go ask this question in WP Slack #core-editor channel and see if they have made any progress! Would love to know what you find out.

    Once it’s possible I’ll prepare some material on how to do it 🙂

    in reply to: Errors in new gutenberg-course plugin #49203
    Zac Gordon
    Keymaster

    Okay, was worried it might not be that simple. So you have everything loaded and updated. And you have the latest version of the plugin and WordPres? And it works in one environment but not the other. I tried to duplicate the problem but can’t.

    So, I’m wondering if it is a hidden character or something messing things up. What happens if you delete the code in that file and type it from scratch as it is in the example code but not copy and pasting?

    in reply to: Errors in new gutenberg-course plugin #49011
    Zac Gordon
    Keymaster

    Hey Charles, it may not be this simple, but did you run npm install beforehand?

    Zac Gordon
    Keymaster

    Block templates will only work for new posts and pages unfortunately. I will look into this a bit more for the next update, but I believe you can hard-core into a parent block what children you want in there (and to some extent vice versa). Try checking some of the links in the latest GB update on the make.wordpress.org blog for some hints and possible leads.

    in reply to: Addendums links not working #48691
    Zac Gordon
    Keymaster

    Sorry about that. Looks like the site had some dns issues. Should be resolved now.

    Zac Gordon
    Keymaster

    Yup! You figured it out 🙂 Just PHP names paces 🙂

    in reply to: Is possible to wrap a RichText in a custom component? #48291
    Zac Gordon
    Keymaster

    Yeah, this is a really good question and I believe they are working on extending this more. I am not sure yet if it is possible but I will look into it and try to include in the next update. In the meantime please ask in the core-editor Slack channel!

    in reply to: How to get a color class name #47952
    Zac Gordon
    Keymaster

    Hmmm, gotcha.

    I haven’t played with this enough, but maybe some of there other functions can help?

    https://github.com/WordPress/gutenberg/blob/f95b2d5b952e7a495128d6cb5ca90cc42cf4e169/editor/components/colors/utils.js

    Wonder if it’s setting in a color picker to return name if available instead of hex but you may still be able to get yourself.

    in reply to: How to get a color class name #47927
    Zac Gordon
    Keymaster

    Few things:

    1. Make sure you’ve added custom colors to your theme or plugin
    2. Make sure to import getColorClass from editor
    3. Setup your attributes all the same way as before (I believe)
    4. Save getColorClass( ‘color’, colorName ) to a variable
    5. Wherever you want to use that custom CSS name, call that variable

    Hope this helps!

    I don’t have any examples of this at the moment, but I will make a note for the next course update 🙂

    in reply to: Inaccurate link #47755
    Zac Gordon
    Keymaster

    Thanks! I’m updating all the links now. A number of things were moved around.

    in reply to: Can't see any course material #47753
    Zac Gordon
    Keymaster

    Just adding note here for records that everyone should have access, please ping me if not!

    Zac Gordon
    Keymaster

    Thanks for pointing these out! All fixed now!

    in reply to: Variable speed option for videos not sticking #47747
    Zac Gordon
    Keymaster

    Thanks for pointing that out! Just fixed 🙂 It should remember your video speed now 🙂

    in reply to: Can't see any course material #47074
    Zac Gordon
    Keymaster

    Hi Michael! You should be all set now! Looks like there was a problem with the registration process. Should be all fixed now!

    in reply to: Demo Block & HTC A Block blocks not showing? #47027
    Zac Gordon
    Keymaster

    I just tried installing both of the plugins and it is all working for me. Could you explain again the exact problem you’re having?

    in reply to: Demo Block & HTC A Block blocks not showing? #47025
    Zac Gordon
    Keymaster

    Hey Adam! There were some recent changes to the Gutenberg Core code. I will be updating the example files this week so let me do that and then we can try again.

    If you want to explore a bit on your own, most of the changes have to do with the location of block files being moved…

    in reply to: Can't see any course material #46968
    Zac Gordon
    Keymaster

    Hi Jessica!

    If you login and go to javascriptforwp.com/dashboard do you see the course listed there or do you mean there are lessons missing links?

    Thanks!

    in reply to: import './style.scss'; #46926
    Zac Gordon
    Keymaster

    Hey Jason!

    Importing the css in this way is simply one of the styling patterns for React. Gutenberg Core uses it so for these reasons I’m using it here. In these examples, webpack is processing and spitting out the final css that we end up enqueuing.

    You can also just have a single css file (or other architecture) and enqueue that. I think either way is probable fine and not a major benefit one way or the other if you don’t have a preference (or do :))

    Hope that helps! Good question 🙂

    in reply to: Error in #46896
    Zac Gordon
    Keymaster

    That is just part of the development process if you make changes to a block 🙂

    in reply to: Inspector controls inside dynamic block #46894
    Zac Gordon
    Keymaster

    Does the example block work for you out of the box? If so I might suggest starting over and seeing at what point it broke. Might be as simple as something named incorrectly.

    in reply to: Fragment vs. returning an array in edit #46892
    Zac Gordon
    Keymaster

    This is a good question.

    In general I think using Fragments is a solid approach that is also quite common in React and some vanilla JS work.

    The ability to pass arrays here I like but it doesn’t always work best.

Viewing 25 posts - 151 through 175 (of 475 total)