After some practice, I found two ways to do this prettier:
-
As a text widget: You just have to define a widget area in your template. After this, in Appearance>Widget, you can add a “Text” widget in this area, with any free HTML code. It can do the trick for the ones who write HTML
-
As a settings page: Thanks @czerspalace for your answer ! The solution can be to do a settings page. Instead of writing the code in functions.php, the way I found to do this is using the Pods plugin. It allows to create Settings pages really easily, with a WYSIWYG if you need it.
Related Posts:
- Copy SEO Meta Desc “Custom Field” to Excerpt field?
- How to apply Local Business Google Schema dynamically on a Custom Post single template?
- Is it safe to store a user setting you don’t want the user to ever modify as a user option?
- Problem with serialized arrays in custom meta
- explode array within shortcode
- Can I count the number of users matching a value in a multiple value key?
- WP doesn’t show Array Custom Fields?
- extend Meta Box / Document Panel
- Add multiple images to a page sidebar
- How to delete custom field “suggestions” from dropdown list
- How to save custom fields for attachments
- How to get a meta value from all post
- Adding existing user custom field value to a woocommerce product [closed]
- How to save values of a custom input field on the Network > Site Info screen
- How to load php file for specific page in admin?
- How to set default metaboxes on user creation?
- Metabox nonce PHP notice
- Exclude custom post type from search by custom field value?
- ajax jquery update custom field meta value front end
- How to break meta values into different items and avoid duplicates?
- Add input field to ‘Pages > Edit Page’ through functions.php
- How can I query on the year part of a complete date in a custom field?
- get_post_meta not working inside loop
- add meta box using function.php
- How do I exclude posts by custom field value?
- How to display Meta Field Value?
- Upcoming Event: How do I sort database by custom date field, but ignore past dates?
- What is the cleanest way to extract custom variables from a post
- Auto populate a meta box field from another meta box field when publish or save
- Nav Menu – Add class based on meta keys
- Eliminating the appearance of a specific custom field in a post
- Conditional custom field query
- Display two custom values from a post
- Find page IDs with specific meta tag key value pairs
- Order query by meta_value with multiple custom fields
- Display only past events on that page using Visual Composer Grid Bulider
- Accessing loop functions (e.g the_title or the_content) from post ID
- custom avatar removal
- user Profile meta value as custom field
- Remove Body Classes
- Send email with custom fields after new draft is saved or new post published
- Use WPbakery for own custom field [closed]
- Get posts with same meta value as current post
- Add custom field to all posts in specific post_type
- Change the sort order for posts to include custom field
- query posts custom field calculation value
- Get Data From wp_sitemeta for Multisite network
- How can I do a variable for meta_query?
- Syntax Issue: How Do I Call A Custom Field Inside a ForEach Statement? [closed]
- Singleton Custom Field (Meta Box)
- Get categories query not working in function.php
- wordpress custom loop ascending descending posts by custom field
- Displaying custom filed content instead of post content
- Hide custom fields when empty
- Save all the post tags inside a custom field
- How to add fields in custom registration form, validate it and aave to db? [closed]
- How to update a custom field in all posts with the value of another custom field in the same post?
- How add multiple wp_editor_box to new post
- Set featured image from custom field URL
- How to add post meta fields to an article’s as meta elements
- Best Way to get facebook share count and update using wp_schedule_event or any other method
- Get YouTube video id from url in a custom field
- Related query shows same image in loop
- Filter posts by custom field (Advanced Custom Fields)
- How to insert multiple checkbox values into post as custom fields from frontend
- Insert posting automatically based in acf field
- Data URI in custom fields
- Add specific custom fields to post formats
- Trying to implement AJAX into my admin pages. Am I improperly enqueue and localizing my scripts?
- Fallback for empty custom fields
- wp_editor on custom meta textarea field – images and html fails
- WP E-Commerce Custom Meta > Serialized array
- Problem with writting correctly a query posts args in WordPress
- Add a field to just ONE page
- get_post_custom_values problem, please help
- How do I upload file through custom field, save it to database and get it
- How To Save Data From Remote APIs To ACF?
- comments_where Hook
- Custom meta fields and meta keys
- HTML for adding a meta box (basic text field) to page editor?
- use custom field value as featured image
- adding autosave feature to custom fields
- How to delete WooCommerce Products than have a specific custom field?
- Use WP_Meta_Query To List All Values For 1 Key On Page Template
- Check for meta data before it is published
- Stop truncation of shortcodes in custom text fields?
- Show comon custom field results?
- Display Data From This Custom Media Upload Meta Box?
- Custom fields and auto save
- Save values generated via API as custom meta fields
- Display Child Page with custom fields within Parent Page
- Load code for custom fields only on admin pages?
- Custom field in a shortcode?
- Exclude empty fields from custom field calculation (Average)
- Pagination not displaying correct number of pages
- How do i output images from URL’s added to the same custom field key
- Filter Query Post by Custom Fields(by date)
- Show/Hide Featured Image or replace it with custom field [closed]
- Multiple triggers when publishing, saving or updating a post in WordPress
- If possible a field ID transfom in a Custom Field?