There is no way to prevent the free distribution of your theme. You could make it harder by selling a copy that is restricted to a license key and a salted hash of the domain. But even if you put the code for this in a pre-compiled script it will be possible to get around it.
Sell support, upgrades and reliability, not the naked code.
For the license: PHP code which is uses WordPress functions and hooks is GPL per default by some peoples interpretation.
For your stylesheets, images and standalone PHP code you can use a different license.
Related Posts:
- Is accessing theme and using customizer GPL distribution?
- WP 3.4 – what action/hook is called when theme customisation is saved?
- Add a dropdown to theme customizer
- Is it good to rename theme folder downloaded from WordPress.org?
- Editing the custom background CSS
- What is the problem if I use CDN in my WordPress parent theme(built using bootstrap)?
- Is it possible to use line break in theme description?
- How can I get wp_head() as a string instead of echoing it?
- Grab the first paragraph of each post
- How to check if post has any tag?
- What are WooCommerce starter themes? [closed]
- How do I “unhook” / de-register jQuery so that it’s not called as part of wp_footer();?
- How to disable the gradient and font size internal CSS added by WordPress when using theme.json
- Example of a theme organization without all the default wp files in root
- Which is the simplest theme for WordPress to use it as your base?
- “Cheatin’ uh?” error message on multple theme directories
- Adding WordPress colorpicker in widget settings
- Disable the Custom Internal CSS added by theme.json for Certain Pages
- Unwanted blank lines before tag
- A theme that follows all the best practices to learn from?
- How do I display the “Archives” widget layout (sidebar) in WordPress by ‘year’ then by ‘months’?
- get_post() function returns post even if it is trashed
- How to highlight the current page in the nav menu?
- What page should I use for a contact form?
- Retrieve data using wpdb to use for customizer controls
- Custom Nav Walker Displaying Values in Sub Menu
- How to configure wordpress to work with Vuejs with SSR and without hashbang
- How can one update a theme on a live site without interruption?
- Sub folder CSS that’s read by Admin panel
- Some doubts about how to show posts in a custom theme?
- Dequeue a style file which is making website load slow!
- How to remove a file included in parent theme with locate_template() via child theme?
- Can’t delete theme
- How to add a second stylesheet to the editor
- Stylesheet not linking
- How to control layout of posts on page?
- Override template file i subfolders
- Single Page theme [closed]
- Theme Development for WordPress Multisite Installation
- Can I have two different theme for two different language?
- create category on theme setup
- WP_Comment_Query – Get comments and answers separately
- excerpt() shows different result between remote and localhost(development environment)
- Prefix best practice, should we use framework name or theme name?
- Theme Javascript.php Overwritten Nightly [closed]
- WordPress get_template_part() function not working
- How to add Space between sidebar and footer widget in WordPress theme [closed]
- Call to undefined function add_menu_page() on theme activation
- Best way to develop a new theme on a live site, with new content? [closed]
- How do I make the most minimal vanilla theme possible with nothing but raw content?
- Can I Set Up Session in WordPress Custom Page
- Is it acceptable for a WordPress theme to not accept widgets?
- Should all references to a text domain be to my current theme?
- How can I hard code my sidebar?
- Simple child theme modification but links are broken
- Making a WordPress theme based on twentyten
- How can I wrap all blog posts image with
- theme style is applied on the dhasboard rather than the website
- Alignment Problem [closed]
- What $handle does WordPress use for a theme’s implicit style.css?
- Issue when posting updates/changes to wordress
- StoreFront WordPress theme: How can i create a new Home page with Custom design same as template [closed]
- A post with a clear:both in its css destroy the theme design, and the sidebar is moved to the bottom
- Unwanted empty line at the beginning of document
- Why is my container argument not working for wp_nav_menu() [closed]
- Never actually adding the action? Or do I have to call the action?
- best practices for updating wordpress theme
- How to hide custom sidebar on mobile
- help needed for suit designing tool
- How to modify theme content in Thematic?
- How to update mark-up of a gallery block in a custom theme?
- Host Private Custom Theme
- My wordpress theme name isn’t updating straight away
- Customizer API Multi Sections in single Panel
- WordPress theme options checkbox default checked state
- Copying a modified theme from one wordpress site to another wordpress site [closed]
- How can I change this SVG shape that’s generated?
- Adding a second logo next to the main one in header
- How can I not disable my theme when I want to upload a new version of it?
- (Parent) theme Is Not Showing In Theme Selection Panel and Therefore Breaks Child Theme
- How can I fix my theme header for my CSS stylesheet?
- Is hand coding required at all?
- How to show some of category in wordpress
- using themename_the_custom_logo() in template-tags?
- Creating a theme just to deploy a single page
- Creating a Sub Category Template
- Custom page template not showing on page creation
- how can I re-utilize and class on a child theme
- Weird ‘theme update’ error [duplicate]
- Incorrect search results in search.php – issue triggered by using `define(‘BodyID’, ‘search’); the_post();` in search.php
- Flexslider not working for my custom theme WordPress
- WordPress two sidebar layout or theme
- Standard Way To Do Custom Work Within A Page?
- Confused on loading page content
- Add Dynamic Sidebar to Exisiting WordPress Theme [closed]
- How can I install my custom-made theme on a wordpress.com blog? [closed]
- Turning WordPress Into full-featured website?
- Why am I getting posts back when I shouldnt
- .submenu class missing in output from wp_nav_menu
- What is the point of using the front-page.php template? [closed]