Jay
Forum Replies Created
-
It’s totally fine. For awhile I was urging people to go to GitHub to open issues, since THERE I get emails when an issue is opened, but here, I have to be super diligent and check every week or so.
Despite urging people via the readme, I believe I’ll be modifying the admin in some way to encourage others to post to GitHub if possible.
Either way, I really appreciate reporting this sort of thing, since without it, I would probably overlook it.
Frank,
This works with the latest WordPress out of the box with no css modifications. The only thing I can think of is that the CSS for the content has changed in some way, or is conflicting with another item in your theme?
As for the opacity, I’m aware of that and looking for a fix in the next release.
You will need to use remove_meta_box() appropriately. Here is a link to the documentation for the function: https://codex.wordpress.org/Function_Reference/remove_meta_box
The metabox you want to remove is cwv3_meta_section.
You will have to define your own logic to remove it on ALL pages but the homepage. As well as creating your own hooks and functions to do so. Unfortunately I live quite a busy life right now so I’m not able to do this sort of thing as I don’t have much free-time.
As this is a hack, and not really in the plugin’s capabilities, I’m marking this as not a support question, but will tag it appropriately.
Again, as said in previous thread, should be fixed in latest commit, will merge into .org repo this weekend https://github.com/JayWood/content-warning-v3/commit/1a341c27766416571ecb8c01c15a4abac389fc19
Forum: Plugins
In reply to: [Agy - Age verification for WooCommerce] Custom CSS not working?Fixed in latest commit, but I can’t believe it’s been this long since I actually looked for that bug… I swear I fixed it beforehand somewhere!
Commit: https://github.com/JayWood/content-warning-v3/commit/1a341c27766416571ecb8c01c15a4abac389fc19
Forum: Hacks
In reply to: Adding a custom taxonomy to a SQL QueryThere has to be a better way than searching with direct SQL? Also, this is a fragment of a larger piece of code. Looks like it may be run through $wpdb->prepare or even a sprintf/printf call.
If you can either A. ) Provide the full file, or B. ) link to the plugin, there may be an easier way.
I’ve not seen a plugin to do that. But it sounds like you are looking for a confirmation number for form submissions?
I’m pretty sure it wouldn’t be too hard to take an existing contact form plugin which saves submissions ( Contact Form 7, or Gravity Forms ) and add a confirmation number field.
Forum: Hacks
In reply to: How to get a sticky facebook-like bar?Looking at their code I see that huge facebook button is using the FB sharer endpoint, this will work for the button, but will need some styling of course.
https://gist.github.com/190e4ae788f8be25cc9d
As for the sticky-ness of the button, that’s more along the lines of css positioning and media breakpoints. Looks like they’re positioning the parent div as fixed, bottom left.
So if you use my code above, this should work ( I’m a dev, not a designer, so if not don’t hate me ):
<style type="text/css"> @media ( max-width: 768px ) { .fb-social{ display: block; position: fixed; left: 0; bottom: 0; } } </style>Basically, you just need to leverage media breakpoints to move items on the page where you want them, at certain screen sizes. Overall, I hope this helps, and good luck!
Forum: Hacks
In reply to: How to hide audio urlUnfortunately by default this is not possible. When you embed an attachment ( audio, video or image ) the URL from your wp-content directory is visible.
A quick google search yields this plugin: https://wordpress.org/plugins/hide-real-download-path/ – which claims to hide your original download path.
You might also consider hosting your audio at SoundCloud and using WordPress’ oEmbed system to just drop in the soundcloud player.
More Info on oEmbeds: https://codex.wordpress.org/Embeds#Okay.2C_So_What_Sites_Can_I_Embed_From.3F
Forum: Hacks
In reply to: More than one "category" field in the editor to build a PDF librarySorry for the shameless plug, but I use this almost daily and swear by it for custom fields: https://wordpress.org/plugins/cmb2/
What it sounds like you’re doing is creating a sort of in-depth filter system, whereas you can filter by Year, Author, Type, and others?
If this is the case, you can create your own form with the fields you want ( either dynamic or static ) and process it on your search page accordingly.
This is quite devvy so brace yourself. This article has a pretty good rundown of what you’re looking for ( if my assumption is correct ) http://wordpress.stackexchange.com/questions/131496/search-custom-post-type-by-meta-data
Forum: Fixing WordPress
In reply to: Reg: WP-Greet PluginI would at least figure out if you can view the ‘broken’ image. Sometimes there are anti-leech systems in place on servers that prevent images from being hot-linked.
If you’re a dev, I’d suggest looking at the
sendGreetcardMail()function in the plugin, as that’s where the picture file(s) is attached.Forum: Hacks
In reply to: Embellishing an embedded GmapLike bcworz said, child themes are the best for this type of thing. Here’s a link to help if you don’t already know how to use them: https://codex.wordpress.org/Child_Themes
Forum: Hacks
In reply to: Counting how often a term of a taxonomy has been used.From a similar question use get_term() and access the count property of the result.
Ref: http://wordpress.stackexchange.com/questions/126691/count-number-of-post-in-taxonomy
Forum: Hacks
In reply to: Get current plugin from loaded admin pageConsider get_current_screen()
Forum: Hacks
In reply to: Redirect to homepageI was under the impression you had at least some basic coding knowledge. If that were the case, reading the article I linked would be enough.
Either way, this will work for what you need. It uses wp_redirect() in conjunction with site_url() to redirect the users to your site’s url if they hit the conditions specified.
<?php add_action( 'template_redirect', 'remove_wp_archives' ); function remove_wp_archives(){ if ( is_category() || is_tag() || is_date() || is_author() ) { wp_redirect( site_url() ); exit(); } }