nitrospectide
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Query Loop Block Variation not workingIs this functionality not yet in widespread use?
It’s not the archive page. It’s a regular page, on which I have custom content designed to be the “top page” for that site section.
Forum: Developing with WordPress
In reply to: Query Loop Block Variation not working@threadi Here are the contents for my variations.js file, which I pull in via enqueuing in functions.php:
wp.domReady( function() { const MY_VARIATION_NAME = 'my-plugin/services-list'; registerBlockVariation( 'core/query', { name: MY_VARIATION_NAME, title: 'Services List', description: 'Displays a list of Services', isActive: ( { namespace, query } ) => { return ( namespace === MY_VARIATION_NAME && query.postType === 'services' ); }, icon: /** An SVG icon can go here*/, attributes: { namespace: MY_VARIATION_NAME, query: { perPage: 6, pages: 0, offset: 0, postType: 'services', order: 'desc', orderBy: 'date', author: '', search: '', exclude: [], sticky: '', inherit: false, }, }, scope: [ 'inserter' ], } ); });As mentioned in my original post, the enqueuing is working, and I can create other block variations. But I will include my enqueuing code for completeness:
function enqueue_block_variations() { wp_enqueue_script( 'my-block-variations', // handle for script once loaded get_stylesheet_directory_uri() . '/js/variations.js', array( 'wp-blocks', 'wp-dom-ready', 'wp-edit-post' ) // loads dependencies ); } add_action( 'enqueue_block_editor_assets', 'enqueue_block_variations' );Forum: Developing with WordPress
In reply to: Query Loop Block Variation not workingCan anyone clarify what I might be getting wrong here?
I created the schema by going in to the post, clicking through to Rank Math > Schema > Schema Generator in the right sidebar on the post edit page. In Schema generator, I chose the default Product schema, I then selected Advanced Editor, then after customizing, I clicked save as Template, and Save for this Post.
I have not applied the template to all of this product CPT via Admin > Rank Math > Titles & Meta > Products, because my customized schema template does not show up in the Schema Type dropdown.
Unfortunately, I can’t give you a link, since it’s in a private dev site.
I can not find the Review Location setting anywhere. Not in the Rank Math Schema Builder on the post itself, or in the settings pages.
I set up 2FA, and then the App password, but then for some strange reason, fluentSMTP would not let me save the new info. It kept giving me an error. After a bit, it suddenly worked. Maybe the app password needed a few minutes to be fully active.
Thank you so much for the help!
Forum: Developing with WordPress
In reply to: Renamed wp-login not logging me outI want to avoid using a plugin for this.
I discovered what the problem was. I had deleted the email sent TO the address in question, but not the one sent to the admin ABOUT the submission from that email address. When I put the address in the email log search box, the one to the admin that contained that address didn’t come up. Why?
Forum: Plugins
In reply to: [Automatic Translator with Google Translate] Cumulative Layout ShiftJuan,
Thank you. I tested it, and then implemented it on the live site. Now that I have re-submitted it to Google Search Console, I’ll have to see if they like the fix.
Forum: Plugins
In reply to: [Automatic Translator with Google Translate] Cumulative Layout ShiftJuan,
You can see it at eos-gnss.com
Forum: Fixing WordPress
In reply to: debug.log now showing upI just tried it, and still no output to debug.log.
Forum: Plugins
In reply to: [Automatic Translator with Google Translate] widget not showing on live siteThe live site is eos-gnss.com. You can see in the top right of the header where it says Google Translate: but there is no widget.
Is there a way I can PM you the dev site link?
Forum: Plugins
In reply to: [Automatic Translator with Google Translate] widget not showing on live siteMy success above was on a development site. I have now tried moving it over to my live site, and I’m having the old problem again. I have the settings all set the same in the plugin, I have the exceptions in WPRocket the same, and I tried turning off Sucuri. What could I have missed?
Forum: Plugins
In reply to: [Automatic Translator with Google Translate] widget not showing on live siteI seem to have it resolved now. It looks like it was actually working, but the one in the header was showing (I didn’t notice that), and so the one in the body (the one I was looking it) wasn’t working. I guess you can’t have 2 on a page?
- This reply was modified 3 years, 10 months ago by nitrospectide.