Title: Creating API Key
Last modified: June 9, 2020

---

# Creating API Key

 *  Resolved [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * (@michaelmartin73)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/creating-api-key/)
 * Hello Frank!
 * I’ve just downloaded another of your awesome plugins 😉 I’m a bit stuck regarding
   the API key part of the install and wanted to ask for your help please.
 * I’m very ignorant of all things Google – I created an API by sheer luck and lots
   of trial and error for the index indexing of RankMath plugin, could I enter that
   API or is that not a possibility? I cannot remember how I created the key at 
   all, and have been trying to make a new one without success.
 * Thank you for your assistance.
 * Michael.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcreating-api-key%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 23 total)

1 [2](https://wordpress.org/support/topic/creating-api-key/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/creating-api-key/page/2/?output_format=md)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/creating-api-key/#post-12959711)
 * Might work, might not work Michael, depends on how you created the API key ..
 * Creating the key can be … challenging indeed :-/
 *  Thread Starter [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * (@michaelmartin73)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/creating-api-key/#post-12959958)
 * You’re not wrong!
 * I’ve made a new project for the plugin and got as far as creating the key:
 * [https://www.dropbox.com/s/8f3wz2mhwjdhw28/api-key.jpg?dl=0](https://www.dropbox.com/s/8f3wz2mhwjdhw28/api-key.jpg?dl=0)
 * For some reason though when I copy and paste into the WP YouTube Lyte dashboard
   and test, it says:
 *     ```
       Checking your key ...
   
       API key not OK, your key seems to be invalid.
       ```
   
 * Do you have any idea why that might be or how I might fix that?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/creating-api-key/#post-12960094)
 * Did you create that key on [https://console.developers.google.com/apis](https://console.developers.google.com/apis)
   Michael? Because the screenshot seems to indicate you were elsewhere?
 *  Thread Starter [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * (@michaelmartin73)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/creating-api-key/#post-12960211)
 * Hi Frank, you’re right! I was in the wrong place. I have the correct API key 
   and it is testing OK in the Lyte dashboard 🙂
 * I am using this code to embed video in our blog pages (in a custom html block):
 * `<iframe title="How To Make A Small Greenhouse To Grow Vegetable Seedlings | 
   Reclaim Design" class="round_edges" src="https://www.youtube.com/embed/G6CqZJChPl4?
   rel=0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-
   picture" allowfullscreen="" width="750" height="422"></iframe>`
 * Here’s the page – [https://reclaimdesign.org/diy-trellis-ideas](https://reclaimdesign.org/diy-trellis-ideas)
 * Is there anything I need to add to this? Or will it work as is?
 * The Lyte settings I have are:
 * Player size: 640X360 (YouTube default for 16:9-ratio video)
    Add links below 
   embedded videos: No Player position: Centre Force HD: No Add microdata: Yes Cache
   thumbnails locally: Yes
 * I noticed that selecting cache thumbnails creates what looks like a broken YouTube
   video image:
 * [https://www.dropbox.com/s/2cagu4u03xwom3i/broken-video-image.jpg?dl=0](https://www.dropbox.com/s/2cagu4u03xwom3i/broken-video-image.jpg?dl=0)
 * Is there a way I can change this to be something more user-friendly? Or have 
   I set it up wrong?
 * One last thing – might there be any issues including this code:
 *     ```
       add_filter('lyte_do_mobile','lyte_on_mobile',10,0);
       function lyte_on_mobile(){
           return true;
       }
       ```
   
 * And if I add it should the local cache be turned off?
 * Thank you very much for your help 🙂
    -  This reply was modified 5 years, 11 months ago by [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/).
 *  Thread Starter [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * (@michaelmartin73)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/creating-api-key/#post-12960269)
 * I’ve just seen this browser console error in the web dev test, not sure if this
   is related to the broken video image?
 * [https://www.dropbox.com/s/bbohxega88tfmx5/thumbnail-error.jpg?dl=0](https://www.dropbox.com/s/bbohxega88tfmx5/thumbnail-error.jpg?dl=0)
 *  Thread Starter [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * (@michaelmartin73)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/creating-api-key/#post-12960283)
 * And on mobile the video is not shrinking to fit the width of the screen (previously
   it did)
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/creating-api-key/#post-12960879)
 * can you link to the page where this is happening so I can have look?
 *  Thread Starter [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * (@michaelmartin73)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/creating-api-key/#post-12960897)
 * Hi Frank,
 * Here you go:
 * [https://reclaimdesign.org/diy-trellis-ideas](https://reclaimdesign.org/diy-trellis-ideas)
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/creating-api-key/#post-12960982)
 * the thumbnail is getting blocked by Sucuri firewall Michael;
 * ![](https://i0.wp.com/i.imgur.com/6ps5Tvv.jpg?ssl=1)
 * you’ll have to check Sucuri settings to get this unblocked.
 *  Thread Starter [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * (@michaelmartin73)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/creating-api-key/#post-12961027)
 * Thanks a lot Frank. I’ll get on to them.
 * Why is it that the video is not responsive on mobile any longer? It retains the
   large size for some reason.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/creating-api-key/#post-12961082)
 * LYTE uses the width it gets and looks like the parent node(s) don’t have (max-)
   width set correctly. You’ll need some CSS to set that straight I guess 🙂
 *  Thread Starter [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * (@michaelmartin73)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/creating-api-key/#post-12961103)
 * Hi Frank, thanks a lot for looking into it for me. Can I please confirm I’ve 
   got the right parent node and then I’ll get on to the CSS 😉 Would it be the 
   table I’ve added it to `<table class="text">` or higher up the ladder? If it’s
   the table I have set that to be:
 *     ```
       table.text {
       	border-collapse: collapse;
       	border-spacing: 0;
       	border-width: 0;
       	margin: 0;
       	padding: 0;
       	width: 100%;
       }
       ```
   
 * Thank you very much for your help
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/creating-api-key/#post-12961126)
 * That was what I thought yes, but for reasons I don’t understand the width does
   not “take”. Guess you’ll need to experiment some more .. 😀
 *  Thread Starter [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * (@michaelmartin73)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/creating-api-key/#post-12961169)
 * It’s odd because if I disable the plugin the video becomes mobile responsive 
   again.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/creating-api-key/#post-12961450)
 * odd indeed, but it’s related to the use of the table somehow; when dragging/dropping
   the LYTE div outside the table, it is responsive;
 * ![](https://i0.wp.com/i.imgur.com/n3nVoBH.jpg?ssl=1)

Viewing 15 replies - 1 through 15 (of 23 total)

1 [2](https://wordpress.org/support/topic/creating-api-key/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/creating-api-key/page/2/?output_format=md)

The topic ‘Creating API Key’ is closed to new replies.

 * ![](https://ps.w.org/wp-youtube-lyte/assets/icon-128x128.png?rev=1836005)
 * [WP YouTube Lyte](https://wordpress.org/plugins/wp-youtube-lyte/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-youtube-lyte/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-youtube-lyte/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-youtube-lyte/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-youtube-lyte/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-youtube-lyte/reviews/)

## Tags

 * [api key](https://wordpress.org/support/topic-tag/api-key/)

 * 23 replies
 * 2 participants
 * Last reply from: [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/creating-api-key/page/2/#post-12970011)
 * Status: resolved