jonroc804
Forum Replies Created
-
@dioni00 yes any version past 6.9.5 is what causes the fatal error.
@dioni00 I am not calling trashed_post?anywhere in the project but wp_trash_post() does call it on line 3721 so the issue is probably there. My specific setup is after a form is submitted then wp_trash_post() is called to delete a post.
@dioni00 I’m not calling that function. The function is breaking when I call the standard wp_trash_post() function. This can only receive one argument.
Forum: Plugins
In reply to: [TailPress – Tailwind for WordPress] Plugin Supported for Production?Thanks for the update!
I can confirm that “smart” opp has caused a degradation of quality on many of my sites, we need to get the ability to control this back with the ability to control the webP version ASAP.
WebP images are way overcompressed compared to the .png/.jpg version. Even after I switch the image to lossless it only slightly improves the pixalization (blurryness) of the webP. The doctors in the slider at the bottom of this page are a good example: https://dhccdev.wpengine.com/gi-telemedicine/
This is a huge issue for webP images. They are getting overcompressed and there is no setting to compress them less.
Forum: Plugins
In reply to: [Bootstrap Blocks] Block Naming Change RequestHi @tschortsch,
Yes, I think that naming convention will work out great! Thank you.
Forum: Plugins
In reply to: [Bootstrap Blocks] Get Colors from ThemeOk, for anyone else who needs a quick way to assign colors I’ve got it working to pull in theme colors via CSS variables in the root CSS declaration. Please keep in mind I had to specifically load the CSS variables in a CSS script that is used on WP admin (most themes will only have their theme colors on the front end). This approach allows me to build new themes without having to declare my colors again just for this plugin:
function myColumnBgColorOptions( bgColorOptions ) { var style = getComputedStyle(document.documentElement); var primary = style.getPropertyValue('--primary'); var secondary = style.getPropertyValue('--secondary'); var tertiary = style.getPropertyValue('--tertiary'); bgColorOptions.length = 0; //remove default colors bgColorOptions.push( {name: 'Primary', color: primary}, {name: 'Secondary', color: secondary}, {name: 'Tertiary', color: tertiary}, ); return bgColorOptions; } wp.hooks.addFilter( 'wpBootstrapBlocks.column.bgColorOptions', 'myplugin/wp-bootstrap-blocks/column/bgColorOptions', myColumnBgColorOptions );
Forum: Plugins
In reply to: [Bootstrap Blocks] Get Colors from ThemeIs it possible to define the theme colors based on the themes CSS variables:
:root { --primary: #12212e; --secondary: #8FAECE; --tertiary: #B53631; --light: #EDF0F4; --dark: #212529; --black: #000; --white: #fff; --transparent: rgba(0, 0, 0, 0); --gray-light: #DEE2E8; --gray-med-light: #CACFD4; --gray-med: #707479; --gray-med-dark: #464B4F; --gray-dark: #212529; --success: #28a745; --info: #17a2b8; --warning: #ffc107; --danger: #dc3545; --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
Forum: Plugins
In reply to: [AnsPress - Question and answer] Insert Code Not WorkingHi, I did not realize that Syntax Highlighter was a separate plugin that has to be enabled before your add-on can work. Maybe you could add a note under the addon or a warning if the plugin is not installed that you must install a separate plugin in order for it to work. –Thanks!
Forum: Plugins
In reply to: [AnsPress - Question and answer] Insert Code Not WorkingHi, there are no console log errors… when I click the “Insert Code” button nothing happens. I suppose a window should be popping up to write code in.
2. types_render_field is used to pull a custom field from the Toolset Types Plugin (which is very similar to Advanced Custom Fields).
Forum: Fixing WordPress
In reply to: Vimeo oEmbed now has dnt=1 parameterHere is the copyable code per Joao’s recommendation but I added a filter to only do this to Vimeo Videos.
function dl_oembed ( $provider, $url, $args ) { if ( strpos( $provider, 'vimeo.com' ) !== false) return add_query_arg( array(‘dnt’ => false), $provider ); } add_filter( 'oembed_fetch_url', 'dl_oembed', 10, 3 );
Forum: Plugins
In reply to: [Custom Blocks Constructor - Lazy Blocks] Move Plugin to Settings or Tools?That’s great! Thank you very much.