How can I change the theme name in WordPress and where?
Can I also change the folder name theme1244 in public/wp-content/themes/theme1244
without having problems in the future?
brasofilo
25.2k15 gold badges90 silver badges178 bronze badges
asked Mar 20, 2016 at 23:29
Step 1: Firstly go to wp-content/themes/
folder. And then rename your theme folder to whatever you want.
Step 2: Open your theme folder and open style.css
file. In top part of style.css you will see theme name. Rename it and save changes.
Step 3: Go to Wp-admin/appearance/themes
and activate your theme under new name.
If you are using child/parent theme and you also rename parent theme folder&name, so after Step 3 you should additionally change parent theme path (template field) in child theme’s style.css
.
note : renaming your theme will stop its automatic updates, you should do it manually in the future.
answered Mar 20, 2016 at 23:47
2
All the above is correct, but is not enough. After you rename the theme, e.g. rename the folder old-theme
—> new-theme
, you should copy the theme customizations (colors, header / footer, widgets, etc.) from the old theme to the new theme. This is done directly in the MySQL database:
- Find an option named
theme_mods_old-theme
in the tablewp_options
- Copy the
option_value
(it is a text holding the theme customizations in a special WordPress format) - Put the copied value in a new option named
theme_mods_new-theme
in thewp_options
table.
answered Nov 20, 2019 at 18:13
You can absolutely change the name of the folder without having any problems. If you want to change just the themes name, open the style.css in the root folder of your theme and edit the name in the comments at the top of the file. If you plan on doing more changes, you might be better off creating a child theme: https://codex.wordpress.org/Child_Themes
answered Mar 20, 2016 at 23:35
cursedphilcursedphil
851 silver badge4 bronze badges
0
I changed my theme name in wp-content/themes/{your site name folder}/style.css
I am using a child theme
/*
Theme Name: WhateverYouWantToNameIT
Template: twentytwenty
*/
answered Mar 1, 2020 at 16:50
Curtis MCurtis M
7651 gold badge7 silver badges14 bronze badges
The answers above are good, but I wanted the full list and this is it
so go to: wp-content/themes/{your site name folder}/style.css
and change this values if they exist, if not you can add them
/* this should be at the top of your theme CSS file
Theme Name: Twenty Fifteen Child
Theme URI: http://example.com/twenty-fifteen-child/
Description: Twenty Fifteen Child Theme
Author: John Doe
Author URI: http://example.com
Template: twentyfifteen
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: twentyfifteenchild
*/
See Source for more details
answered Feb 7, 2022 at 14:27
Ridha RezzagRidha Rezzag
3,5171 gold badge29 silver badges38 bronze badges
Its absolutely easy and simple, just follow instruction
1. Just rename theme name with your desire theme name.
2. open your desire theme name and open style.css file, and find theme name and changes with your desire theme name.
3. you can see your desire theme in admin dashboard-> appearance-> themes, just select and activate it.
answered Nov 14, 2018 at 11:43
1
How can I change the theme name in WordPress and where?
Can I also change the folder name theme1244 in public/wp-content/themes/theme1244
without having problems in the future?
brasofilo
25.2k15 gold badges90 silver badges178 bronze badges
asked Mar 20, 2016 at 23:29
Step 1: Firstly go to wp-content/themes/
folder. And then rename your theme folder to whatever you want.
Step 2: Open your theme folder and open style.css
file. In top part of style.css you will see theme name. Rename it and save changes.
Step 3: Go to Wp-admin/appearance/themes
and activate your theme under new name.
If you are using child/parent theme and you also rename parent theme folder&name, so after Step 3 you should additionally change parent theme path (template field) in child theme’s style.css
.
note : renaming your theme will stop its automatic updates, you should do it manually in the future.
answered Mar 20, 2016 at 23:47
2
All the above is correct, but is not enough. After you rename the theme, e.g. rename the folder old-theme
—> new-theme
, you should copy the theme customizations (colors, header / footer, widgets, etc.) from the old theme to the new theme. This is done directly in the MySQL database:
- Find an option named
theme_mods_old-theme
in the tablewp_options
- Copy the
option_value
(it is a text holding the theme customizations in a special WordPress format) - Put the copied value in a new option named
theme_mods_new-theme
in thewp_options
table.
answered Nov 20, 2019 at 18:13
You can absolutely change the name of the folder without having any problems. If you want to change just the themes name, open the style.css in the root folder of your theme and edit the name in the comments at the top of the file. If you plan on doing more changes, you might be better off creating a child theme: https://codex.wordpress.org/Child_Themes
answered Mar 20, 2016 at 23:35
cursedphilcursedphil
851 silver badge4 bronze badges
0
I changed my theme name in wp-content/themes/{your site name folder}/style.css
I am using a child theme
/*
Theme Name: WhateverYouWantToNameIT
Template: twentytwenty
*/
answered Mar 1, 2020 at 16:50
Curtis MCurtis M
7651 gold badge7 silver badges14 bronze badges
The answers above are good, but I wanted the full list and this is it
so go to: wp-content/themes/{your site name folder}/style.css
and change this values if they exist, if not you can add them
/* this should be at the top of your theme CSS file
Theme Name: Twenty Fifteen Child
Theme URI: http://example.com/twenty-fifteen-child/
Description: Twenty Fifteen Child Theme
Author: John Doe
Author URI: http://example.com
Template: twentyfifteen
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: twentyfifteenchild
*/
See Source for more details
answered Feb 7, 2022 at 14:27
Ridha RezzagRidha Rezzag
3,5171 gold badge29 silver badges38 bronze badges
Its absolutely easy and simple, just follow instruction
1. Just rename theme name with your desire theme name.
2. open your desire theme name and open style.css file, and find theme name and changes with your desire theme name.
3. you can see your desire theme in admin dashboard-> appearance-> themes, just select and activate it.
answered Nov 14, 2018 at 11:43
1
0 Пользователей и 1 Гость просматривают эту тему.
- 7 Ответов
- 1848 Просмотров
Добрый день
Помогите, пожалуйста, переименовать шаблон JA Sugite (quickstart)
Пробовал скопировать все файлы и папки шаблона в новую папки. После этого переименовать названия во всех файлов и установить как совершенно новый шаблон. Но этот шаблон использует свой фреймворк. В итоге шаблон работает нормально, но вот стили, и скрипты фреймворка в новом шаблоне не подключены. В сайте я переименовал имя шаблона во всех файлах и папках (кроме оригинала), но шаблон все равно работает неправильно.
И еще второй вопрос
Как можно убрать с сайта все упоминания о joomle?
« Последнее редактирование: 05.02.2015, 12:18:06 от Zhalgas »
Записан
сделайте копию шаблона и назовите его как желаете
Чтобы убрать все ЖУУУмла — надо чистить системные файлы —->>>>
Если таким образом желаете спрятать CMS — такой вариант только для новичка. Мастер по исходному коду догадается — ЖУУмла (расположение файлов стилей и тд)
Чтобы не сломали — есть много вариантов защиты, но самое первое правило — это не сдавайте пароли и используйте только ОРИГИНАЛ
darkghost, я уже пробовал
Пробовал скопировать все файлы и папки шаблона в новую папки. После этого переименовать названия во всех файлов и установить как совершенно новый шаблон. Но этот шаблон использует свой фреймворк.
нет! Не путем копирования папок и файлов и переименовать. Копию можно создать с админки — в менеджере шаблонов. В самом шаблоне, там (если не изменяет мне память) есть опция — создать копию шаблона
darkghost, имя шаблона меняется в админке, но не на сайте. Мне нужно чтобы при просмотре исходного кода имя папки шаблона была другая
после копирования папки с шаблоном необходимо вносить в новой папке (которая копия) необходимые правки в templateDetails.xml, вы это делали?
после копирования папки с шаблоном необходимо вносить в новой папке (которая копия) необходимые правки в templateDetails.xml, вы это делали?
Да, делал. Тут проблема в том что я не могу связать фреймворк с новым шаблоном.
darkghost, имя шаблона меняется в админке, но не на сайте. Мне нужно чтобы при просмотре исходного кода имя папки шаблона была другая
на одном из моих сайтов использовал готовый шаблон, но создав его копию и задав имя копии, вот что получилось
<link rel="stylesheet" href="../templates/clin/css/
Название (clin) то, что указал, а не шаблона.
Ссоори, или снова не об этом?
« Последнее редактирование: 06.02.2015, 17:23:49 от darkghost »
Записан
В первых версиях Joomla было больше изменений в Менеджере шаблонов. Сейчас в Joomla 3.6 + вы не можете просто переименовать папку шаблона с помощью FTP, чтобы изменить свое название, потому что информация относительно названия хранятся в разных местах. Это происходит потому, что Joomla! шаблон рассматривается как расширение, так некоторая информация в базе данных, а также в файле шаблон файлов и языка.
Заметка от Автора! Мы не поддерживаем рамку плагин переименования, это руководство только для шаблона переименования.
Переименовать перед установкой
Этот метод является самым простым методом. Начальный уровень. Во-первых, пожалуйста, скачать и использовать новейший JoomShaper шаблон пакет, который вы можете найти на нашем разделе загрузки. Затем выполните следующие действия:
Переименовать почтовый имя файла, пример из «shaper_helix3_template_only_j3.zip» до «new_template_only_j3.zip».Из пакета экстракта (распаковать) templateDetails.xml файл — редактировать файл XML используйте ваш любимый текстовый редактор (Notepadd ++ или другой подобный). Затем переименовать шаблон имя внутри.
из:
<Имя> shaper_helix3 </ имя>
чтобы (например):
<Имя> новый </ имя>
Также в templateDetails.xml вы можете изменить описание шаблона.
Переименовать имя файла языка в соответствии с новым именем шаблона из умолчанию:
язык EN-RU EN-GB.tpl_shaper_helix3.ini»
в
язык EN-RU EN-GB.tpl_new.ini
Затем переименуйте имя файла языка внутри templateDetails.xml файла из:
<Тег языка = «EN-GB»> ан-GB.tpl_shaper_helix3.ini
в
<Тег языка = «EN-GB»> ан-GB.tpl_new.ini
Сохранить изменения, а затем скопировать в пакет шаблонов измененный templateDetails.xm файл.
Распакуйте из языкового файла шаблон пакета, переименуйте файл языка в соответствии с новым именем, например, ан-GB.tpl_new.ini и скопируйте в шаблон по умолчанию (репаки). И, конечно, вы можете удалить файл языка со старым именем, вам не нужно больше.
Установите этот измененный шаблон как новый шаблон и установить по умолчанию. Не волнуйтесь, это не будет зависеть от исходного, даже если вы использовали QuickStart раньше.
Помните, что переименовали шаблон не может иметь все аналогичные параметры из QuickStart, так что вы должны установить их вручную, так как они были / есть в «старом» один смотрит на них. Так что если вы используете QS удалить старый шаблон после того, как вы будете переписывать все настройки.
Примечание Автора: Если вы хотите изменить имя шаблона после установки запрошенных изменений не только в файлах , но и в базе данных.
Переименовать после установки
Иногда вам нужно переименовать шаблон после того, как вы установили и внесли некоторые изменения уже. Этот метод требует дополнительного инструмента. Во-первых, вы должны выяснить / выбрать новое имя или шаблон. Это имя должно быть использовано везде. Если ваш сайт может быть посещен пользователями, пожалуйста, включите режим OFF-LINE, так как сайт будет разбит на некоторое время (несколько минут). Это очень важный совет!
1. В настройках шаблона вы можете начать с шаблона переименовать: «shaper_aspasia — По умолчанию» «Новый — По умолчанию» или просто «Новый»
2. Переименовать имя папки из «шаблонов shaper_aspasia» на «шаблоны новый» — или аналогичного выбранному имени.
3. Переименовать имя файла из «язык EN-RU EN-GB.tpl_shaper_aspasia.ini» на «языке EN-RU EN-GB.tpl_new.ini»
4. Внутренние шаблоны новый файл templateDetails.xml — переименовать строку <имя> shaper_aspasia в <имя> новый
5. Теперь вы должны использовать MySQL Manager, в большинстве случаев вы найдете в вашем хостинг панели. Используйте функцию поиска, чтобы найти «shaper_aspasia»:
Таблицы шаблон MYSQL переименовать
6. Изменения должны быть сделаны внутри только две таблицы: prefix_extensions и prefix_template_styles. От старого имени шаблона на новое имя. Не забудьте сохранить изменения.
Перевод с сайта разработчика.