-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accepting contributions? #4
Comments
Yes! |
@joshuaiz Should I make a review of things before I commit so you know what's wrong and what's the things that you wanted to like that. Like favicon feature is in WordPress core so you shouldn't add it to the theme at all. Let me know |
Yes go ahead.
… On Oct 28, 2017, at 6:09 PM, Hardeep Asrani ***@***.***> wrote:
@joshuaiz Should I make a review of things before I commit so you know what's wrong and what's the things that you wanted to like that. Like favicon feature is in WordPress core so you shouldn't add it to the theme at all. Let me know
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Just following up on this - do you have any suggestions? Would love to see them. Regarding the favicon, while it is in WP core, it is an extra step to have to set that with every site so I would rather have a default in header.php. And just because it is in core, doesn't mean the old way doesn't work — I still create the favicons myself and add them to the theme. All that said, I could see the argument for keeping it outside the theme as it isn't theme-dependent. |
@joshuaiz Thanks for reminding. It's been in my ToDo for a while but I'm procrastinating a lot, honestly, so been skipping. And yes, that's the argument for favicon. You don't change your Favicon or logo with your theme, it's something which shouldn't be part of the theme. Let me review your theme right now before I procrastinate again. |
@HardeepAsrani While I get the argument for separation, at least for my studio, we do design and development so we are often creating not only the logo, but the favicon and the theme. As hard as we try to push clients to maintain and update their site(s) themselves, it is often a losing battle. Thus, using the core customizer function for favicon or even site logo really depend on the level of client involvement. If we (my studio) is handling everything, I would rather do it programmatically rather then through the WP Customizer or Site Options. More broadly though, this should have been implemented long ago in core. Yet, now that it is an option, even when clients use this we still often need to clean it up and style it. Sometimes it's better to just handle it in the theme and not even let the client know it is there. As with many things, having two ways to do something isn't necessarily bad and while I agree that the site icon is site-independent, I would still leave the favicon call in with Plate. It can be removed easily enough. We use the customizer much more (including logos and banners) in our sister theme Template: https://github.com/joshuaiz/template Maybe you want to check out that as well. Lastly, these things depend on the particular client and the project. Some developers will want/need to handle this themselves and doing it programmatically gives them more flexibility while using the built-in WP functions make it easier on the client. So, I wouldn't remove it from the theme but I will add some comments about the Customizer and Site Options. Anything else I'd be happy to review. |
It should be:
Should be removed as user should use enqueue scripts/styles/fonts using functions.php file. And just like logo and favicon, your Google Analytics code is not theme-dependent and should be added using a plugin.
It should be added like this: https://developer.wordpress.org/themes/functionality/custom-logo/
You can get it from the image being used. And it should also be translatable.
Instead this should be used:
It will work just fine and without any issues. And yes, the header should have rel="profile".
|
All these are great. Let me look after the new year and respond in kind. Yes some of the legacy Bones stuff are either pre- or just after WP 3.X so it has been outdated. One thing I noticed off the bat is that get_theme_file_url(); has replaced get_template_directory_uri(); as of WP 4.7 so we have already implemented this change. Maybe download the latest updates (as of yesterday) and have another look. All that said, these suggestions are super welcome and thanks so much! |
@HardeepAsrani Just going over a few things briefly:
Our Template theme has more support for this and customizer in general — it is more client based. Plate is really targeted towards developers.
Thanks again - these are great! |
One more thing about Typekit - enqueueing Typekit fonts is not as efficient as using their javascript and it should be in the In any event, the space is there in header.php - you don't have to use it. |
@HardeepAsrani Just pushed up a lot of your suggestions and my previous post replying to your points has been edited. Again, thanks for these suggestions - really helpful. |
Going to close this for now. @HardeepAsrani (or anyone) if you have a specific enhancement or recommendation, create a new issue. Thanks! |
Is this theme, as well as Template, accepting contributions? Saw some things that don't comply with best practices for themes, so wanted to send a PR.
The text was updated successfully, but these errors were encountered: