Contents
How do I add media to my WordPress blog?
How to Add Media (pdfs, jpgs, etc.) to Posts and Pages
- Log into your WordPress website.
- Click on Media (left navigation) > Add New.
- Either:
- (Optional) You can now edit the image by clicking the ‘Edit Image’ button.
- Fill in the Alternate Text field.
- Take note of the File URL.
How can you add media files in your blog post?
Answer: First, open a post or a page to which you would like to add your media. Click your cursor on the area of the post or page where you would like the media to show. Next, click the Add Media button in the top left corner of your toolbar: And click Add New to upload new media to your website.
Why is the add media button not working in WordPress?
The WordPress post editor uses JavaScript for all buttons on the screen including the add media button. A conflict can stop JavaScript from working which will disable the ‘Add Media’ button. That being said, let’s take a look at how to troubleshoot and fix the ‘Add Media’ button not working in WordPress.
To hide the ‘add media’ button from non-admins, you need to add the given below code to your functions.php file. However, if you want that – only editors see the add media button, so you can change ‘manage_options’ to something which Editors have permission to do, like ‘edit pages’.
Well to do so you need to click on the “Edit” button. Then a new tab will open which containing all of the required code from the file. Just scroll down to the end of the file and above the “/* that is all for now, and stop editing. Happy blogging. */” line.
A closely related problem – the Insert into post button not working – is caused by permission errors on a folder, more so when you switch hosts, but that is a story for another day. Now that this problem is no longer shrouded in mystery, let us troubleshoot and fix Add Media button not working in WordPress.