cabrailsford
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast SEO] RSS Feed Title and Link OffI also ran into this issue, but it was using Yoast 19.10. Mailchimp said the RSS feed was not valid, and running it through a validator showed me the title tag had a separator character that broke it. After changing the separator, the validator then told me the <link> tags were empty, therefore invalid. Upon disabling Yoast, I was able to get the RSS feed to validate both through the W3C validator and to go through on Mailchimp. I have changed nothing else, and tried updating to Yoast 19.11 to see if it fixed it (which it did not). This seems like a big issue, if it’s breaking people’s RSS feeds.
Forum: Plugins
In reply to: [PWA] Updating PWA iconThanks for the reply Weston!
I am already seeing the
apple-touch-startup-image
link tag in the source code, but the Add to Home Screen apparently ignores that image. Upon looking further into it (and testing a hypothesis), I determined that the icon in use was actually pulling from theapple-touch-icon
instead, so in order to fix it for iOS, I needed to supersede the normal favicon output with a different image.Appreciate you looking into this for me!
Forum: Plugins
In reply to: [Contact Form 7] Hidden Field with Default:post_metaAs a follow-up, I tested the same code on another site and had no issues, so I did a little more digging. It seems the problem was that I was using the CF7 shortcode outside of the loop, and while it displayed the form fine in the template, it was not able to parse the page post_meta. Moving the shortcode into the loop seems to have resolved that issue.
Forum: Plugins
In reply to: [Contact Form 7] Hidden Field with Default:post_metaAnyone else have an answer for this? I can’t seem to get it working, regardless of following all the documentation from the CF7 website.
Forum: Plugins
In reply to: [Contact Form 7] Access Form ID / Title inside JavaScript Event CallbackYou can create a hidden field in the form to pass through the title, though it would be hardcoded, not dynamic, so you’d have to create one for each form you wanted to do this for.
The hidden field documentation mentions doing something like the following example:
[hidden wpcf7-title "Example form title"]
which would spit out the following:
<input type="hidden" name="wpcf7-title" value="Example form title" class="wpcf7-form-control wpcf7-hidden">
- This reply was modified 7 years, 10 months ago by cabrailsford.
It doesn’t appear you need to do that in order to add id’s and classes to your form. According to this documentation, you can simply add html_id=”” and html_class=”” to your shortcode.
Forum: Plugins
In reply to: [Contact Form 7] Hidden Field with Default:post_metaYes, that example works just fine, and manages to pull the user email data. For whatever reason, the post_meta simply does not pull in the corresponding custom field information for the page the form is located on.
Forum: Plugins
In reply to: [Contact Form 7] Hidden Field with Default:post_metaThe mail also does not have a value for the hidden field. The value doesn’t get propagated into the form when the page is loaded (which I believe is the intention), and it does not submit any value either through to the mail.
Forum: Plugins
In reply to: [Smart Variations Images & Swatches for WooCommerce] Mobile JS ezPlus errorGlad to hear it! Just wanted to make sure it was known, and will be on the lookout for the update!
Forum: Hacks
In reply to: How to add (and save) checkbox to custom meta boxNevermind guys, I got it resolved. Had to add in an if statement regarding the checkbox being checked, as seen below.
<?php if( $_directlink == true ) { ?>checked="checked"<?php } ?>
Forum: Hacks
In reply to: Calling a php file within a php fileInclude should work for you, or if you NEED the file to be in place, require(‘php file.php’) though I’d suggest not having spaces in your file name, even if this is an example. Without seeing the parameters of what you’re attempting, it may be hard to help further.