+1 @ BoldBlocks.- totally agree on this.
Here’s an example of what not to do courtesy of the “CSS Hero” WP plugin. I don’t use it but have dealt with people that have / have had it installed. It uses ridiculous tactics like this. Sadly, you won’t realize what they’ve done until you’re already a customer. It’s almost like a punishment for buying it legitimately.
However, they apparently also felt the need to go above and beyond the norm to make things more difficult than even what has been described here. When you buy the product, you also likely won’t realize that you weren’t given the full product (source code) either like with most WP plugins. They purposely do not distribute the full source code but rather just a shell. It’s a client / server based plugin product. It’s not encoded or encrypted but simply incomplete.
What this means is that you’re only given what amounts to a client to connect with their server. It needs to phone home each time you invoke it’s user interface on the front end of your site. The license verification code that would otherwise be the attack vector for someone wanting to hack the system is stored remotely just out of reach which is good for them. If they’re ever down though, you don’t have internet access, the company goes out of business, etc – you’re pretty much screwed whether your license is real or not.
Wow. Regardless of whether it works or has worked before. Don’t just embed scripts like that. Read all these in their entirety. Don’t scan / skim. Read all of it.
jQuery is already part of WP core and by default is setup for no conflict mode. Adding jquery and other scripts incorrectly to a WP site will likely cause plugin / theme conflicts immediately or later for you or someone else. Just don’t do it.
The menu will never work reliably until jQuery, the menu JS and the menu CSS are all at least enqueued properly. Then the document must be in a “ready” state.
You’ll need to integrate with the WP Menu system. I’ve not built a menu walker myself but I know what they are / for. Do not just hardcode HTML into php because it’s easier. This is just how menus work in WP.
Lastly, none of this code really belongs in a theme or child theme (read – don’t put it in the functions.php). Instead, you should endeavor to put it into a plugin for maximum modularity / maintainability.
Here’s a popular way to begin a new plugin without having to start from scratch as much has already been done for you and it’s free too – http://wppb.io
So, there you have it – adapting a JS menu into WP is easy to do WRONG. Learn to do it right. Figuring out how to extend the WP walker class and the Appearance
> Menus screen is one of those things on my to do list but I keep having to put it off. Eventually I’ll get there. Never stop learning. :)
I’m interested in people’s reactions to this news. Are you in favor or against it? Do you think it will affect the future of competing eCommerce solutions for WordPress at all?
Why or why not?http://www.woothemes.com/2015/05/woothemes-joins-automattic/
WordPress Theme Developer Handbook Updated with Comprehensive Guide to the Customizer API
In response to more than 150 comments debating on the topic, Nick Halsey, who has worked extensively on the feature in WordPress core, stopped by the WP Tavern to offer a few words in support of the Theme Review Team’s decision:
Many of the comments here are misinformed or unaware of both the full power of and the future importance of the Customizer. I’ve given an overview of my perspective on my blog, and while those views don’t directly represent the views of the WordPress project, I can say that most people working on the Customizer in core would agree with my points. Like it or not, the Customizer is here to stay, and ignoring that fact will eventually cause users to turn against you. – Nick Halseyhttp://wptavern.com/wordpress-theme-developer-handbook-updated-with-comprehensive-guide-to-the-customizer-api
@Theme-Paradise – The current interface is basic but very programmable. You can either make custom controls or use custom controls made by others. There are several already linked in this thread. I’m also pretty eager to see what the recent Redux / Kirki team-up will produce. Even though Kirki already provides a better customizer experience as is, the support of the Redux team should make things very interesting!
If you have concerns that can’t be address by the current state of the Customizer API (adding custom controls, etc), another way to improve it is to submit a ticket in the WP Core Trac. WP v4.3 will be out in a few short months it could include changes from anyone especially this early.
@HighGrade – Thanks for taking the time to post! You may not have read through this entire thread (or articles linked within – I don’t expect that). It’s clear to see that the market is already too saturated with 1000 option themes types though. Redux and Kirki Advanced Customizer are now joining forces. You’ll soon be able to use your Redux Options config file with Kirki instead to make the switch that much easier.
There are many segments to any given market and ThemeForest is no different. The number of themes that use the customizer today are far fewer than that of other options frameworks but that should represent an opportunity rather than obstacle. It’s all about perspective, I suppose.
Why choose to compete in the most crowded space if your product may not be well suited for it? If you think you have to because users won’t buy anything else or it won’t be profitable enough, I’d submit those may just be excuses. Regardless of the target market for a given theme, it’s really up to the author to educate / convince the prospective buyer they’re worth purchasing. That’s the pretty much the challenge of any seller trying to market their wares though as well as choosing the right audience within that market. Even though TF’s WP market only represents a portion of the WP community, this is still a necessity since it’s one of the larger ones.
I like your McDonald’s analogy. Those who go to eat at McDonald’s often especially those take the extra food deals will likely become fat over time. This is not unlike what will happen to a website using certain themes especially those with unnecessary junk bundled in. McDonald’s can offer all the good deals it wants but if it’ll make one fat or it will just go to waste (like non-used features), whether it’s a good deal or not may not be relevant. While Caveat Emptor still applies here, authors sometimes specifically prey on the ignorance of a certain buyers. It’s not exclusive to Envato markets as Apple does it too. It can certainly be profitable so I understand why it is done even if I may not agree with the practice.
There will almost always be plenty of the less savvy users that will still go “Ooh, shiny!”over such deals due to being uniformed / lacking experience. These users perhaps should not be your target market if you’re worried about the competition. They may even eventually outgrow their WP adolescence and no longer be in the market for such offerings. You may actually find it easier to sell to them then.
This has just been my experience. I’m always interested to hear stories from others whether they’re contrary to this or not.
Some awesome news here, folks!
Redux and Kirki Frameworks Join Forces to Provide Better Support for the WordPress Customizerhttp://wptavern.com/redux-and-kirki-frameworks-join-forces-to-provide-better-support-for-the-wordpress-customizer
@BoldBocks – Wow. That’s a great, helpful bunch of links! I happen to be a DRY lover myself and was already was aware of those you posted. There were still a couple, I hadn’t seen before though.
@Splendous – I think you’re referring to the “The Canvas” WP the here on TF? Yes, that theme really pushes customizer use to the next level and then some.
It shows the customizer can cope quite well with lots of options. It’s fairly well organized but looked like overkill to me. The author apparently didn’t feel limited at all. He probably had too much fun creating it and didn’t want to stop. Lol.