Tosunkaya.com

Enable Shortcodes In Divi Fields [Contact Form etc]

There are several fields in the Divi Theme’s various modules where you can insert text and URLs to be displayed by the modules. But frequently, these are restricted to the static text you enter in the settings of the modules. What would happen if you wanted to be able to use shortcodes to dynamically generate the URLs or text, such a URL gathered using the Advanced Custom Fields (ACF) plugin? This is the procedure.

I created a shortcode to get IP address from contact form (to block spam senders ASN) it was showing as text, after added this codes to functions.php and added the field of custom_messaage i could execute the shortcode in here.

Enable Shortcodes via functions.php for Divi Modules

The following PHP code (taken from my Divi Shortcode Enabler plugin) will search the page / post content for various module fields, and process any shortcodes contained within them.

Enabled Shortcodes for This Fields

    • Accordion Module
      • Title
    • Bar Counter Module
      • Percent
    • Blurb Module
      • Title
      • Image
      • URL
      • Alt
    • Button Module
      • Button Text
      • Button URL
    • Call To Action (CTA) Module
      • Title
      • Button Text
      • Button URL
    • Circle Counter Module
      • Title
      • Number
    • Columns
      • Column Link URL
    • Contact Form Module
      • Email
      • Redirect URL
      • Message Pattern
      • Field Titles (Placeholder)
    • Fullwidth Header Module
      • Title
      • Subheading Text
      • Button #1 Link Text
      • Button #2 Link Text
      • Button #1 Link URL
      • Button #2 Link URL
    • Fullwidth Image Module
      • Image URL
      • Title Text
      • Alt
  • Image Module
    • Image URL
    • Link URL
    • Title Text
    • Alt
  • Number Counter Module
    • Title
    • Number
  • Pricing Table Module
    • Title
    • Subtitle
    • Currency
    • Sum
    • Button Text
    • Button URL
  • Rows
    • Row Link URL
  • Slider Module Slides
    • Title
    • Button Text
    • Button URL
    • Title Text
    • Alt
  • Social Media Follow Module
    • Account Link URL
  • Tab Module
    • Title
  • All Modules, Rows and Sections
    • Background Image URL
    • Module Link URL
    • CSS ID
    • CSS Class

https://divibooster.com/allowing-shortcodes-in-divi-urls-buttons-images-etc/

5/53526 oy

Emre Tosunkaya

Kendini İnternete adamış bir tekno kişi. Teknoloji ve İnternet adına; WordPress, Webmaster, Android, Google, mobil, oyun, yazılım hakkında insanlara yararlı makaleler yazar.

  • Kuponla.com İndirim Kuponları
  • Uzman Diyetisyen Semiye Tosunkaya
  • Güzel Hosting, 2008'den beri kaliteli ve ekonomik paylaşımlı hosting, kiralık sunucu, sanal sunucu ve co-location hizmetleri sağlamaktadır.
  • Turhost: Türkiye'nin Lider Hosting ve Domain Servis Sağlayıcısı
  • n11.com - Alışverişin Uğurlu Adresi
  • En Trend Ürünler Türkiye'nin Online Alışveriş Sitesi Amazon'da
Kuponla.com İndirim Kuponları Binance %10 Komisyon İndirimi TRBinance %10 Komisyon İndirimi Amazon Amazon 50₺ indirim kodu Trendyol Güncel İndirim Kodları