Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save nextab/a3a0a1082104ea13eb115a419bb1ade4 to your computer and use it in GitHub Desktop.

Select an option

Save nextab/a3a0a1082104ea13eb115a419bb1ade4 to your computer and use it in GitHub Desktop.
function meine_blurb_function($atts, $content = null) {
$a = shortcode_atts([
'title' => 'Mein Titel',
'icon' => '%%29%%',
], $atts);
return do_shortcode('[et_pb_blurb title="' . $a["title"] . '" _builder_version="4.9.4" _module_preset="default" use_icon="on" font_icon="' . $a["icon"] . '" hover_enabled="0" sticky_enabled="0"]' . $content . '[/et_pb_blurb])';
}
add_shortcode('mein_blurb', 'meine_blurb_function');
/* Anwendung:
[mein_blurb title="Mein Blurb Title" icon="%%29%%"]Hier steht mein total geiler Content.[/mein_blurb]
[mein_blurb title="Mein Blurb Title"]
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment