Changeset 2948378 for simple-embed-code
- Timestamp:
- 08/07/2023 06:50:23 AM (3 years ago)
- File:
-
- 1 edited
-
simple-embed-code/tags/2.3.4/readme.txt (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-embed-code/tags/2.3.4/readme.txt
r2941717 r2948378 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 11 11 12 Code Embed provides a very easy and efficient way to embed code (JavaScriptand HTML) in your posts and pages.12 🧩 Code Embed provides a very easy and efficient way to embed code (JavaScript, CSS and HTML) in your posts and pages. 13 13 14 14 == Description == 15 15 16 **Note for users of WordPress 5.0 and above: please see the FAQ for details on using this plugin with the block editor** 17 18 Code Embed allows you to embed code (JavaScript and HTML - it can't be used for server-side code, such as PHP) in a post, without the content being changed by the editor. This is incredibly useful for embedding third-party scripts, etc. The plugin is used by many large sites, including Mozilla. 16 Code Embed allows you to embed code (JavaScript, CSS and HTML - it can't be used for server-side code, such as PHP) in a post, without the content being changed by the editor. This is incredibly useful for embedding third-party scripts, etc. The plugin is used by many large sites, including Mozilla. 19 17 20 18 Key features include... … … 35 33 == Getting Started == 36 34 37 Here's how easy it is to use… 35 To use this plugin, you need to have custom fields enabled on your site. If you're using the block editor, you may need to switch this on first - please scroll down to the next section to learn how to do this. If you're using the classic editor then you'll find the custom fields at the bottom of the editor screen. 36 37 Once you have custom fields switched on, here's how easy it is to use… 38 38 39 39 1. Once you have the plugin installed start a new post or page. … … 43 43 And that's it - when the post or page is viewed `{{CODE1}}` will be replaced with the code that you asked to be embedded. 44 44 45 **If you cannot find the location of the `Custom Fields` meta box on your post editor screen, please see the FAQ section for more information**46 47 45 This should get you started - for more information and advanced options please see below.. Alternatively, there's a fantastic guide at [Elftronix](http://www.elftronix.com/free-easy-plugin-add-javascript-to-wordpress-posts-pages/ "Free Easy Plugin! Add Javascript to WordPress Posts & Pages") which I would recommend. 48 46 49 47 Although this plugin works for both posts and pages for simplicity I will simply refer to posts - bear in mind that pages work in the same way. 50 48 51 == Options Screen == 52 53 In the administration menu there is a settings option named "Code Embed". 49 == Using this plugin with the block editor (aka Gutenberg) == 50 51 By default, custom fields are hidden inside the block editor but can be revealed. 52 53 1. Edit or create a post 54 2. Click the settings button (three dots) in the top, right-hand corner 55 3. Go to Preferences 56 4. Click the Panels tab 57 5. You will find a button to toggle the 'Custom Fields' meta box - make sure this is toggled to "on" 58 6. A button should appear titled "Enable & Reload" - you'll need to click on that and wait for the page to reload before the custom fields will appear 59 60 Check out the screenshots for how the custom fields should look. 61 62 == I can't find the custom fields == 63 64 For block editor users, I'm assuming you've done the above. For classic editor users, the custom fields should be present by default. In all cases they should appear at the bottom of the editor screen. 65 66 If they're not present then you may have a theme or plugin that removes this or may have a problem with your WordPress installation - you will need to try normal diagnostics to try and resolve this, including requesting help on [the WordPress support forum](https://wordpress.org/support/forum/how-to-and-troubleshooting/ "Fixing WordPress Forum"). 67 68 Please bear in mind that the custom fields functionality is part of WordPress so it would be greatly appreciated if you don't give me poor reviews in this situation as, I say, this component is not part of this plugin but, by using it, keeps this plugin simple to use and bloat-free :) 69 70 == The Code Embed Options Screen == 71 72 Whilst in WP Admin, if you go to Settings -> Code Embed, you'll be able to access the options that are available for this plugin. 54 73 55 74 Code embedding is performed via a special keyword that you must use to uniquely identify where you wish the code to appear. This consist of an opening identifier (some that that goes at the beginning), a keyword and then a closing identifier. You may also add a suffix to the end of the keyword if you wish to embed multiple pieces of code within the same post. … … 59 78 The options screen is only available to those that with a capability of able to manage options or greater. All the other Code Embed menu options are available to users with a capability to edit posts or greater. 60 79 61 == Embedding==80 == How to Embed Code == 62 81 63 82 To embed in a post you need to find the meta box under the post named "Custom Fields". If this is missing you may need to add it by clicking on the "Screen Options" tab at the top of the new post screen. … … 71 90 Don't forget - via the options screen you can change any part of this identifier to your own taste. 72 91 73 == URL Embedding==92 == How to Embed Code from an External URL == 74 93 75 94 If you specify a URL within your post, surrounded by your choice of identifiers, then the contents of the URL will be embedded within your post. … … 85 104 `{{https://www.example.com/code.html}}` 86 105 87 == Global Embedding ==106 == How to Use Global Embedding == 88 107 89 108 You can also create global embeds - that is creating one piece of embed code and using it in multiple posts or pages. … … 146 165 == Frequently Asked Questions == 147 166 148 == Can I use this plugin with the new block editor (aka Gutenberg) / WordPress 5.0 and above? ==149 150 Yes, you can. By default, custom fields are hidden inside the block editor but can be revealed.151 152 1. Edit a post153 2. Click the settings button (three dots) in the top, right-hand corner154 3. Go to Options155 4. You will find a tick box to display the 'Custom Fields' meta box156 157 167 = My code doesn't work = 158 168 … … 161 171 Otherwise, it's likely to be your code and not this plugin. The best way to confirm this is to look at the source of the page and compare the code output with what you embedded. Does it match? If it does, then your code is at fault. 162 172 163 = I can't find the Custom Fields meta box =164 165 This 'meta box' is not added by this plugin but is built into WordPress. If you cannot find it on the post or page editor screen then click the 'Screen Options' tab in the top right-hand corner. Ensure 'Custom Fields' is ticked. Please see the screenshots section for an image on how this appears on a 'box fresh' installation of WordPress.166 167 If you still can't find it then you may have a theme or plugin that removes this or may have a problem with your WordPress installation - you will need to try normal diagnostics to try and resolve this, including requesting help on [the WordPress support forum](https://wordpress.org/support/forum/how-to-and-troubleshooting/ "Fixing WordPress Forum"). It would be greatly appreciated if you don't give me poor reviews in this situation as, I say, this component is not part of this plugin but, by using it, keeps this plugin simple to use and bloat-free :)168 169 173 = What's the maximum size of the embed code that I can save in a custom field? = 170 174 171 175 WordPress stores the custom field contents in a MySQL table using the `longtext` format. This can hold over 4 billion characters. 172 176 173 == Is this GDPR compliant? ==177 ==Is this GDPR compliant? = 174 178 175 179 It is, in that it doesn't save any data that could be odds with GDPR compliance (i.e. it's compliant by design). However, if you use this to embed third-party scripts, then those scripts may not be and you will need to speak to the providers for further details.
Note: See TracChangeset
for help on using the changeset viewer.