You can replace __( 'No comments', 'textdomain' )
with __( '<span>No</span> comments', 'textdomain' )
, there is nothing that stops you to do it.
In general, HTML inside translatable strings are not recommended but if you really need the span tags, you have not other choice to add them server side. I strongly recommend to think why do you need those <span>
and investigate if you can archive the same result without them.
More in i18n for WordPress Developers: HTML in translatable strings
Related Posts:
- how to pull wordpress post comments to a external page
- How to remove comment link title attribute?
- WP_Comment_Query – Get comments and answers separately
- WP 3.4 – what action/hook is called when theme customisation is saved?
- Add a dropdown to theme customizer
- Nested comments ignored for max per page in wordpress
- Is it good to rename theme folder downloaded from WordPress.org?
- What is the problem if I use CDN in my WordPress parent theme(built using bootstrap)?
- Is it possible to use line break in theme description?
- Is the theme customizer slowing down my site?
- How can I get wp_head() as a string instead of echoing it?
- What is the best book to learn how to make themes for wordpress?
- Grab the first paragraph of each post
- How to check if post has any tag?
- How do I “unhook” / de-register jQuery so that it’s not called as part of wp_footer();?
- Example of a theme organization without all the default wp files in root
- Which is the simplest theme for WordPress to use it as your base?
- “Cheatin’ uh?” error message on multple theme directories
- Adding WordPress colorpicker in widget settings
- Disable the Custom Internal CSS added by theme.json for Certain Pages
- Unwanted blank lines before tag
- A theme that follows all the best practices to learn from?
- get_post() function returns post even if it is trashed
- How to highlight the current page in the nav menu?
- “Display Site Title and Tagline” checkbox not working?
- Add social icons in a theme through custom admin menu
- file_get_contents Not allowed in Themes?
- Custom Nav Walker Displaying Values in Sub Menu
- How do I remove twentyten without ruining what I did?
- Custom theme not visible in Appearance
- Can’t delete theme
- How to add a second stylesheet to the editor
- Developing WordPress Theme using CSS framework like Bootstrap
- WP_Customize_Color_Control omitting # symbol
- Theme translation not applying
- How to add filter the post thumbnail before save in database?
- Can I have two different theme for two different language?
- Storefront child theme not applying parent theme [closed]
- excerpt() shows different result between remote and localhost(development environment)
- Theme Javascript.php Overwritten Nightly [closed]
- Theme Inspector “X-Ray”
- Acivate all themes multisite wide automatically
- How to place HTML tags in content from the_content()?
- WordPress Theme Creation [closed]
- What is the meaning of WordPress’s recommended css classes and where are they applied?
- Integrate WooCommerce theme with a WordPress theme [closed]
- Automated Footer information
- How do you use WordPress for a website that’s not in a blog format?
- Managing WordPress Theme
- theme style is applied on the dhasboard rather than the website
- Alignment Problem [closed]
- Difference between “comment_form_default_fields” AND “comment_form_fields”
- What $handle does WordPress use for a theme’s implicit style.css?
- How to track a users last visited page?
- Same comments on all posts
- In a Gallery with limited image posts, how do I not limit images on single post?
- LESS not working in WordPress [closed]
- Unwanted empty line at the beginning of document
- How to add custom page elements to the WYSIWYG editor?
- Why is my container argument not working for wp_nav_menu() [closed]
- Why I obtain different visualization when I run the website on my local machine and on remote server?
- How to use the _S framework
- help needed for suit designing tool
- Open portfolio image in light box
- Let visitors show/hide a type of content
- Best practice for implementing a blog page / section in wp_menu_nav()
- WordPress comments title
- how to add a badge on product based on filter?
- how to create/register menu items that can be added to menus later
- My wordpress theme name isn’t updating straight away
- Why nav_menu_css_class doesn’t work with apply_filters?
- WordPress and Semantic UI
- Customizer API Multi Sections in single Panel
- Theme does not allow shortcodes
- Text widget is placing everything side by side. I want to post it above
- What is an alternative to not using child theme to customize a WordPress theme?
- Adding a second logo next to the main one in header
- Creating a theme just to deploy a single page
- Menu names not getting translated
- How to generate a rtl.css file for themes?
- Get property of non-object on theme activation
- change wordpress website logo url [duplicate]
- wp_editor some functionality not working on custom theme
- Update modified Shopify third-party theme [closed]
- hide/show a div in wordpress
- Providing updates to your WordPress theme
- One-Page WordPress Template
- Weird ‘theme update’ error [duplicate]
- How one category can have different fields?
- How do child themes work?
- “No Data Received” error in Chrome every time i try to update the theme functions file
- WordPress two sidebar layout or theme
- Standard Way To Do Custom Work Within A Page?
- Confused on loading page content
- Add Dynamic Sidebar to Exisiting WordPress Theme [closed]
- How can I install my custom-made theme on a wordpress.com blog? [closed]
- Recent posts with comment count in “Sidebar” template [closed]
- .submenu class missing in output from wp_nav_menu
- How to automatically set a Template Page Name next to a page in menu screen such as WooCommerce pages, front page, or posts page in wordpress?
- How do I send out an update for my custom wordpress theme?