If you are passing the before
parameter that you can simply add any class that you want. You then style that class in style.css
.
<?php
if ( get_the_tag_list() ) {
echo get_the_tag_list('<ul class="tag-list"><li class="tag-item">','</li><li class="tag-item">','</li></ul>');
}
?>
Related Posts:
- Using get_terms for custom taxonomy in functions.php
- Remove tag on my RSS Feed
- How do I display a tag cloud with both post tags AND a custom taxonomy?
- get_the_excerpt() not returning anything when post has no excerpt
- Automatically add author’s name to post_tag
- wp_get_post_terms() returns WP_Error in functions.php but in template it works
- Make Categories a Dropdown Menu in Media Library
- Create single.php for specific tag by tag id or name
- list tags with count in author profile page
- Product Tags in Add New product as checkbox list [closed]
- Retrieve tags data in post body
- Identical custom taxonomy slugs for same hierarchical children
- Echo tags used to describe the theme
- Frontend tag edit/submit form
- Is possible add icon in title posts only in specific tag?
- Is there a WP function to get taxonomy name from taxonomy_term_id?
- Get list of all custom tanonomy id
- Display tags that only appear in one category
- Add a unique class to HTML tag/element
- How to edit the Tags within the image file URLs?
- Function filter breaking tag archive menus
- Tags break custom Excerpt function
- Numbering lines of code with the tag?
- Get Comma Seperated Taxonomy Linked Terms and Last Child Separated By “&” Instead Of Comma
- Output a specific link in WordPress post if the single post’s category’s name contain certain word
- Randomizing wp_tag_cloud() in child theme
- Possible to merge these two functions?
- Suggest Users basing on User taxonomy
- How add body_class from wp_termmeta
- Sort and display pages with specific custom field (not tag)
- Function to echo (or display?) wordpress tags in the head section
- Display ACF category image on archive and single template files
- Get URLs for AJAX Filter Checkboxes WordPress
- Using get_terms for custom taxonomy in functions.php
- What is wp_get_post_tags for media tags?
- Allow user only create specific tags
- Removing sanitize_title_with_dashes Function with The Real Title
- method to fetch entire tag list on archive.php
- I’m getting invalid taxonomy in init action
- Taxonomy On Index Page
- require_once() Causing categories and tag pages on dashboard to not refrsh
- Change post count on tag/terms pages to 10
- Only seems to be displaying one child when there are supposed to be multiple
- Custom taxonomy not refreshing page on add
- Automatically add tag if a checkbox is checked
- getExcerpt: Make ellipsis appear only if character limit is reached
- Make WordPress search for only this tags or exclude certain tags from search [duplicate]
- How to get tags and categories?
- If two tags in the middle i need comma
- Display function from functions.php in tag.php
- Bulk set Post Title as Tag where Tag is Empty Function
- Programatically add options to “add new” custom field dropdown
- Excluding iPad from wp_is_mobile
- Use ‘add_theme_support’ instead of ‘add_custom_image_header’ In WordPress 3.4
- Replacing select2 in admin backend for all selects
- How to hook into the quick edit action?
- I created a child theme and it doesn’t work for some of the css files
- How to detect first visit of a user?
- How to programmatically set a menu to be the Primary Menu?
- Does an action fire when adding a tag via the “Tags” meta box?
- modify a function filter
- Best practices for multiple Custom Feeds functions
- Print Post Parent Title
- Which action hook to use for function?
- Right way to update widget on dynamic new input field
- custom rss templete
- Remove elementor header and display default theme header
- WordPress on AWS Auto scaling and ELB giving 503
- enqueue styles for only mobile wp
- WordPress PHP Conflicting User Sessions
- is_author(get_current_user_id()) returns false when author id and user id match
- How to use selected WordPress functions?
- Change slug shortlink “/?p=” base in WordPress
- unnecessary request call for js and css after calling wp_dequeue_script
- How to use author meta in shortcode?
- How to cut off question mark in url with functions.php
- How to rewrite wordpress search to work on specific category
- Genesis Framework: How to exclude a specific author from archive custom loop
- How to Add Shortcode to html img code?
- Logout Redirect and also WP-login.php Redirect
- Proper Way to Load stylesheet on Condition
- Insert Content Before div#main from the functions.php File
- Conditional custom menu?
- What function actually renders the wp_admin_bar ? How can I call it?
- redirecting a URL if accessed directly
- Detect Ajax call inside pre_get_posts function
- Render page with specific id from functions.php
- Filter works on last selection but no others
- WordPress does not load jQuery
- get_current_user_id() always return 0 in if else statement
- I need to ‘wp_dequeue_script’ and ‘styles’ and ADD a bunch of other css and js
- True email confirmation for registration (keeping unvalidated users from user table)
- How to use if (is_page_template (”))
- wordpress function through ajax not being called
- Automatically add custom fields (post_meta) to all published posts, hourly, via wp_cron?
- How to mirror exactly the left admin menu on front end?
- update_post_meta after form is submited
- Make a table out of meta box
- Get all users from role and add to dropdown (select) – wordpress, javascript
- WordPress enque the same script causes the setInterval not to work