Notifications
Clear all

[Solved] Amazon URLs

4 Posts
2 Users
0 Reactions
1,132 Views
VereK
Posts: 19
Topic starter
(@verek)
Eminent Member
Joined: 8 years ago

Amazon urls default to embedding useless Kindle preview links that do not work on any device other than a Kindle. Is there a file I can edit or some code to prevent Amazon links from embedding?


3 Replies
VereK
Posts: 19
Topic starter
(@verek)
Eminent Member
Joined: 8 years ago

As a temporary fix I edited class-wp-oembed.php and switched all instances of "amazon" in the public function __construct() lines to false.


1 Reply
Astghik
Admin
(@astgh)
Joined: 8 years ago

Illustrious Member
Posts: 6507

@citizen-k,

Please follow the steps below: 

  • Install and activate the Code Snippets plugin. 
  • Navigate to Dashboard > Snippets > Import admin page
  • Download the zip folder attached below
  • Unzip the file 
  • Upload the file using the "Choose files" button click on the "Upload files and import" button.
  • Navigate to Dashboard > Snippets > All Snippets admin page, make sure the snippet is enabled

VereK
Posts: 19
Topic starter
(@verek)
Eminent Member
Joined: 8 years ago

Done. Thank you.


Share:
Scroll to top