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.
Related
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
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');
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 ./');
I installed Orangehrm System from OrnageHRM
There are two directories called themes
/symfony/web/themes
/themes
How i can change theme of system ?
If you want to change theme of OrangeHRMS than you should change in following path of themes folder
/symfony/web/webres_554af33274f2b9.68269152/themes
Here you will get two folder inside themes
1. default
2. smackgreen
Now you need to go in default folder and you will get css folder in this and there is also main.css
You need change in main.css file for change theme of OrangeHRMS.
I Hope your problem will solve.
I'm currently working on a drupal theme but keep having problems with getting the theme to read the damn css file. I started off theming with the Framework theme, I tried organising the files on there for example creating a subdirectory to store the CSS file, change the setting in the .info file so it knows it's in the css folder, but it won't read the damn file.
Fast forward a few days and I've got 60% of my theme styled and layout-ed, so decided to port everything into a new theme folder rather than the Framework theme folder. Organised the folders and files, but again it won't read the CSS file whether I put it in a subdirectory or in the same directory as the .info file. It somehow worked once, but then went and hasn't worked again.
I've tried clearing the cache etc, but to no avail.
I'm working on a local wamp server. Drupal is latest version 7.
Any ideas how to fix this problem?
Thank you
Wich version of Drupal you are using? In Drupal 6 this works fine:
/* mytheme.info */
stylesheets[all][] = assets/css/master.css
stylesheets[all][] = assets/css/typo.css
This files are in my Theme folder
Folder: MYTHEME
File: mytheme.info
Folder: assets
Folder: css
File: master.css
File: typo.css
I know this is a bit late but maybe it will help someone else.
I'm using Drupal 7 and I attempted to add a javascript and stylesheet file in a custom module in the .info file.
module.always.js
and
module.always.css
It would load the first but not the second. I even put the stylesheet above the script in the info file and it would still just load the first file. Thought it was the directory and tried adding quotes around the file paths but that did nothing. Also thought it was the extra . in the file name but that didn't matter either.
The only way I could get both files to load was to remove them from the .info file and add a drupal_add_js and drupal_add_css for these files in the module_init() function.
No clue why that is the case but at least there is a work around.