How to manage 2 editions of a theme - wordpress

At the moment our wordpress theme is only available in the 'standard' version but in the near future we plan to offer an 'studio' version. What do you guys think would be the best way to manage 2 versions / editions of a theme without having 2 individual reposetories?
My idea at the moment would be to have a branch called 'studio' which gets all the features / bugfixes from the 'master' and on top of course includes the exclusive features from the 'studio' version.
Maybe there are some best practices iam not aware of but i had no luck searching for it.
Thanks in advance!

I would recommend harnessing WordPress' Child Themes functionality. So your Studio theme would essentially be a child of the Standard theme.
When creating the CSS comment/headers in your style.css, just be sure to reference the parent theme, like so:
/*
Theme Name: My Studio Theme
Theme URI: http://www.example.com/themes/mystudiotheme
Description: Managing Multiple Versions of a Theme
Author: 2190870
Author URI: http://www.stackoverflow.com/users/2190870/user2190870
Template: mystandardtheme
*/
Resources:
How to Create a Child Theme
Theme Stylesheet

Related

Applying a different Wordpress Template to a different wordpress theme

I purchased a wordpress theme as shown in the url here https://seosight.crumina.net/. Since then i have changed my mind and browsed for ready made templates and happy with the template located here https://themes.semicolonweb.com/html/canvas/demo-seo.html
However, since i purchased the theme, can i buy and push the templates in the existing themes with minimal work or do i need a wordpress developer?
The short answer: no, you can't.
The themes aren't only a PHP template. The also have css and JavaScript files. And also some php custom functions.
The best way to replicate the page you like is with a designer, like Elementor, Divi, Oxygen, etc. Or better yet, with a developer :)

WordPress theme Update

I have uploaded a theme on WordPress repository but review pointed out some issues in the theme.
I have fixed all these issues and updated my theme version. Then WordPress gave me another ticket number.
But it is not being updated or the last five days.
Can anyone tell me what is the problem and solution
The page I need help with: https://themes.trac.wordpress.org/ticket/83941
Thanks.
Welcome to Stack Overflow! Unforunatelly this is not the right place for this specific question. Please read https://stackoverflow.com/help/how-to-ask and https://stackoverflow.com/help/minimal-reproducible-example
But not to let you down, I looked in your ticket link:
More than one text-domain is being used in this theme. This means the theme will not be compatible with WordPress.org language packs. The domains found are storeluda, tgmpa
Invalid theme URI. There is no any information about the theme.
Copy of underscores theme. Copyright (C) 2020 Automattic
License issues, pixabay images are not allowed.
Do you have any troubles and don't know how to solve this requirements?
You can show us some code if you think you have done everything right.
If you don't know what to do:
In your functions.php or anywhere in your theme you are using more than one text domain. This might help: https://developer.wordpress.org/themes/functionality/internationalization/#text-domain Only use one text domain for your theme.
You theme uri is a public webpage where users can find out more information about the theme.
So the style.css of your theme should start with something like:
/*
Theme Name: Twenty Seventeen
Theme URI: https://wordpress.org/themes/twentyseventeen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Twenty Seventeen brings your site to life with immersive featured images and subtle animations. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentyseventeen
Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/
Find out more: https://developer.wordpress.org/themes/basics/main-stylesheet-style-css/
You are using Underscore_s starter theme and build your theme above it. You should make this clear in your themes information.
You are also using images that are the property of someone else. Obviously you cannot use pixabay images, as they say "are not allowed". Take a look at licence free images and get a licence for the images to duplicate and sell them.
Hope this can help you.

Is full Angular theme allowed in WordPress marketplaces?

I interested if I spend time and energy on creating a full Angular theme for WordPress, then is it allowed to sell on famous WordPress theme marketplaces?
Since the full Angular theme does not follow WordPress theme hierarchy and maybe there are conflicts with lots of WordPress plugins, going to be accepted these type of themes are very difficult.
Have you seen any such templates?
Is there any way to pass theme review tests for Angular themes?
There doesn't appear to be anything that explicitly prevents an Angular theme.
https://make.wordpress.org/themes/handbook/review/
The main items would be ensuring content creation in WordPress is routed properly and displayed with the Angular theme.
You could use the Xo for Angular plugin to provide all the necessary integrations.
https://wordpress.org/plugins/xo-for-angular/
Xo also allows the dynamic insertion of wp_head and wp_footer into your index so other plugins are still compatible with your Angular theme.
Here is an example theme built using Xo for Angular which I plan to submit to the WordPress themes repository soon.
https://github.com/WarriorRocker/angular-xo-material
I am the author of the plugin and theme above.

Wordpress child theme vrs copy theme

I am deciding between using a child theme vrs a copy of a parent theme.
I know the rule is to use child always. My prob is that I'm changing basically every file and css page in it significantly. (it's a beginner theme so it's not all that much) it seems easier just to copy the whole theme and hack it up.
It's an older theme (2yrs old) so I don't see it being updated to much. Is there a way to 'detach' it from updates so if one occurs it won't screw it up?
I'm not to worried about hackers etc on my simple site.
If you want to disable theme update notifications you can do it by changing the Theme Name field in the main style.css, or if you don't wanna change the name the other option is changing its version number to something really high.
/*
Theme Name: Your Theme Name
Author: Your Name
Author URI: Your URL
Description: Your theme description
Version: 1.0
*/

Wordpress Theme Development Quick Start

I tried looking for a quick and dirty getting started with wordpress theme development tutorial. Now I know how to go and discover things myself, I'm looking for "top ten FAQ for programmers" when starting wordpress development. (For example, Turn on debugging and where the debugging option is located), how best to setup your dev environment.
All I can find is elaborate or too low level or too high level guides to it. Coming from a background of creating custom wordpress-like applications makes me frustrated.
So perhaps someone can list of the few things I need. I don't need to know how wordpress works, what a database or widget or page is.
Question I was specifically searching for:
1. How do I make wordpress watch the theme folder for changes from my IDE ( I can't really believe anybody would develop through the wordpress admin theme editor...No Undo history!). Changing the files doesn't seem to take affect until I re-install the theme. Debug mode needs to be true?
Any links condensed version of this: http://codex.wordpress.org/Theme_Development or similar?
WordPress use a hierarchy of files to determine what ends up being shown to the user. For starters all you need to create a WordPress theme is a style.css and index.php.
This is what you will have to put in your style.css in order to make it a valid WordPress theme:
/*
Theme Name: Your theme name
Theme URI: http://www.example.com/
Description: Describe your theme.
Author: Your name or company
Author URI: http://www.example.com/
Version: 1.0
Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu (optional)
License:
License URI:
General comments (optional).
*/
All you really need to include is a unique name for your theme and WordPress will recognize it and list it among your other themes. Even though that works, I would recommend including as much info as possible.
With just two files, index.php will then run for every single page view, no matter the type of content the user asks for. You can extend this by adding files like page.php to display all your pages, single.php to display single posts differently and so on.
I highly recommend getting familiar with the WordPress Codex. This is a good place to start:
http://codex.wordpress.org/Template_Hierarchy
The image below explains the hierarchy and what file ends up being served. I use it sometimes for reference, there is no need to memorize it entirely.
you need to become familiar with basic wordpress functions like the_permalink, the_title, the_content, etc. these are easy to remember and you can always refer to wordpress.org documentation if you don't want any out of box functionality and you pay more attention to design
if you intend to submit theme to wordpress.org than turn on debugging wile developing and read this before start http://codex.wordpress.org/Theme_Review
Theme development for beginners can be made easier by basing it on an existing theme such as the twentytwelve theme. I have written a blog post on it here http://johnadavies.me/2013/09/19/wordpress-child-theme-development/
John
turning on debugging it's the root-directory config-file.php look for faction call in
// Enable WP_DEBUG mode
define('WP_DEBUG', true);

Resources