There is a way to do it. Just include that CSS inside header before wp_head() with internal css. And then add the Source using PHP like below
<style>
.about-img:after {
background-image: url(<?php bloginfo('template_directory')?>/img/tola.jpeg);
}
</style>
Related Posts:
- How to improve my non-unique metadata MySQL entries?
- Using meta query (‘meta_query’) with a search query (‘s’)
- Custom field/meta populated by dropdown of existing posts?
- What is the index [0] for on post meta fields?
- ORDER BY custom field value
- Individual Widgets per Page
- Gutenberg add a custom metabox to default blocks
- ‘Preview Changes’ for custom meta boxes?
- Using TinyMce with textareas in meta boxes on custom post types
- add meta box – custom field : which to choose?
- Can I query custom meta data through WP_Query
- Add custom fields to search
- SELECT max(meta_value) FROM wp_postmeta WHERE meta_key=’price’… stops working when value is over 999
- Add metabox to document tab in gutenberg
- How to add add_meta_box to specific Page Template?
- Matching Serialized Arrays with meta_query
- Custom field metabox not showing in back-end
- Meta Query with AND & OR?
- How to hide meta box values from custom fields list?
- Adding another state (spam, reject, approve) to wordpress comments?
- Arrange custom fields with drag and drop?
- How can I avoid re-inventing the Custom Fields wheel in my Plugin’s Metabox?
- Unable to get Preview of Uploaded image within a Custom Meta box
- Using media-upload.php to upload mp3 via custom fields
- extend Meta Box / Document Panel
- Add custom option to Standard Page Attributes Meta Box
- How to store the value of a custom field dropdown select for post referencing?
- Add multiple images to a page sidebar
- Only show metabox when date-value in other metabox is over?
- Trying to perform complex custom field query with order by set to field value
- Custom Meta Boxes: Store two values in one repeatable field
- Is there a way to do multiple ordering on a multiple meta_query?
- Populating meta box with select-list of existing posts, and assigning it to custom post types
- Create meta boxes that don’t show in custom fields
- How To Create a Metabox of HTML Content with Instructions For Editors When Editing a Post or Page?
- WordPress Search Custom Meta Field Only
- How to load php file for specific page in admin?
- How to set default metaboxes on user creation?
- Metabox nonce PHP notice
- Compare meta_query decimals not working right
- TinyMCE in Custom Metabox not loaded after upgrading from WP 3.1.4 to WP 3.2
- wp_editor in add_meta_boxes does not show gallery
- Ordering posts by anniversary using only day and month
- Calling Specific Pages with wp query Part II
- How do I assign this filter to a variable? (Appending php & markup to the_content)
- Problem in custom meta boxes
- Loop through two different sets of custom fields
- Multiplile values checkbox or select in custom meta box
- Create custom field key upon theme activation
- Problem with adding exta field in metabox in custom post type
- Slow meta query with multi meta keys
- Using OR in WP_Query negates the “NOT EXISTS” compare
- How can I query on the year part of a complete date in a custom field?
- How can I combine meta_query queries?
- Adding a custom field or metabox to the post-thumbnail widget?
- Displaying posts with only upcoming dates according their custom field date value
- Custom fields to save multiple values
- How do I add custom_meta_box_id’s value?
- Undefined index error when saving content on metabox
- How to save multiple metaboxes?
- Metabox with multiple fields added by user and upload box
- add meta box using function.php
- Difference between ‘LIKE’ and ‘IN’ in meta queries
- Metabox image upload and custom field
- Sorting posts by multiple values, combined
- all tincymce’s switch when updating page after changing from html to text in custom metabox
- meta_value_num sort glitch
- WP_Query display next custom post from today’s date
- My metabox class
- wp_handle_upload error “Specified file failed upload test” but still creates attachment?
- How to construct multiple meta boxes
- Which is best in the following scenario : post_meta vs custom table vs parent/child posts
- WP_Meta_Query causing long-running MySQL queries
- Loading scripts to the Post Edit page only
- Force hide custom field metaboxes
- Sorting posts by custom fields in meta_query
- Woocommerce with metabox plugin
- meta_query for a string inside a meta field containing a comma-separated list
- Order by custom field value not working for acf date field
- wp_editor removes paragraph from custom meta box
- How to Display Custom Meta Box only on Specific Page IDs
- WP Custom Fields Metabox Disappears – ACF plugin issue [closed]
- Metabox will not save
- Complex WP_User_Query call fails on production server
- How to check for specific meta box value on front end and output accordingly
- Meta query with timestamp using WP_query
- Orderby custom field meta value ASC and then by date DESC
- Where did the Add New Custom Field go?
- How Meta Data is different from Custom Fields of POST/PAGE in WordPress
- Admin meta Image Path
- Tweak Meta for Post to work it for Pages also
- Odd PHP Code To Display HTML Of Meta Box [closed]
- custom field not saved
- How to create a Custom Meta Box with Name/Value Admin User Input Fields?
- How make a custom search on backend in WordPress without plugin?
- Create Multiple File Upload Metabox in WordPress
- Users Select inside custom metabox
- Custom Metabox Not Saving
- How to add a new meta key and assign timestamp to posts
- Better Method for Multiple Meta Boxes