• Resolved michaelmartin73

    (@michaelmartin73)


    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 to see the link]

Viewing 15 replies - 1 through 15 (of 23 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Might work, might not work Michael, depends on how you created the API key ..

    Creating the key can be … challenging indeed :-/

    Thread Starter michaelmartin73

    (@michaelmartin73)

    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

    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

    (@optimizingmatters)

    Did you create that key on https://console.developers.google.com/apis Michael? Because the screenshot seems to indicate you were elsewhere?

    Thread Starter michaelmartin73

    (@michaelmartin73)

    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

    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

    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 🙂

    Thread Starter michaelmartin73

    (@michaelmartin73)

    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

    Thread Starter michaelmartin73

    (@michaelmartin73)

    And on mobile the video is not shrinking to fit the width of the screen (previously it did)

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    can you link to the page where this is happening so I can have look?

    Thread Starter michaelmartin73

    (@michaelmartin73)

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    the thumbnail is getting blocked by Sucuri firewall Michael;

    you’ll have to check Sucuri settings to get this unblocked.

    Thread Starter michaelmartin73

    (@michaelmartin73)

    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

    (@optimizingmatters)

    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

    (@michaelmartin73)

    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

    (@optimizingmatters)

    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

    (@michaelmartin73)

    It’s odd because if I disable the plugin the video becomes mobile responsive again.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    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;

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

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