technicalx
Forum Replies Created
-
Forum: Plugins
In reply to: [Imsanity] Resize based on original image instead of from “-scaled”I don’t like that it adds -scaled to the filename, I thought this would just replace the original in the case of “Do not keep original file”.
Forum: Plugins
In reply to: [Kadence WooCommerce Email Designer] adding more merge tagsgot there eventually, here’s the code.
// add a new tag for emails, customer_roles add_filter( 'kadence_woomail_order_body_text', function ($body_text, $order, $sent_to_admin, $plain_text, $email ) { $user = $order->get_user(); $user_roles = isset($user->roles) && is_array($user->roles) ? implode( ', ', $user->roles) : ''; $user_roles_msg = ($user_roles ? $user_roles : 'guest or new user'); $body_text = str_replace('{customer_roles}', $user_roles_msg, $body_text); return $body_text; }, 21, 5);no sorry it’s behind a local staging private login.
you should be able to reproduce by adding two rows with content restriction on both, put a post grid in each row and only the thumbnail shows and is full width. the theme is Zephyr so maybe it’s specific to that theme.- This reply was modified 5 years ago by technicalx.
- This reply was modified 5 years ago by technicalx.
fix works thanks.
this issue is still ongoing, tested in empty site
- This reply was modified 5 years, 1 month ago by technicalx.
Still happens with only CoBlocks and twentytwenty theme. The only other weird thing about my website is that it is in a sub-directy like /network/website/
I can replicate with a blank page.
Make paragraph
Convert to Group
add “test” class to advanced classes.
switch to Code Editor mode
See this replicating classes every 500ms (or so).
Happens on other objects too I think like columns.<!-- wp:group {"className":"test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test"} --> <div class="test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test wp-block-group test"><div class="wp-block-group__inner-container"><!-- wp:paragraph --> <p>foo</p> <!-- /wp:paragraph --></div></div> <!-- /wp:group -->- This reply was modified 5 years, 2 months ago by technicalx.
- This reply was modified 5 years, 2 months ago by technicalx.
Forum: Plugins
In reply to: [ReOrder Posts within Categories] PHP ErrorMe too, thanks for fix. Log growing fast.
I think as long as that style is already registered by a real file it will appear as inline after the external file.
<link abc.css>
<style inline css>But if there is no external file it wont show up.
Explained here, but might have changed? – https://wordpress.stackexchange.com/questions/265906/wp-add-inline-style-in-plugin-not-workingForum: Plugins
In reply to: [Category Dropdown by GCS Design] I don’t understandI mean I just want to show categories from a specific category rather than every category in the whole website. It seems like there’s no plugins that let you pick a category in the Block (they all just show everything, but that is no use for different category structures like showing Hardware/ Software subcategories on their own sections), but I’ve use my own template code to do it manually now.
- This reply was modified 5 years, 2 months ago by technicalx.
You still need to register and enqueue it first with a null path or it wont work as far as I can tell.
edit: actually below isn’t working for me after more testing.. Ignore until I work it out.
You should replace rel=”stylesheet” with rel=’preload’ as=’font’
Try the below in pagespeed and see that the google font is no longer in the render blocking list. Autooptimise and Speed Booster both can’t fix this.
add_filter( 'style_loader_tag', 'fonts_non_blocking', 10, 4 ); function fonts_non_blocking( $html, $handle, $href, $media ){ $handles = array('twentig-theme-fonts', 'open-sans'); if( in_array( $handle, $handles ) ){ $html = str_replace("rel='stylesheet'", "rel='preload' as='font'", $html); } return $html; }- This reply was modified 5 years, 3 months ago by technicalx.
Forum: Plugins
In reply to: [Table Of Contents Block] Doesn’t work, No docs?Did you test it within Group blocks too?
columns working but my particular page still has issue, here’s my code. Existing anchor might be messing it up?
<!-- wp:group {"align":"full","backgroundColor":"secondary"} --> <div class="wp-block-group alignfull has-secondary-background-color has-background"><div class="wp-block-group__inner-container"><!-- wp:spacer {"height":50} --> <div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div> <!-- /wp:spacer --> <!-- wp:heading {"textAlign":"center","level":1} --> <h1 class="has-text-align-center" id="htoc-p">Privacy Policy</h1> <!-- /wp:heading --> <!-- wp:spacer {"height":50} --> <div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div> <!-- /wp:spacer --></div></div> <!-- /wp:group --> <!-- wp:spacer {"height":50} --> <div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div> <!-- /wp:spacer --> <!-- wp:columns --> <div class="wp-block-columns"><!-- wp:column {"width":"25%"} --> <div class="wp-block-column" style="flex-basis:25%"><!-- wp:simpletoc/toc /--></div> <!-- /wp:column --> <!-- wp:column {"width":"75%"} --> <div class="wp-block-column" style="flex-basis:75%"><!-- wp:group --> <div class="wp-block-group"><div class="wp-block-group__inner-container"><!-- wp:heading {"level":4} --> <h4 id="htoc-we-respect-your-privacy">We respect your privacy</h4> <!-- /wp:heading --> <!-- wp:list {"ordered":true} --> <ol><li>I Need a Tradie respects your right to privacy and is committed to safeguarding the privacy of our customers and website visitors. We adhere to the Australian Privacy Principles contained in the Privacy Act 1988 (Cth). This policy sets out how we collect and treat your personal information.</li><li>"Personal information" is information we hold which is identifiable as being about you.</li></ol> <!-- /wp:list --></div></div> <!-- /wp:group --></div> <!-- /wp:column --></div> <!-- /wp:columns -->- This reply was modified 5 years, 3 months ago by technicalx.
- This reply was modified 5 years, 3 months ago by technicalx.
- This reply was modified 5 years, 3 months ago by technicalx.
I no longer have this plugin on the page but it’s basically this one
https://dev1.weboraclewebdev.com/network/wordpress_ineedatradie/privacy-policy/Columns -> group -> [heading, list] repeated.
sorry I did for another similar plugin.
- This reply was modified 5 years, 3 months ago by Jan Dembowski. Reason: Removed link to other plugin