Loading...

Follow WP Garage - WordPress tricks, hacks, and tips on Feedspot

Continue with Google
Continue with Facebook
or

Valid

Many of our clients offer whitepaper PDFs on their site to generate leads. Therefore, our clients don’t want people to find their whitepaper PDFs from a Google search. Rather, they want to get people’s email address first before giving access to their whitepaper.

The easiest way to hide a PDF uploaded to WordPress from search engines, or to noindex it, is to do the following:

  1. Install and activate the Yoast WordPress SEO plugin
  2.  Upload the PDF to the media library
  3. Edit the PDF in the media library. Depending on how your media library looks (tile view or list view) here’s how to find the Edit link:
    In grid view, click on the PDF and then click Edit More Details:
    In list view, click Edit on the PDF:
  4. In the Yoast SEO settings for the media item, click the gear icon. Set the “Meta robots index” to noindex. This will make sure the file (not just the media attachment page) is not indexed by search engines. Ideally, you should modify this setting when you upload a new PDF. If the PDF already exists, it is probably already indexed in Google and might take some time for search engines to recrawl your site to noindex it.

This post was originally published at How to hide (noindex) a PDF in WordPress from search engines on WP Garage - WP Garage - WordPress tricks, hacks, and tips.

Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

If you absolutely must use Placeholders in your forms, even though it’s really not good for accessibility, in particular for users with visual impairments, then here’s how to do it with Gravity Forms, our form builder of choice.

Step 1: Add this php code to your functions.php file:

add_filter( ‘gform_enable_field_label_visibility_settings’, ‘__return_true’ );

Step 2: In Gravity Forms, click on the Appearance tab for your field.
Fill out the Placeholder and set “field label visibility” to “hidden”.
Here’s a screenshot:

Here’s a screenshot of how our form looks in the front-end.

This post was originally published at How to Use Placeholders (not good for accessibility) in Gravity Forms on WP Garage - WP Garage - WordPress tricks, hacks, and tips.

Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

As much as I love me my Gravity Forms, setting up the notifications can be really time consuming and not so straightforward!

We have a site that has a donation form where people can donate one-time, monthly, or yearly.

I assumed that if you have a notification for “Payment Completed” that you would get a notification about all donations.

But you won’t! You need to set up two notifications.

  1. The first notification is upon the event “payment completed”. This is for one-time payments.
    You don’t need to set up conditional logic for this form since it only sends a notification for one-time payments.
  2. An additional notification for “Subscription Created’ to get a notification that someone made a recurring donation.

In that notification, you’ll need to create conditional logic so that if the recurring donation is monthly or yearly, you’ll get a notification.

You can also get additional notifications such as every time there is a new payment made in a subscription.

You can see the full list of notification events here.

This post was originally published at Gravity Forms: recurring payments require a separate notification on WP Garage - WP Garage - WordPress tricks, hacks, and tips.

Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

A while back, some of our clients asked how they can best present a PDF on their website other than just a link. So we searched for a WordPress plugin that would embed a PDF into a post or a page, but couldn’t find one that was clean-coded and lightweight…so we built our own: Simple Google Docs Viewer

The plugin is easy to use, and you can embed a doc in a WordPress post or page with a simple shortcode. Here’s an example of how a PDF looks when embedded onto a post with the plugin:

Depending on the size of your file, it might take a few seconds for the PDF to appear.

Unfortunately, after publishing the plugin we kind of ignored it for a few years, and only recently realized that it didn’t support sites running with ssl that have https in their URL. Worry not, it is now updated and you can use it on your http and https sites, and it is also now responsive!

You can check out the Simple Google Docs Viewer plugin in the WordPress plugin repository.

This post was originally published at Easily embed PDFs, Word, and PPT in your WordPress website with Simple Google Docs Viewer plugin on WP Garage - WP Garage - WordPress tricks, hacks, and tips.

Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Over the weekend, WordPress co-creator Matt Mullenweg called out Wix for using some of WordPress’ Open Source, GPL-licensed code in an improper fashion in their new mobile app; and also for ripping off the WordPress brand by calling Wix “WixPress.”

Here’s Wix CEO Avishai Abrahami’s response, and here’s why it’s problematic:

Wix should have provided GPL attribution

Matt said Wix should have provided proper attribution to WordPress for the code used in the mobile app. Abrahami does not address this. Yes, Wix has released over 200 Open Source projects on Github, but doing a good thing doesn’t reconcile doing a not-good thing. If the license says they need to provide attribution, they should address that specific issue for this specific piece of software.

GPL means public release of software

Matt states that if a piece of software includes any components from other GPL software, that makes the whole new piece of software GPL and it should therefore be made public if distributed (which the mobile app was). This is indeed the case, and it is not addressed in Abrahami’s response. Releasing partial components on Github is not enough.

Wix WAS called Wixpress in the past

Matt refers to Wix having ripped off WordPress’ brand by calling themselves Wixpress. I did a quick Google search for “Wixpress Ltd.” and lo and behold, Wix started out as Wixpress. Press releases were filed under the Wixpress name, and the official company name listed in the filing on  the stock exchange is Wixpress Ltd. It is noted in the document that they changed their business name in the US (and after checking the Israeli business registry, it was also changed here), and are now called Wix.com Ltd. Their Brazilian subsidiary is still referred to as Wixpress in the filing. None of us know them as Wixpress, so they seem to have smartly shifted away from that brand early on. In fact, while they initially filed for a trademark for this name, they abandoned it in 2010 which indicates they weren’t invested in that name. But the bottom line is, Wixpress is part of their legacy. Why did Abrahami deny that when we all know how to use Google? A more straightforward response would have been “Yeah, in the beginning we made a mistake with our brand, and if you ask anyone what Wixpress is, they probably won’t know since we abandoned that early on in favor of Wix.com”

The tone of Wix’s response is…unsettling

There’s something about Abrahami’s tone in his email that irks me.

Maybe it’s how he calls Matt “dude” and says “I didn’t know we were fighting”. You’re not fighting so don’t make it into a fight: Matt wants you to do what he thinks is right.

Maybe it’s how he tries to deflect accusations of brand-stealing by saying that WordPress has shifted from being only about blogs to being about websites too – I mean, what? Is he saying that Wix has sole ownership of the website-building space and Automattic stole that from them? A company is allowed to expand its focus for goodness sake.

Maybe it’s how he invites Matt to coffee, which is a poor reading of a serious situation. If you think someone ripped off your stuff, you may not feel like getting together with them for coffee…probably more like a court of law.

Also, why didn’t he link to Matt’s original post?! That’s a rhetorical question, but it looks shady. I think it would have been better for the company to have publicized the response by the engineer responsible for the mobile app that Abrahami links to in his post. It addresses the issues in a less…um…passive-aggressive dude-filled way and he shows how he tried to collaborate and share with Automattic’s engineering team. It still doesn’t provide satisfactory answers to the issues at hand, but it’s easier to digest.

Bottom line: lessons to be learned
  1. If you are a commercial company, think a bajillion times before using Open Source code in your proprietary software. Licensing is not only an ethical issue, but can also cause problems down the line if unreported and discovered during due diligence. Here’s a good article on this subject:
    https://twitter.com/stratticweb/status/790832690287087616. It also seems that the Apple Store does not allow GPL code-based apps since the app store’s protections negate the GPL license. So yikes.
  2. Don’t respond to issues immediately, and especially not over the weekend. Matt posted on Friday, and Abrahami posted on Saturday. People are taking a break over the weekend, there’s no rush! It seems that Abrahami wrote in the heat of the moment. He probably should have first had his legal team review the situation, and if necessary, apologize, remove the app from the app store, remove the GPL code and re-release it; OR keep the GPL code, add attribution, and publicly distribute it. In general, your legal/PR/marketing team isn’t working at full capacity on Saturday/Shabbat, so wait until they get to work, review the issues calmly, and then respond. No one’s going anywhere.
  3. Make sure you have people on your team who understand the nuances of other cultures. What’s interesting is that many of my Israeli Facebook hi-tech friends are commending Abrahami on his post. As a grew-up-in-Canada person, I’m cringing when I read it, and I’m not the only one. If you are a non-American company, make sure you have an Anglo on your PR team who has a better grasp of what kinds of tones and intonations work well outside of Israel. We Israelis have a very direct way of communicating, and while that can be great at times, it’s definitely not always great.

Look, Matt’s approach to GPL can come across as zealous. And the GPL has never been tried in an American court of law, so it’s not clear that Matt is right about everything in this case (or other cases). And it’s also possible that Wix made an innocent mistake. Open Source licensing can be confusing and unclear. I’m sure there’s a way to resolve this quickly and painlessly. In the future though, all hi-tech companies should strive to increase awareness of what Open Source means, have decent legal counsel, and a good PR team that reacts thoughtfully to branding and legal crises.

This post was originally published at Why Wix’s response to WordPress re GPL license is weak on WP Garage - WP Garage - WordPress tricks, hacks, and tips.

Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Separate tags by commas
To access this feature, please upgrade your account.
Start your free month
Free Preview