Not sure if a typo but in your question you say “replace the “thumb-w” CSS class with “thumb-w1”
but in your code you have: $html = str_replace( ‘thumb-w’, ‘thumb-w 1’, $html);
Should your code instead remove the space and be: str_replace( ‘thumb-w’, ‘thumb-w1’, $html);
Related Posts:
- How to edit plugin’s html? [closed]
- How to implement a customizable free OpenID authentication?
- Difference between add_filter and apply_filters
- Creating Unique Post URLs for A/B Testing… Is this even possible?
- How to delete the Hello Dolly plugin automatically?
- Show Similar Post Titles ( Similar to Stack Exchange )
- How do I unlock a post programmatically?
- Generate custom output for page/URL in a plugin
- Open external links in a new window
- How can I limit functionality in one version of a plugin?
- How to add usermeta to “Notice of Email Change” email message
- Any way to use a custom Parameter for youtube embed without using an iframe?
- How to list the Hooks and order of execution in current loading page? [duplicate]
- WordPress 3.1 and Disqus throws Warning: number_format() error in Posts List
- How can I rewrite a plugin generated URL?
- WordPress and WebRTC?
- Leveraging WordPress Comments on Custom Plugin Object page
- Debugging Technique Question re: functions.php
- Is there a way to alter the order in which the plugins appear in the page?
- Getting Post details when post is published
- How to check what plugins used to be on a WordPress installation?
- Possible to replicate economist.com’s debate section in wordpress? [closed]
- FacetWP group listings by custom field [closed]
- I wrote my plugin. How to display the result of the plugin’s function to sidebar (widget?)?
- How to trigger $_GET request within admin plugin page?
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- How to embed HTML code from WP Coder plugin (or other) into Main Index Template of the theme
- WordPress plugin – Error “Plugin generate 2890 characters of unexpected output when activated”
- My plugin wants to update another plugin
- Remove Duplicator plugin from admin menu if not an administrator
- Add a custom form on the post-new.php admin page
- Edit Yoast SEO breadcrumbs output [closed]
- Creating custom HTML pages
- className not populating in custom block
- Display encrypted content on my website
- how to access all user dashboard on fronted page [closed]
- Frontent user submit and view content [closed]
- In the archive widget, how do I sort in between two years?
- Customization API for plugin development
- Fromcraft Plugin On click submit button [closed]
- creating a custom shop page display on archive woocommerce
- polylang + category/tag custom language link
- How do I make a child theme I made POST through a 3rd party plugin?
- How to redirect users to their profile after they successfully edit their profile
- Creating Featured Content Boxes
- Customizing Titles on the Fly with Code
- Readable titles in mobile
- Moving FB comments at the end of page
- adding Adsense’s In-Article Ads between images of blog post
- Customizing a blog page layout
- Hide a certain category name from Related Posts
- how to add custom info on author page? plugin, child theme?
- How to handle a WordPress blog with articles in different languages?
- display unique post per category
- Call javascript functions from each page
- Link Posts to External URL
- unregister a sidebar widget
- How to disable Wp-PageNavi at the top of the page
- 404 errors when updating options in admin dashboard
- Display WordPress comments before the plugins?
- Mobilepress fails to translate short codes
- Check if theme supports sidebar
- Display posts by alphabetical order
- inserting custom css, html and js into the current page as a popup window
- Overriding inline !important CSS with Javscript code snippet with media query
- WordPress hierarchy clarification, does post_type_archive take precedence over taxonomy-term archive?
- Adding discount functionality to the cart
- Changing the CSS with a plugin
- Precheck fields when I add a new post
- How to translate to spanish wordpress hardcoded content/files?
- working code, not working – Plugin Dev
- Cannot view Custom Post Type no matter what I try
- Using Shortcode Result In Custom HTML Block (Using Google Sheet JQuery Result As NumScroller data-max)
- How To Toggle User_Meta in frontend in a form using PHP
- Get and Update Most Meta Value as an array in HTML form
- Custom wp_list_tables redirect on specfic page
- Paid Membership Pro displaying a user name in PHP
- Create dynamic / data driven pages in wordpress
- Automatically check “Enable stock management at product level” to the existing products?
- Edit the stylesheet of a child theme
- Creating Nested custom fields
- AddThis Plugin adding html comments in P tags
- Hide some shortcodes on posts from back-end
- Plugin does not create a custom table upon activation
- Disable default posts (Posts,Pages,Comments and Media) in wp-admin
- Plugin program: JQuery not working in this plugin
- admin panel save option with ajax
- Get page type to display content
- is ther a plugin that will hide/show content for a scheduled period of time? [closed]
- How to fix vanilla comments extra iframe space
- Woocommerce quick checkout form [closed]
- getting image alt text via ACF plugin in WordPress [closed]
- How to add image for custom taxonomy
- Social network plugins for WordPress [closed]
- Why haven’t I see plugins using get_file_data to handle retrieving plugin version?
- Wrapping code in an if block
- How can I properly sanitize the update_option in WordPress?
- How to disable plugin capability : “create new category”
- Option value not getting updated until page refresh in WordPress
- How to create a “Most Popular” & “Latest” TAB in WordPress