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
*/
Related
I new to wordpress, dealing with customization of current theme.
I cannot create a child theme of this theme, as this one is already a child theme of another theme.
What I did is that I copied theme folder from wp-content/themes, changed name of this folder and changed Theme name in style.css -> expecting that this theme will work exactly the same as the previous one.
Although there are some major differences when I activate the new one:
Original:
Copied theme:
It seems to me like some part of customization of the original theme is missing in the database.
So my question is: Apart from theme folder, what else (and how) do I have to change for my copied theme to be exactly the same as the previous one?
Thanks for any help in adavance.
good time,
To solve this you need to paste the custom CSS code used on the new website.
If your previous website is online, just do so by pressing the Q (Inspect Element) key in the Firefox browser to access the source and copy the CSS inline codes.
I have updated my WordPress version. The style of the css is modified. I have a backup version. Should I take the oldest file for plugins and theme in order to resolve that issue?
you should have a child theme and put your custom css in the css-file from your child-theme.
Your child-theme would not touch from any update and your custom code is save
Taken from the WordPress Codex:
WARNING: The upgrade process will affect all files and folders included in the main WordPress installation. This includes all the core files used to run WordPress. If you have made any modifications to those files, your changes will be lost.
When you do any theme changes you should always put your changes in either a custom theme you have made yourself (so only you update it), or if you're using someone else's theme, create a child theme.
More information about child themes can be found here:
A child theme is a theme that inherits the functionality and styling of another theme, called the parent theme. Child themes are the recommended way of modifying an existing theme.
As for plugins, they don't work in the same way so you'll need to make sure that any plugins you change are your own otherwise you'll lose the changes when you update them.
Lastly, you can also use the WordPress Customiser (Appearance > Customize in the dashboard) if you don't want a child theme but want to insert custom CSS. That allows you to edit CSS safely within the dashboard and keep your changes safe even when you update things.
I'm new on wordpress and I have readed about childs themes.
My question is, Is that neccessary that I create my self child theme or can I use other theme child created ? that's to say, if I use a child theme created for other person, that theme will not change that I do it?
The way a child theme works is that it overrides the default settings of your chosen theme. So you only have to allow for the parts of the theme that you want to make your own.
As long as a child theme created for someone else is based on YOUR main theme, then you could use someone else's child theme.
For example, if someone has a child theme that works for Wordpress 2017, you can upload and modify that for your own use, for example to change the css or create your own header and footer files (usually named header.php and footer.php). These are the things I do most often.
If you don't already have a child theme for your chosen theme, though, it is best that you create one yourself. It is quite straightforward, all you have to do as a minimum is create a child theme folder with a style.css in the correct format and a functions.php file in the same folder using these instructions https://codex.wordpress.org/Child_Themes
If all you want to do is play with color and fonts, you might find it easiest to just use the Wordpress Theme Customizer. These changes will be maintained during upgrades in a custom.css file (or equivalent) so you shouldn't need a child theme.
Hope this helps
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);
I am having an issue with a wordpress and a bbpress plugin. I need to install a bbpress theme, but I can't seem to have them show up in admin, although I put it in the right directory. I have also tried with other themes, same result.
This is a bit hacky, but I was able to theme bbpress by building a child theme. By making a child theme instead of altering the plugin theme directly, you will make sure that your style changes won’t be overwritten if and when you update the plugin.
Start by copying the bbpress theme out of the plugin folder (I started working off the bbp-twentyten theme), and pasting it into the Wordpress themes folder. Rename it with whatever you want your new bbpress theme to be called. Go into themes > your child theme's name > style.css and add this in the header:
#import url('../ the name of your parent theme /style.css');
Theme Name: Name of your Child theme
Description: Description of child theme.
Author: Your name
Template: The name of your parent theme
Go in to the appearance > theme area of your Wordpress dashboard and see if your new theme appears. If it does, install it.
Your site should look exactly like it did before. What happens is that #import url allows the theme to pull all the styles from the parent theme, which you can then override without messing up the original.
Now edit the style.css file in themes > your-child-theme. Just be aware that if you make a change that doesn’t seem to load, you may need to add an !important to the style.