Jim
Forum Replies Created
-
Forum: Plugins
In reply to: [Compliance by Hu-manity.co] New update breaks WordPressAnd how exactly are you supposed to get
v3.0.1Β without removing the plugin then going through the install steps again. I don’t remember what choices I made when installing it and I do not feel like learning what I need to do. I will find an alternativeForum: Plugins
In reply to: [Compliance by Hu-manity.co] New update breaks WordPressSame for me – I disabled the plugin by changing its name in cPanel – time to look for a new plugin
Ok, I created a function in functions.php and used var_dump:
function get_custom_values() {
$global_styles = wp_get_global_styles();
$font_sizes = $global_styles['typography']['fontSize'] ?? null;
var_dump($font_sizes);
}
add_action('init', 'get_custom_values', 9999);And this is what I get:
string(36) "var(--wp--preset--font-size--medium)"How do I interpret that? Does the 36 mean that there are 36 occurrences of the medium size being changed? How can I see each of the 36? I think I set them to a smaller value but I would like to see the values.
And does that mean that the medium font size is the only one that was changed?
Any chance I can get a reply? Do I use var_dump? Where do I run the PHP?
Excellent – thanks! I know I read about this somewhere but I can’t find it in my notes. A few things though:
- I think the only changes I made in the Site Editor was for the background-color for buttons. The changes I want are from the block editor while building my pages.
- So now I know where to look in the database, but that could be time consuming. Will
wp_get_global_styles()it return those values, or will that only get changes in the Site editor? And how did you know to use['typography']['fontSize']? I looked in the reference docs for the function, and they do not show the options I can pull from the results. - If
wp_get_global_styles()does not get the custom sizes set in the block editor, what would get that for me?
Can the results be sent to a log file or should I just echo the results?
Forum: Themes and Templates
In reply to: [Blocksy] Starter sitesπ
Forum: Themes and Templates
In reply to: [Blocksy] Starter sitesSorry, I should have mentioned that I’m using Local to build the site, and I should have said “demo site” as opposed to “starter site”. I was thinking I may do a few different local sites and grabbing different elements/sections from different demo sites.
Forum: Themes and Templates
In reply to: [CoverNews] Lighthouse Aria errosNo I don’t have a specific code fix. Do you have a timeframe when the fixes will be pushed out?
Forum: Themes and Templates
In reply to: [Astra] How to edit demo contentThanks!
Forum: Themes and Templates
In reply to: [Astra] Menu not hidden on small screensI know what those 2 divs are for, that’s why I mentioned them. The site owner must have since added Elementor functionality to the header. I guess the owner is building now – thanks
Forum: Themes and Templates
In reply to: [Astra] Menu not hidden on small screensSo let me summarize: I do not see a hamburger icon to open the menu, I instead see the menu items stacked in a single column.
Forum: Themes and Templates
In reply to: [YITH Wonder] Extremely low contrast in editorFull screen shot? The image I attached isn’t enough? What part(s) of the editor screen do you need to see?
Forum: Themes and Templates
In reply to: [YITH Wonder] How to change the breakpoint on the Blog page?Thanks! So is the CSS set up for desktop first and so the media query is using max-width, or should that be min-width?
I just looked in
wp-content/pluginsand there is no on-signal folder or file. So does that mean thatonesignal-free-web-push-notifications/sdk_files/is in the database? If so, any idea how I would find it and delete it?I did another WP install and this time waited until it logged me out – it worked! All good now. Thanks for the help.