How to reorder output of shortcode -


i have following shortcode part of theme using:

  //contactform shortcode function contactform_shortcode( $atts, $content = null ) {     extract( shortcode_atts( array(         'class' => 'content'     ), $atts ) );      $returncontent = '<div class="' . esc_attr($class) . '">';     $returncontent .= '<a href="#" id="info" class="open">contactinformation</a>             <h5>get in touch</h5><div id="contactform">             <div id="response"></div>             <form id="precision-contact-form" method="post" class="form">                 <div id="main">                     <p class="name">                         <input type="text" name="uname" id="uname" />                         <label for="uname" class="overlabel">name</label>                     </p>                     <p class="email">                         <input type="text" name="uemail" id="uemail" />                         <label for="uemail" class="overlabel">e-mail</label>                     </p>                     <p class="text">                         <textarea name="ucomments" id="ucomments" ></textarea>                     </p>                     <p class="submit">                         <button type="submit" name="submit" id="submit" class="graybutton">send email</button>                     </p>                 </div><!--end main-->             </form>         </div><!--end contact form-->';     $returncontent .= '</div>';     return $returncontent; } add_shortcode('contactform', 'contactform_shortcode'); ?> 

i want move link id #info

$returncontent = '<div class="' . esc_attr($class) . '">';     $returncontent .= '<a href="#" id="info" class="open">contactinformation</a> 

from top of page bottom underneath form ... cannot work ...

paste line id="info" after comment end of contact form remember close id="info" line quote , semicolon;

paste ' $returncontent .= ' before h5 in touch with... line


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -