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
Related
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.
So I have a child theme which extends genesis framework.My child theme is basically using the Genesis blog article theme. I looked into the page_blog.php of the Genesis theme but it has only genesis loop running and says that code being used is in the file lib/structure/loop.php. I want to change the default blog article page, I want to show the author name, blog category, a published date which requires the change in the HTML. How can I do so?
if I got it right, you need to override files in the parent theme by recreating them (at least copy them) into the child theme directory>> so you need to copy the blog article page and change it,also you may need to create functions.php in the child for new functionalities
for more details https://developer.wordpress.org/themes/advanced-topics/child-themes/
You have 2 options :
You can create your own page_blog.php file in your child themes root directory and add code directly to the file and modify the default functionality.
Or you can select the blog page template and use custom fields to control the query variables
I'm having some issues overwriting a Builder WooCommerce (a Themify plugin that interacts with WooCommerce http://themify.me/addons/woocommerce) template from with a child theme. My child theme is set up and working, and I can successfully overwrite the WooCommerce product page images from (childTheme/woocommerce/single-product/product-image.php). That all works great, but when I try and overwrite a template within the Builder WooCommerce Plugin (product listing template) nothing seems to happen.
I've copied the appropriate template file into (childTheme/builder-woocommerce/template-products-list.php) and made modifications, but they are not coming through at all. Is it for some reason why overriding this plugin doesn't work?
I contacted Themify support, and was told:
Child theme can only save theme files. Builder woocommerce is a addon/plugin. It is not possible to save plugin files through child theme. You can copy customized files manually and replace it with the updated file after plugin update.
Unfortunately, it doesn't seem possible to make changes to any template file within this plugin from a child theme.
I'm writing a plugin for a website, and one of the pages on the websites requires a custom template. How can I add a template via the plugin, without having to go into the theme's folder and adding it manually?
Any help would be appreciated.
if you don't want to change the existing theme you can always create a child theme: Wordpress Codex: Child Themes
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.