wpChunks.

  • Search
  • Browse

BrowsejQuery.

  • ACF
  • CSS
  • Custom Post Types
  • Functions
  • HTML
  • jQuery
  • The Loop
  • Widgets
  • Wordpress
jQuery

Static email addresses to links

This is how to use jQuery to automatically convert all email addesses from static text into a mailto link. In this example we are looking for all emails in the .email_list class. Usage: var regEx = /(\w+([-+.’]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)/; $(“.email_list”).filter(function() { return $(this).html().match(regEx); }).each(function() { $(this).html($(this).html().replace(regEx, “<a href=\”mailto:$1\”>$1</a>”)); });

View Chunk »
jQuery

jQuery: Tabs

Adding tabbed content is a great way to organise a page.

View Chunk »

Filter by

  • ACF
  • border-radius
  • category
  • Cookie
  • CSS
  • Custom Fields
  • Custom Post Type
  • Custom Template
  • Cycle2
  • Flex
  • Gradient
  • Gravity Forms
  • HTML
  • Images
  • Javascript
  • jQuery
  • Mobile
  • password protected
  • PHP
  • Repeater
  • Responsive
  • Retina
  • Search
  • Search Function
  • Shortcode
  • Slideshow
  • Tabs
  • taxonomy
  • Widget
© Copyright 2025 wpChunks | Site by FazeDesigns