In your source you allow only the selector tag p
for the class – 'selector' => 'p',
.
You find a longer answer with examples in this WPSE-Question. I think is not helpful to share the same content here in this question.
Related Posts:
- What’s the difference between WordPress random_int() and PHP built-in function random_int()?
- How to use the do_action () with parameter
- Issue with wp_get_attachment_image() and SVG file type
- Extending the site search to include a single custom field
- Notify users whenever a new post is published based on their preference
- Remove Header and Footer in iframe
- Changing a function in function.php to a shortcode – for listing categories of only a certain post type
- Formatting post content to exclude gallery
- Why do I get undefined function export_wp()?
- How to remove the embed_footer?
- Hide some items from Screen options in dashboard for products
- Redirect if not logged in?
- How to set global variables in template page?
- Setting featured image with function, 1 part not working
- Function to show only first instance of shortcode
- Comments to only be seen by their author
- Using the child theme functions.php to change the customizer.php on parent theme
- Can’t Update function.php after writing short code
- How to get last updated row or ID in wordpress
- Remove function or filter
- options.php problem – data not saved
- Filtering posts by category name based on page’s slug
- adding custom classes for tables
- Load parent theme files before child theme functions.php
- 2 Loops, Only Displaying 1 Loop in Both Loops
- edit role display name and label name without plugins
- CSS for menu item added via functions.php
- Two functions.php files in one theme
- wp_dropdown_categories and custom attribute
- Converting html to wordpress images not showing
- How can I add text to all posts/pages/categories/homepage etc
- Make parent page only link to first subpage
- Pulling Twitter RSS feed not working as expected (fatal error)
- Related post using post title
- How to validate this deprecated function
- Move Post to different category if post_meta field is 0 or is 2 days old?
- How can I modify all existing tags while keeping the urls themselves?
- Scripts not appending to element in AJAX call – why?
- Trigger a custom function when option are saved in admin area
- Find a Javascript ID when trying to deregister?
- Functions For Calling Specific Elements
- How would I add “edit profile” and “blog post” functions to front-end?
- How can I add a filter for specific categories on functions.php?
- Custom editor color palette colors are not appearing in the editor
- Set Taxonomy based on post status
- Is There Any Built In WP Functionality For Combining Form Fields To Return Specific Data
- How would I go about replacing this function in my child theme located in inc/template-tags.php
- wp_create_category deprecated?
- If user is logged-in display/hide something
- Visual Composer creating own shortcodes with vc_map() to return simple Image
- Adding code using functions.php in child theme
- Passing global variable from header.php to functions.php
- Extending a custom framework built into WordPress to automatically turn the ‘Search Engine Visibility’ setting ON / OFF, dependant on environment
- Page get parameter doesn’t work with is_single() function
- How is $current_page passed in woocommerce_account_orders function?
- Filter to wp_list_authors
- Contact Form 7 If Condition
- Need to convert image url to a Base_64 data url with wordpress function..
- Add Adsense code between job listings – wp job manager plugin
- How can I change the size of the text in Word Press
- Using depth=n in wp_list_pages
- Modify shortcode to work with custom post types
- How to hightlight all ancestor menu items of a child page NOT displayed in menu
- shorthand syntax for custom fields
- How do I pull avatar from post using BuddyPress? [closed]
- Show admin page, only if function is being used
- Get users with different roles and call function on each of them (user_meta)
- Fatal error: allowed memory size when after using enqueue_script
- Show errormessages on wrong username/password on custom loginform?
- How to apply the ‘current_page_item’ class to an archive page in `wp_list_pages()`?
- functions.php pharse error on complete new install
- Login cookies blocked after customizing hashing method
- If has action not working as expected
- Update wp_postmeta table based on 2 keys
- Best practice to call a function from a button-link?
- Disable wordpress update notification
- Class parameter in get_avatar args doesn’t get added to output
- Help using ShortCodes to style whole chunks of the post
- Extend WordPress Audio Widget to accept HLS (.m3u8) URLs
- locking content with overlay/pop up ads
- How to use `foreach()` in ajax call
- delete_user_meta for user in spesific group
- Pagination not working on my archive page for a custom post type
- Remove Featured Images from Posts Older Than a Certain Date
- How to list out all values from the get_body_class array
- Mail function not working with user accounts
- Function not recognizing page id?
- Conditionally write open graph meta property in header
- Pull random comment from specific post, display on homepage with shortcode
- Adding result from PHP function into an input field
- Using array page name together with page id to deregister script
- Modifying Page-Links format
- Give a function a unique ID
- how to handle multiple forloop?
- PHP error in shortcode [closed]
- Vimeo video play button color function
- User’s Comments Number: Storing it in a meta field for different uses
- Show one post per author and order by custom field
- Text before price on WooCom
- How to store page-{id}.php templates in custom folder