How about just echoing out the needed syntax like that:
echo '<div class="custom-field">' . genesis_get_custom_field('instrument') . '</div>';
You can also just use CSS and style the
header.entry-header {
//your sexy styles goes here
}
Since other elements inside are wrapped in their own elements and styled separately (I mean the actual H1 and meta data) the only altered item will be the bare custom field value.
Related Posts:
- Reference multiple style sheets, clearing styles for permalink page, custom fields for css
- How to display custom field in woocommerce orders in admin panel?
- How do I get the current edit page ID in the admin?
- How to load scripts/styles specific for a page
- Programatically add options to “add new” custom field dropdown
- Get a list of all available fields in the User Profile
- functions.php inject inline css
- Can’t get post ID in functions.php?
- How do I create a new WP admin color scheme?
- Logout/login redirect CSS issue
- Enabling shortcodes for custom fields
- WordPress function saves a post twice and updates all posts
- Change CSS for logged in users
- Redirect to another page using contact form 7? [closed]
- ACF not showing
- How to stop wordpress from injecting hard-coded style into image attachments with captions
- different style sheet for just one page template
- if statement for wordpress default featured image on single post
- Custom styles.css sheet for visual editor
- How to retrieve the values of a sub-field in the first and last row of an (ACF) repeater inside function?
- Is my code correct to enqueue CSS on a specific page?
- How to get correct value from checked()?
- Prevent custom field from being updated after first publish
- header_image() with CSS
- Not all CSS elements transferring via parent to child?
- Custom Behavior when Adding New Custom Post Type in Dashboard
- Split Media Queries in different files!
- Some questions about how proper add 2 CSS file in a WordPress theme?
- problem loading stylesheets to wp_head dynamically
- How to Extend login session times to a Month
- get_next_posts_link() returns no result despite available posts
- Programmatically add Yoast meta description after post save
- How to insert class in each list of categories?
- Parent theme styles overriding child theme CSS [closed]
- I can’t add CSS with functions.php
- Theme JS is available but theme CSS isn’t
- Genesis Framework: How to exclude a specific author from archive custom loop
- Proper Way to Load stylesheet on Condition
- Insert Address fields into function
- This code works, but the way I integrated it is breaking the media uploader. How can I integrate it properly?
- Default Nav Highlight
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- Custom styles in Tiny MCE with an external CSS file
- why can’t i add front.css to my frontpage.php
- get_template_directory_uri() links to child theme not parent
- How to make custom comment fields required
- How add body_class from wp_termmeta
- Using two loops in one WordPress template
- remove/hide wp-editor
- Getting out side of wp root folder from function.php using absolute path
- How do I display a date correctly that is stored in the database as a backwards 8 digit number from Advanced Custom Fields? [closed]
- Sort and display pages with specific custom field (not tag)
- shorthand syntax for custom fields
- Fill empty custom field with other custom field
- Page Template Won’t Load Correct CSS File
- current_page_item is missing inside wp_nav_menu
- Perform function on publish AND save (not just save)
- define css class in functions.php
- How to Display WooCommerce Product Price in WooCommerce Archive
- How to change text color depending on the number value (Using javascript)
- Completely Disable WordPress RSS Feeds
- wp_set_object_term via js btn frontend
- Advanced method to control cache of enqueued style/script
- Combine page types and Custom Taxonomy in a functions.php command
- Populate Product Regular Price with a calculated ACF Field Value
- Can’t load assets
- How to reference different css (bootstrap) stylesheets for the header and body of a page?
- Can we have conditional CSS styling?
- CSS style and app.js not loading
- Post content overflows on my mobile phone
- Stylesheet does not load despite functions.php
- get_current_user_id() always return 0 in if else statement
- Remove clickable Link of WordPress Site Logo from Woocommerce Single Product page
- How do I make a custom “Read More Blogs” button for my blog page
- function class doesnt work
- Help using ShortCodes to style whole chunks of the post
- Setting Up Child Theme To Take Priority
- how to remove a tag in the_category function
- How Can I Concatenate A String With One Of My Custom Field Value Before Saving The Post?
- CSS disabled after getting rid of emoji
- Create New User Custom Field not Saving
- How to add styles in existing function?
- Woocommerce – Switching Price for Category
- Creating a “Related Meta” type field?
- How would I correctly implement a new if statement in a child functions file?
- Hide empty custom field
- Adding a class to the body of an inactive site using multisite
- Conditionally apply css for a specific template part
- How do I dequeue a Stylesheet, stored in an ‘Assets’ folder?
- Child Theme not loading multiple stylesheets
- Author Page User id in functions.php for non login user
- Correct way of Enqueue self hosted fonts in sass project
- How To Show Shortcodes In WordPress Custom Fields?
- Help with is_page() and calling css for specific pages in a Child Theme
- Child theme style.css didn’t work properly but the Customize Additional CSS did [closed]
- How to automatically add custom classes to headings in content area
- How to echo the translated custom field?
- How to add function to custom fields when page/post has a password?
- How to exclude posts with empty and non-existent relational custom field with meta_query?
- Post date on Custom field