Frank.Prendergast
Forum Replies Created
-
Forum: Plugins
In reply to: [Lazy Load for Videos] Must tap twice on mobile to playSame issue here – from looking at other plugins as well it seems like the double click is unavoidable on mobile. It would be great though if at least the plugin included the option to disable the feature on mobile devices.
Yeah, despite repeatedly telling me they weren’t blocking any ports, after I exhausted all other avenus the host discovered they were in fact blocking the ports.
Forum: Plugins
In reply to: [Mailchimp List Subscribe Form] Success message / page extremely bareThank you for getting back to me so quickly.
– WordPress version: 4.7
– PHP version: 7.0
– List Subscribe Version: 1.5.3
– Options:
— remove CSS: ticked
— money rewards: unticked
— Use JavaScript Support? ticked
— Use JavaScript Datepicker? ticked
— Use Double Opt-In (Recommended)? ticked
— Update existing subscribers? unticked
— Include Unsubscribe link? untickedMany thanks for your help!
FrankThank you, I really appreciate you taking the time to respond – I will give this a try…
This worked a treat, thank you.
Hi Jeremy, thank you for responding so quickly – I’m not a developer so I apologise for my fairly basic understanding, I just wanted to check something – the developer who posted the function I mentioned said using wp_get_attachment_url resulted in a loop which is why he filtered wp_get_attachment_link instead – as I mentioned this works until I activate Jetpack tiled galleries – but if I look at filtering wp_get_attachment_url will I run into the same loop issues or does using Jetpack tiled galleries mean those calls in media.php are avoided?
I initially set a filter on the wp_get_attachment_url hook, and the filter used wp_get_attachment_image_src( post_id, ‘large’ ) to get the URL of the large image size. HOWEVER, this resulted in a loop because wp_get_attachment_image_src() (which is in media.php) calls image_downsize() (also in media.php), which then uses wp_get_attachment_url() to get the URL. Which calls our filter…and so on.
I do realise this is not plugin support, so your pointers are greatly appreciated.
Forum: Fixing WordPress
In reply to: url param redirect_to & reauth=1 detected as deceptive pages@cakka – have you tried this:
https://safebrowsing.google.com/safebrowsing/report_error/?hl=enI submitted review request with a note explaining my situation, and the issue seems to have been resolved within a few hours.
Hope it works for you.
Forum: Fixing WordPress
In reply to: url param redirect_to & reauth=1 detected as deceptive pagesI am having a very similar issue today – Google shows a big red warning when you try and visit my site and gives a security warning in webmaster console due to the same url mentioned above.
The info in webmaster console says:
Deceptive Pages
Pages such as the sample URLs contained content that is deceptive. This may be due to elements in the pages that try to trick site visitors into doing something they would only do for a trusted entity, such as downloading a file or revealing personal information. If you do not recognize the sample URLs, it is possible that a malicious hacker might have gained access to your site and added the deceptive content.Thanks for your speedy reply – I will try your suggestion…
Hi – I sent a bug report in but haven’t heard anything back….
Forum: Plugins
In reply to: [Mailchimp List Subscribe Form] “Remove MailChimp CSS” option doesn’t workI have just been struggling to get Mailchimp css out of my header as part of a speed optimisation process and it was driving me nuts – so this is a second vote to please fix this.
Currently even with box checked there is a stylesheet with id mailchimpSF_main_css-css present in the head.
Just leaving another comment as I forgot to check the box for email notifications.
Forum: Fixing WordPress
In reply to: Custom post type page that resides at the post type slugFor anyone who stumbles upon this post, here’s what I have done with much gratitude to John Blackbourn [1]…
- when setting up CPTs in functions.php make sure has_archive is set to true and set up your rewrite with your desired slug
- In your custom menu set up a custom link to the full url of the CPT archive – eg https://mysite.com/events – this will ensure your menu item gets highlighted
- Use the template hierarchy if you want to code your own CPT archive page
- Add a filter [2] to functions.php which adds a new class [3] to the li of your CPT link
- Use a combination of body class, your new class and current_page_parent class to set styles that highlight the appropriate links
[1] https://www.ads-software.com/support/profile/johnbillion
https://johnblackbourn.com/[2] The filter:
add_filter( 'nav_menu_css_class', 'x_nav_menu_css_class', 10, 3 ); function x_nav_menu_css_class( $classes, $item = null, $args = null ) { if ( is_singular() ) { $pto = get_post_type_object( get_query_var('post_type') ); if ( $pto->rewrite['slug'] == $item->post_name ) $classes[] = 'current_page_parent_x'; } return $classes; }
This adds a class of current_page_parent_x to the parent page of a CPT single.
[3] I used a new class instead of current_page_parent because WordPress adds current_page_parent to your posts page li if you have a static homepage set.
Forum: Fixing WordPress
In reply to: Custom post type page that resides at the post type slugJust after posting I did find a blog post outlining how to apply a class to the menu item so that the menu aesthetically behaves more or less correctly: https://bit.ly/gt1YJQ
However I feel as though all of the above is a bit of a kludge, if there is a cleaner approach I’d love to hear about it.
For example, I like to remove the link to the current page [1], which doesn’t work with this approach.
Thanks,
Frank[1] https://www.ads-software.com/extend/plugins/remove-link-from-current-page/
Forum: Plugins
In reply to: Custom share button for LinkedInPlugin now available: https://www.ads-software.com/extend/plugins/linkedin-share-button/