Removing the Themes submenu. Displaying errors on the theme page. Metabox for audio files.

Removing the Themes submenu

Adding code to a file functions.php your topic, will remove the item for all users Themes, except for the user specified in the code id. You can only allow yourself to change themes.

delete sub menu themes

 

Displaying error messages

Add error text and display it on the theme selection page. Just add the code to the file functions.php.

Displaying error messages

Code checked, everything is working.

Metabox for adding audio recordings

Think, it will be interesting to work with the code for displaying an audio file on a page using a metabox. In the metabox, you can easily select the desired audio file from the media library.

In total we will have two codes. The first code is inserted into the functions.php file.

metabox wordpress

Second code paste in the right place of your topic, where you want to display the address of the attached file.

Next, upload a new file and select it in the created metabox, after which it will be displayed on the page in the right place. Good luck with development.


Buy WordPress hosting
/* WordPress tutor
Online tutoring services. List of courses I teach
  • Basic web design course;
  • Site layout;
  • General course on CMS WordPress and continuation of the course on template development;
  • Website development in PHP.
Read more on the page WordPress tutor
*/

Nikolaenko Maxim

Director of web studies ProGrafika. I am developing, website design and promotion. Always glad to new blog readers and good clients.


You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Templates for WordPress
The best hosting in Ukraine
Stable hosting for Drupal