Serge Gusev
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to fix theme after changing folder nameThank you, @weboccults .
But I’m talking about another problem. Changing the theme folder name breaks current header, footer and page templates. You can try it yourself with twentytwentytwo theme:
1. Activate the theme.
2. Go to Appearence – Themes. Click Customize on the twentytwentytwo theme
3. Change the Header template, for example, add a paragraph with text. Save.
4. Set another active theme.
5. Change twentytwentytwo folder to twentytwentytwo1
6. Activate twentytwentytwo theme again and visit the site.You will see – all your changes in the Header do not exist.
- This reply was modified 2 years, 4 months ago by Serge Gusev.
Forum: Fixing WordPress
In reply to: Showing HTML anchor in ListView in FSEThank you, threadi! I’ll wait.
Forum: Developing with WordPress
In reply to: Gutenberg blocks localizationRe: but will eventually want to store the block code in your theme templates?
No, I’m going to store data in the database (and scripts) and generate them during the theme activation.
Really, I know to to generate .po files for PHP and JavaScript. I need solution for localization Gutenberg blocks stored in the database.
Forum: Developing with WordPress
In reply to: Gutenberg blocks localizationRe: Its all described in the handbook
I’m not sure you understand me. I do not mean translating *.php or js files. I’m talking about block content.
For example, I’m creating header using Gutenberg editor and adding a Paragraph block with content: “Yesterday all my trouble seemed so far away”. It is saved in the database.
How can I add this content to a pot file?
Forum: Developing with WordPress
In reply to: Full Post data in pre_post_updateThank you, @bcworkz
Forum: Developing with WordPress
In reply to: Full Post data in pre_post_updateOk, I can do this using $_POST PHP variable. Is it a good way for WP ?
Forum: Fixing WordPress
In reply to: Old customize page for block themeRe: Just the basic things like the page logo you can also set via the new editor
Unfortunately it doesn’t work for me – https://github.com/WordPress/gutenberg/issues/39913 . I’m sure the problem will be fixed, in the meantime this solution does work for me:
function add_theme_settings_page() { add_theme_page( __('Theme settings', 'dental'), __('Theme settings', 'dental'), 'edit_theme_options', 'customize', 'theme_settings_page' ); } add_action( 'admin_menu', 'add_theme_settings_page' ); function theme_settings_page() { echo "<script>window.location.href='/wp-admin/customize.php'</script>"; }
- This reply was modified 2 years, 7 months ago by Serge Gusev.
Forum: Fixing WordPress
In reply to: There is no Replace button in Site logo blockSeems to me, it does not depend on the current page. This is example from default WP page – https://disk.yandex.ru/i/wqyZFnfr07gRhg . Same result.
Forum: Fixing WordPress
In reply to: There is no Replace button in Site logo blockSorry, I’m not sure what did you mean. My URL from the screenshot is /wp-admin/site-editor.php?postType=wp_template&postId=twentytwentytwo%2F%2Findex
Forum: Fixing WordPress
In reply to: There is no Replace button in Site logo blockChecked another blocks, Image, for example. It works fine, the Replace button does exist and I can change the image.
Forum: Fixing WordPress
In reply to: There is no Replace button in Site logo blockEnabled custom logo in the function.php:
add_theme_support( 'custom-logo' );
So, when I’m trying to custommize site using old way (customize.php), I can see logo block in the Site identity and change it.
Still there is no Replace button in the FSE.
Forum: Fixing WordPress
In reply to: There is no Replace button in Site logo blockI reloaded the page. I installed clear WP on a new directory. I made a sacrifice to Jehovah :). The same result.
- This reply was modified 2 years, 7 months ago by Serge Gusev.
Forum: Themes and Templates
In reply to: [Twenty Twenty-Two] How to change logo?Thank you very much, webfed! I’ll investigate this problem.
Forum: Themes and Templates
In reply to: [Twenty Twenty-Two] How to change logo?I have no such menu – https://disk.yandex.ru/i/w-IMAXRSCsgDSQ
Forum: Themes and Templates
In reply to: [Twenty Twenty-Two] How to change logo?Re: Just click the logo and replace it.
It does not work for me. Clicking on logo just selects it.