Francisco Vera
Forum Replies Created
-
This seems to be a bug in the theme as the backend in Canvas should reset the style. So if you want to use the style you see in the backend in the frontend page, you can add the following CSS.
select {
font-size: 14px;
line-height: 2;
color: #2c3338;
border-color: #8c8f94;
box-shadow: none;
border-radius: 3px;
padding: 0 24px 0 8px;
min-height: 30px;
max-width: 25rem;
-webkit-appearance: none;
background: #fff url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E) no-repeat right 5px top 55%;
background-size: 16px 16px;
cursor: pointer;
vertical-align: middle;
}The above is what was set in
.wp-core-ui, the class defined for the select element.I tried editing a post in Elementor with Twenty Twenty-Five installed in a testing site, and the way how Elementor set up the page is different then the block theme. Here you can see how the page looks when opening it with Elementor (https://share.cleanshot.com/9dnQpphS) and the block editor (https://share.cleanshot.com/xYVNvNR4).
When trying to edit the post that was previously edited with Elementor, there is a warning about possible style breaks (https://share.cleanshot.com/PGBPrnVV).
I suggest to ask on Elementor’s support forum for making the theme work.
I took a look at the page you’re working on (https://mattrs.co.uk/work) and I don’t see any custom style applied to the select element. Therefore, it renders the browser one. Here is a screenshot of the page opened in Chrome and Safari (left and right, respectively): https://share.cleanshot.com/9Q1tJhZ6
Based on the screenshot attach in your initial comment, it seems you’re editing the page in a Chrome-based browser, but then seeing the frontend page on Safari. Could that be correct?
If styles look correct in the editor but not on the front-end, it might be an issue with plugins or extra CSS. But when looking at the element via Chrome’s inspector. I don’t see any style. Here is a screenshot: https://share.cleanshot.com/rNnrtV3b
Not sure I understand your question correctly. When you say the style is broken or missing in the front end, what are you seeing? And what do you expect to see? If you mind sharing a screenshot to understand more, that would be helpful. In any case, you’re right that styling the select element is not possible in the Editor yet, but in WordPress 6.9 the support to styling forms via theme.json was introduced. It requires some extra steps, but this post explains how doing it.
With the approach you took, I tried styling the select element of Term List block via CSS and I see the visual changes correctly in both editor and front end. Here are two screenshots
Editor: https://share.cleanshot.com/lpTHSwqW
Front end: https://share.cleanshot.com/KDrDF6wd
I hope the above helps.
Forum: Fixing WordPress
In reply to: 整个站的页面标题颜色无法通过区块编辑器更改(Translated with Google Translate)
您好 @vivian0619
我只会说英语和西班牙语,所以我用谷歌翻译翻译了您和这条消息。
您或许可以在中文 WordPress 社区找到更详细的解答。我建议您也去那里提问。Link
关于您的问题,您添加的 CSS 类可能破坏了区块编辑器中设置的样式。如果您想通过标题区块在整个网站上显示相同的标题颜色,请转到“外观”>“编辑器”>“样式”>“颜色”,然后更改“文本”和“标题”属性的颜色。
截图:https://share.cleanshot.com/7pj7R60b
如果您只是想更改单个标题的颜色,请打开文档进行编辑,选中文本,然后点击设置面板中的“区块”选项卡来自定义颜色。
截图:https://share.cleanshot.com/wvrx7Vyp
通常情况下,您不需要添加 CSS 类来设置文本样式。区块编辑器提供了相应的工具。希望这个答案能解决您的问题。
Hi @audunmb
I tried the plugin and creating a template for events in a playground site, and I was able to set the new template in the plugin settings by going to Events → Settings → Pages tab, and then select the new template in the dropdown.
Screenshot: https://share.cleanshot.com/4WB9brWT
For a more control over the templates, I found this documentation explaining how to handle the files.
Hey @alit93
I created a sample site with nothing else than the Twenty Twenty-Four theme installed and followed all the steps you mentioned, and I see the button colors working correctly.
Here is a page where I added three buttons: A default one (from the Ember built-in style), one with preset colors, and a customized one.
Screenshot: https://share.cleanshot.com/kWT7D0TZ
I expected the latter to look different when changing from desktop to mobile, but it remains the same.
Screenshot: https://share.cleanshot.com/f6GZjGzt
If disabling plugins and custom code snippets does not fix the issue, it may have been a bug already fixed in follow-up updates.
Hey @maletu
The style of overlay menu in navigation block is set white by default. Could it be possible that background color was removed or a plugin handling the menu behavior styled this element differently?
If you are using the WordPress Editor, you can change the style of this element by selecting the page to edit it, select the Navigation block, and open the right panel and Styles tab to set the colors of the overlay menu. You can easily pick the white color from there.
Here is a screenshot from a sample site with the same characteristics you mentioned of yours.
https://share.cleanshot.com/LRWFfDTj
The site then looks like this.
https://share.cleanshot.com/b59S3HBS
If I change it to another color, here is the outcome.
https://share.cleanshot.com/XCM0nG2J
I hope the above works. Please let me know.
Hey @kaciewright
The tiny column in the middle you mention after activating Twenty Twenty-Five, is it on the exact same page or a different/new one? This might conflict by having the Elementor plugin on and edit the page in the WordPress Editor.
To your specific question, you are in the right place to make the change (Styles -> Layout), but in Content width and Wide width you can change the unit from pixel (PX) to percentage (%) and set the value to 100 in both or any of the properties. Here is a screenshot of where you can do it.
https://share.cleanshot.com/Y0KWRMlw
I set both values as 100%, but you can have them in lower values as when editing the page, the page or template does not need to have a container, and therefore, have no margin. Here below I added a paragraph block without a parent block.
https://share.cleanshot.com/tPkmNk1B
I hope the above helps. Let me know if that answers your question.
- This reply was modified 5 months, 4 weeks ago by Francisco Vera.
Thanks for your responses. I think I will continue with adding the specific sizes in the
theme.jsonfile.I forgot to add that my intention is having more control of the font sizes from the
style.cssfile for testing sizes in breakpoints. I understand howsizeinspacingSizesworks and that I can control it from the generated--wp--preset--spacing--{slug}.So my main question is whether this css variable setting can be used from the Editor.
Forum: Fixing WordPress
In reply to: Porto Theme – FunctionalityHi @chrisboyd
If the plugin is causing the error, you might contact their support or FAQ section to see how to solve it.
Good luck
Forum: Fixing WordPress
In reply to: WP 6.1 Page Links not working in MenuIf you are adding links to create a menu, I suggest replacing it with the “Navigation” block to display pages in a navigational element.
The block’s default setting brings all published pages, but you can also create menus and pick specific pages. Here is a screenshot of where to set that.
I hope it solves your question.
Forum: Fixing WordPress
In reply to: How to remove margin under menuIn the Template part, check that both Group and Row elements have no margins applied, here is a screenshot.
I modified my testing site, and it works as intended.
Hopefully it works.
Forum: Fixing WordPress
In reply to: WP 6.1 Page Links not working in MenuHey @pathel
I do not fully understand your question. Can you give more details on what you want to achieve? What error or broken flow are you seeing?