Edit custom theme's elementor widget and upload to child theme - php

So I've got pre-purchased theme which has some custom elementor widgets that are specific to it. The php file that I want to edit is inside a zip file in the directory which I access via ftp. After editing it, I upload the new file to the child theme in the same directory structure as the original. However, the edits are not reflecting on the front end. I tried uploading it into the directory as a zip file, but also as a folder and neither of them seem to work.
Can some show how to upload a elementor widget file within a zip back to the ftp?
The original file is in plugins/custom-elementor-widget.zip/widgets/category-list.php

Related

How delete file from a custom file created in upload folder in custom wordpress plugin

I created a custom wp plugin with image upload section in front-end theme. user can upload image but how it can be removed from folder?
if(isset($clicked_item_name)){
chmod(CARSELL_UPLOAD_DIR_TEMP.$current_user_id, 0755); //this will get permission to file
chmod($clicked_item_name, 0777); //this will give permission to file. I this there is problem!?
unlink($clicked_item_name);
}

Replace translations from wp-content/languages/ by translations in child-theme wordpress

How to replace translation files located in the wp-content/languages/ folder by files located in the wp-content/themes/child-theme/ folder? I want to display the translations from the child-theme folder. Should I add something to functions.php so that the files form the wp-content/languages/ folder will be replaced by those from the wp-content/themes/child-theme/ folder?

How to add wp editor to custom theme options textarea

I can't find any good solution or im to stupid with php. How can i add wordpress editor to textarea's in my code.
http://refiddle.com/m10w
Thanks
Look at this function https://codex.wordpress.org/Function_Reference/wp_editor
The editor used by Wordpress is rcalled tinyMCE.-
for texarea fetching are you using advance custome field (ACF). if you want convert these textarea into default wp-editor Please find below link of github.
Add this you can easily use this.
Download editor here- https://github.com/elliotcondon/acf-wordpress-wysiwyg-field
Install as Plugin
Download .zip
Extract .zip and rename folder to 'acf-wp-wysiwyg'
Copy the 'acf-wp-wysiwyg' folder into your plugins folder
Activate the plugin via the Plugins admin page
Include within theme
Download .zip
Extract .zip and rename folder to 'acf-wp-wysiwyg'
Copy the 'acf-wp-wysiwyg' folder into your theme folder (can use sub folders). You can place the folder anywhere inside the 'wp-content' directory
Edit your functions.php file and add the code below (Make sure the path is correct to include the acf-wp-wysiwyg.php file)
include_once('acf-wp-wysiwyg/acf-wp_wysiwyg.php');

Zip a file using FTP/PHP

I have access to a wordpress theme folder directory via FTP. I want a particular folder to be ziped inside the theme folder so i can download it. What code i use?
/wp-content/themes/ - my directory to access
My theme folder name is 'vintage'
I want upload and run a php code inside /wp-content/themes/ so it makde a zip file or the folder 'vintage' located at /wp-content/themes/ can any one help me with this?
It could be something like:
system('cd /path/to/htdocs/wp-content/themes/; zip -r vintage.zip ./');

Uploading WordPress theme manually fails upload

is it necessary to unZip all sub-folders in Theme folder ?
actually when i download some theme its in Zip format and when i try to upload it it doesn't .
but when i open the zip file and find more sub-zip folders in theme folder .
for example plugins are in zip format in theme folder.
it sometimes installs and sometimes again fails .
so please help me whats the problem .
is it necessary to unzip each and every sub-folder or plugin in main Theme Zip ?
Yes Packaged themes come with multiple zip inside, you can extract that theme and if you have good knowledge of wordpress directory structure you can find theme folder only containing theme files like single.php, style.css etc and upload it to theme directory of wordpress and plugins to plugin directory.
Also you can refer to readme.txt come up with in zip which shows how to use and install theme.

Categories