• Resolved barnabas1

    (@barnabas1)


    Hi, I have my subscription form from moosend as a single HTML <div> line. Could you please help me to generate a shortcode from this line?

    Best regards,
    Barnabas

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter barnabas1

    (@barnabas1)

    Basically, I accidentally deleted the example HTML shortcode template and I don’t know where to start.

    I don’t know about moosend but if you need the basic HTML example here it is :

    add_shortcode( 'shortcode_name', function () {
    
    	$out = '<p>write your HTML shortcode content here</p>';
    
    	return $out;
    } );
    Thread Starter barnabas1

    (@barnabas1)

    Hi,

    I managed to make it work.

    add_shortcode( ‘moosend_form’, function () {

    $out = ‘<div data-mooform-id=”the form code here…” ></div>’;

    return $out;
    } );

    Thanks a lot for your awesome plugin!

    Best regards,
    Barnabas

    i need open a shortcode, inside this shortcode, how do i can do it?

    add_shortcode( ‘shortcode_name’, function () {

    $.ajax({ url: ‘formulario.php’,
    data: {action: ‘test’},
    type: ‘post’,
    success: function(result){
    $(“#box_button”).html(result);
    }

    return ;
    } );

    in the formulario .php i need open do_shortcode(‘[ninja_forms id=1 ]’);

    but the shortcode do not open…

    how do i can execute a shortcode ?

    Plugin Author Shea Bunge

    (@bungeshea)

    Hi @felipexx85,

    Remember to include the opening <?php tag in the formulario.php file:

    <?php
    
    do_shortcode( '[ninja_forms id=1]' );
    
    
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘example HTML shortcode’ is closed to new replies.