You can achieve it by using following custom code.
function accessnumber( $content ) {
$content = preg_replace( '#(<div[^>]*class=\"zebra[^>]*\">)(.*?)(</div>)#is', '$1<a href="https://wordpress.stackexchange.com/questions/266577/tel:">$2</a>$3', $content );
return $content;
}
add_filter( 'the_content', 'accessnumber', 60 );
Related Posts:
- WordPress Wysiwyg Content not being displayed
- What are the advantages/disadvantages of using jQuery DOM manipulation as opposed to PHP DOM manipulation?
- How do I change/modify the_post_thumbnail(); html output?
- How do I make an HTML table from a database table?
- start_lvl Ignored in Custom walker_nav_menu
- How to get the custom header image’s alt text?
- Why do templates contain so many PHP tag pairs?
- Modify previous and next text from pagination links
- How can i remove all html tags from get_the_content()?
- How do I use Shortcodes inside of HTML tags?
- add_filter the_content str_replace after shortcode
- Correct regex for wp_embed_register_handler
- Why would a GET variable one one page of a site cause a 404 error when a GET variable works on another page of a site?
- What exactly does “Posts page” do in WordPress?
- Where should I install a PHP library into WordPress so that code in a webpage can activate it?
- WordPress Ajax always returns a 404 error
- Adding a search form inside a div
- WordPress custom taxonomy description for each post?
- WordPress Shortcode and Dynamic CSS
- Calling a method from functions.php on a click of a button
- Load custom field value into div with AJAX
- Blank on static home page?
- Correct way to make static pages editable in wordpress
- How to change featured content to a different tag in WordPress Twenty Fourteen?
- Conditional statement for parent, child and grandchild pages
- Changing the HTML Of the content
- How do I edit the php/html for a particular post?
- Nice scroll to wordpress
- How to use SRCSET with get_the_post_thumbnail()?
- Multiple pages on one with different HTML
- append PHP function to the_content
- How to use a frontend URL with a Plugin
- How do I make wordpress comment fields required?
- Two posts in same div – WP loop
- Is it ok to replace php code with html?
- How to display blog images using wordpress in existing project
- Add custom HTML to posts page
- How to add a post or page tag to the list of classes appearing in the body tag’s class attribute?
- Go to / Scroll to Password Field on WordPress Posts After Submit With Message(s)
- Javascript code inside “” in core WordPress files .php
- HTML table from shortcode with multiple parameters
- Minify HTML, CSS, JS with PHPWee?
- Extremely slow pageload for long post when using the_content?
- How to display a value from a radio button in the options menu in wordpress
- Header has extra HTML block at top before my code
- How to retrieve the content (with a specific ID) via ajax by clicking a link tag
- To echo or not to echo?
- Blank space at beginning of tag?
- How do I add HTML to a PHP function [closed]
- Output 2 items within the Loop
- Custom image upload
- How to display recent posts on home page with custom HTML
- Wrap First Character after in a tag
- WordPress automatically adds tags when pasting code, how to stop it?
- Add HTML Attributes To Anchor Tags In `wp_list_categories()` Function
- Placing raw HTML inside a WordPress shortcode
- How to only show page id as body class?
- Slide in Panel WordPress Post
- Shortcode content output but not in correct place
- How to call function at the bottom of post using plugin?
- Correct syntax to html php conversion
- An unwanted inline style is added to my body tag
- How to properly insert a link to a template in WordPress?
- Upload Image in a WordPress page using PHP
- Show post in slider
- Set post title based on first h2 element in the content section
- Add itemprop Schema.org Markup to li Elements in wp_nav_menu
- Removing unneccessary p-tags (Not every p)
- How can I hide Home in my menu in a specific page?
- WordPress automatically adding html tag around PHP code
- Missing sidebar parameter “fix” – before_content
- How Display Posts on category
- How to get the POST TITLE using the POST ID?
- Error shown for Trying to get property ‘roles’ of non-object in WordPress After Content for User Roles
- HTML tags in bloginfo description
- ACF page while loop breaks footer while loop
- Getting a specific post values to another div or modal
- Add a class to the anchor tag on HTML5 gallery
- Transferring working local PHP site to wordpress – with database (MySQL)
- Output Buffering – Everything between wp_head and wp_print_footer_scripts?
- How do I Add HTML to the_excerpt() & the_content() Output?
- how to remove metadata from the posts of my blog?
- Load a page into a div with Ajax
- My form action url is being prepended with a directory that does not exists
- Showing content from one page on another
- Where in PHP do I move title and meta (date) to bottom of each blog section?
- Converting HTML Template to WordPress Theme
- Multiple options not staying selected after saving
- Using the echo command adds unwanted br tags to source
- custom fields wordpress
- Why the JavaScript code is ignored from wp editor?
- Populate dropdown with Child Pages based on Parent Page chosen
- How to store data from multiple forms using ajax and php
- search and replace preword from author
- Embed html in php code
- Error when adding excerpt to the content through functions.php
- WP grandchild categories in nested ul li
- Use DOMDocument with ob_start breaks my HTML code
- Dynamic content based on a URL parameter
- Removing “wpautop” (auto tags) only on certain pages?