capbussat
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Render an HTML banner from a blockThanks, I think for me its easy to use has_block. I have found out there is also an action hook called ‘wp_body_open’ (which exists since wp 5.2) and seems very appropiate to output html code. So combining both I have tested it, so far seems to output only once with Twenty Twenty Three theme.
Forum: Fixing WordPress
In reply to: One of my pages is foreverloadingLast year I solved a problem with Enfold theme for a customer. What I woukd do. In this case the page was growing and growing until it was no longer usable. There were too much different images in a single page:
- Try to revert to a previous version of the page that worked and begin from there to add parts of the content.
- Or try to remove half of the content and see if this fixes it. (Remove the lower or the upper part alternative).
- Or try to separate content in several pages.
Forum: Developing with WordPress
In reply to: wp_before_load_templateThanks, I am trying to get the information about which template is loaded for a page/post in a block theme.
I think I will look into template.php, template-loader.php and post-template.
Forum: Themes and Templates
In reply to: [Twenty Twenty-Three] Navigation menu is wrong on websiteYes, thanks a lot that’s it.
The padding for the Navigation block whas set to zero and changing it to some value greater than zero solved the issue.
Thanks @foosantos and @properlypurple , I finally decided in favor of a similar simple plugin Tag Manager – Header, Body And Footer. So far it seems to work correctly.
Also, I have reviewed some of the code before installing it and I like (from a programmers point of view) the code because is understandable and well commented which is a safety plus to recommend it,
Thanks, I think a plugin for inserting in header is a way to go. Have you tried Code Snippets or WP Code?
Thanks it is solved for now and I am moving to other things.
But, it was very strange that the menu appeared at the FSE but not in the frontend. I finally, solved it by creating new menus and editing the templates in the FSE.
I just grouped the Language Switcher block in a block Group and worked perfectly.
Forum: Developing with WordPress
In reply to: Browse styles variations of a child theme in editorYes, it works thanks. Also, I did not notice before that the child style was placed at the end of all styles and not alphabetically (like the styles from the parent theme). Maybe it was at the end of styles all time…
- This reply was modified 1 year, 4 months ago by capbussat.
Forum: Developing with WordPress
In reply to: Browse styles variations of a child theme in editorOk, thnaks. I’ll try to delete cache then.
Forum: Developing with WordPress
In reply to: Browse styles variations of a child theme in editorThanks, a lot.
Just a question, where is this menu in Admin Dashboard?
Appearance > Customize.
In fact I used the Create Block Theme.
I have a solution. In the template there is the header or footer like this:
<!-- wp:template-part {"slug":"footer","theme":"twentytwentythree","tagName":"footer"} /-->
I have changed twentytwentythree by twentytwentythreechild, which is my child theme,
<!-- wp:template-part {"slug":"footer","theme":"twentytwentythreechild","tagName":"footer"} /-->
Can any one give feedback for this solution? For now it works, but I do not know if its a good solution in the long term and I do not know why I have this problem in the first place. why the other templates work smoothly,
This template comes from Woocommerce.
- This reply was modified 1 year, 5 months ago by capbussat.
Forum: Themes and Templates
In reply to: [Twenty Twenty-Three] Can I use Twenty Twenty Three with WPML ?Solved in a few minutes. Thank you very much @thelmachido. I was stuck for a week. (Next time I will ask for help earlier!)
The problem was that I was not aware of the translation process for a Block Theme. I chose manual translation to allow more control over translations but I missed a few points. What I missed is that templates and template parts need translation in addion to pages!
- Modify manually all templates to make them available for translation process. I my case just added a spacer below header in all Twenty Twenty Three templates.
- Check in Translation Management for all the templates. (menu is WPML -> Translation Mangement)
- Check in Translation Management for all template parts as header and footer
- Check in Translation Management for all navigation menus also (this part was done).
- Go to Translation Queue (menu is WPML -> Translation)
Finally I got my translated menus correctly.
Forum: Themes and Templates
In reply to: [Twenty Twenty-Three] Can I use Twenty Twenty Three with WPML ?Thank you very much! I was not able to find this links by myself.
And, yes it seems this was not the first case. I thought translation would be easier but it’s not.
Specially this link is very helpful, because even WPML support did not provide the support page for translating block themes https://wpml.org/documentation/getting-started-guide/translating-content-created-using-gutenberg-editor/translating-sites-that-use-full-site-editing/