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.
Related
There are some plugins that I can override in my child theme (e.g. woocommerce, BuddyPress, bbpress, etc). Usually creating a folder named the same as the plugin in the child theme root and making changes there. However, that doesn't always work for ANY plugin. I'd rather not make any structural changes in the plugin itself since it will be all gone on a plugin update. But I made a copy of the plugin in the child theme and it didn't do anything. How can I do this so that I can still get all the functionality I need from the main plugin and still have my alterations prevail?
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'm customizing a Wordpress theme. The original theme has a WooCommerce folder inside like:
/wp-content/themes/az/woocommerce/
I created a child theme and activated it, then copied the WwooCommerce folder to child theme:
/wp-content/themes/az-child/woocommerce/
But web when I customized the child theme WooCommerce folder files there was no effect; the site seems to still be using the original WooCommerce folder not the new version.
Could anyone help me resolve this issue, please?
First check whether do you have any overriding template present. for that see the steps in the image given below.
If there is no templates overridden then refer to this link
Thanks for taking the time to read this. I've purchased the Beep theme from themeforest and created a child theme to work from. I've created the functions.php and style.css files in the child directory. When I activate the theme in WP some of the formatting looked messed up. Especially the navigation area. I've tried placing a PHP echo in the functions.php file which is relayed to the site - so WP is definitely finding the functions.php file. I've attached a screenshot of the child CSS, child functions and the my site directory structure. Also included is a screenshot from WP of what the Parent theme homepage looks like and what the Child theme looks like. Antony
![enter image description here][2]
Kindly go to appearance and check with menu settings, because most of the time theme will take all the categories or pages by default as menu. So change it to you custom menu or of theme custom menu –