Closed davideprevosto closed 1 year ago
Maybe Str::finish($this->app->path(), DIRECTORY_SEPARATOR)
would work?
Feel free to do a PR and I'll try to test it out. As long as it doesn't break anything with normal registration and doesn't break having blocks inside of sub directories.
Had a chance to try this. It looks like Str::finish($path, DIRECTORY_SEPARATOR)
does the trick. Want to do a PR?
Yes, please allow me few time and we will send to you a PR. Thank you!
Hello Brandon,
before adding a new PR, I would like to ask if it is worth it for you.
I am adding blocks using a reusable custom plugin each. For example, this is a simple block for adding a custom Call to Action:
I am able to use it only if I change one line into the AcfComposer.php class, line 91. In this way both implementations should work: by a plugin or by a classic block into the theme.
From:
To:
I'm not sure if I was clear enough, I hope so. Do you think I could send you a PR or maybe I'm making a mistake in initializing our plugins?
Thank you