So in plugins/yith-woocommerce-ajax-search/templates/yith-woocommerce-ajax-search.php, there is a line I want to change in the label, from "Search for:" to "Search". If I change it in this file, it's fine, but of course I want to keep the change in my own theme rather than modify it here.
So, I copied the entire plugin folder over into my theme folder and made the change, but it's not working. The path is themes/MYTHEME/yith-woocommerce-ajax-search/templates/yith-woocommerce-ajax-search.php
Any clues why this isn't working?
The plugin uses wc_get_template() to load yith-woocommerce-ajax-search.php. This means that you can put the template file directly in the themes/YOURTHEME/woocommerce/ directory, then your template should be loaded correctly.
Related
I am trying to override vendor/magento/module-catalog/* ( * for whole module ).
I copied,
vendor/magento/module-catalog/view/templates/*
files under
app/design/frontend/Magento/Magento_Catalog/*
But I can't get any change of copied files. I don't have any custom theme.
How can I do this? I want to keep original files unchanged with my custom changes.
You can override all files from vendor to our theme using below method.
Goto vendor\magento\module-catalog\view\frontend
Copy all folders and files to
app\design\frontend\{Your_vendor}\{Theme_name}\Magento_Catalog
Clear your cache using below command.
php bin/magento cache:clean
Refresh your page you can see files from your theme.
You can use this as a theme.
app/design/frontend/Magento/Magento_Catalog/
First, you have to create your own theme containing folder like:
app/design/frontend/Mytheme/Theme/Magento_Catalog
And select the theme from admin.
Then this folder will override core module_catalog
I'm using the wedevs-dokan-plugin (wedevs.com/dokan) for a WordPress frontend user store, which allows sellers to manage their store from the frontend.
I want to override one of the template files of this plugin. The file which I want to override is located at:
plugins/wedevs-dokan-plugin/templates/product-edit.php
And to override this file, I copied the file and made some changes, putting this new file in the theme directory like this:
themes/mytheme/wedevs-dokan-plugin/product-edit.php
But this isn't working for me. After that I also tried:
themes/mytheme/wedevs-dokan-plugin/templates/product-edit.php
But that's also not working.
Is there any way to override the plugin files from within a WordPress theme?
themes/mytheme/wedevs-dokan-plugin/product-edit.php
Instead of "wedevs-dokan-plugin" the directory name should be "dokan" and you can only edit the "templates" directory files of this plugin.
So, the new directory will look like these.
themes/mytheme/dokan/store.php
themes/mytheme/dokan/dashboard/dashboard.php
Thanks
I've got a custom theme running on the latest stable Concrete5 version.
It's all working great - but tonight I've come to create a variation of an existing template.
Inside the theme/themename/ folder I copied the PHP file for the template.
In the theme/themename/css folder I copied the CSS file used by the existing template.
In the CMS itself I created a new pageType with the alias to match both the php and css file's filename I'd created by copying the previous files.
The PHP / template file is loading fine when chosen as the template for a page, but it's now loading in the associated CSS file.
Cache cleared but to no avail.
Can anyone give me any clues what I'm missing?
This usually is because the css and/or js is hardcoded in the header.
Check the html head (in the template) if the path to the css/js is correct.
I am new in the using Wordpress. I downloaded this theme and because my title of the website is too long, I need to change the header of this theme.
So I went into
wp-content/themes/Gordon/header.php
I tried to update this file, but the changes I made didn't appear on the page. So I delete the entire content of this file (blank file), and when I reloaded the homepage - again - nothing has changed, no error, just nothing.
So I would like to ask you, how can I update the header of an installed theme in Wordpress.
You messed up your header.php, best way to solve it is to open the header.php from the original theme (download) and copy/paste the code to your header.php that's online, using FTP.
Create a Child theme using One-click child theme plugin, copy the header.php into this child theme using an FTP connection again.
Then make your edits here or add a style.css to edit the header using css.
Useful links
http://codex.wordpress.org/Child_Themes
http://wordpress.org/extend/plugins/one-click-child-theme/
http://codex.wordpress.org/Designing_Headers
In Interspire I copy a template & paste it then rename it & I customize it according to my theme but when i go into admin & in admin when i click on design mode then there should be site open for making changes but in my new template it is not open in proper way & I am not be able make changes in this mode please tell me why it is happening in my new template only. in standard template it is working properly. Please tell me the region why this is happening when i select my own template in design mode then there is an error in error-console error is :--- undefined xt/javascript">
After you paste the template, make sure the file is readable by the web server. Insufficient right is the main reason you are not able to modify it.
I'm not 100% sure what you mean about the copy and paste. But the best way to create an Interspire theme is to use the default folder or one of the other ready made templates and do the following:.
Let's say you decide to use the "default" theme. Copy the entire folder somewhere on your computer and rename the folder to the name you'd like your theme to have.
If you are changing specific files, copy those files from _master to the correct directories in your new theme folder.
Upload to your server and activate.
Your theme file names have to remain the same. i.e. you can't rename the files themselves, only the top level theme folder they are in.
Then you can open up the files and make your changes inside of them.
Even though it's possible. I stopped using the built in theme editor once we took the step to create our own theme. For one, doing so kept removing our custom panels when we hit the "save" button.