Uniek nummer in Contact formulier

  • Installeer contact-form-7-dynamic-text-extension plugin
  • Zet in fuctions.php van de template de volgende code. Normaal bij vernieuwing van THEME dit weer aanpassen in de nieuwe fuctions.php, NIET MEER NODIG,-> is nu in functions.php in Enfold-Child theme verwerkt:

/* Generate Quote Ticket */
function genTicketString() {
$length = 5;
$characters = “0123456789”;
for ($p = 0; $p < $length; $p++) {
$string .= $characters[mt_rand(0, strlen($characters)-1)];
}
return $string;
}
add_shortcode(‘quoteticket’, ‘genTicketString’);

  • In email body:  [titel]
  • Add the dynamic field into the form.:  <span class=”hideMe”>[dynamictext ticket “quoteticket”]</span>

ENFOLD Theme: De template builder zit standard niet in de “pages”. Dit kan verkregen worden door het volgende te doen:

Blog posts don’t support the advanced editor at the moment. You can add this feature by hacking the theme files but we won’t provide support for this customization (i.e. we won’t answer questions like element xy doesn’t work with blg posts, etc.). If you want to add the builder to post pages open up wp-contentthemesenfold/config-templatebuilder/avia-template-builder/config/meta.php and replace:

array( ‘title’ =>__(‘Avia Layout Builder’,’avia_framework’ ), ‘id’=>’avia_builder’, ‘page’=>array(‘portfolio’,’page’), ‘context’=>’normal’, ‘priority’=>’high’, ‘expandable’=>true ),

with:

array( ‘title’ =>__(‘Avia Layout Builder’,’avia_framework’ ), ‘id’=>’avia_builder’, ‘page’=>array(‘portfolio’,’page’,’post’), ‘context’=>’normal’, ‘priority’=>’high’, ‘expandable’=>true ),

 

Facebook W4D :

APP ID: 365137406977496

APP Secret: a56e5a5f326e75bfa471471b2b3c796b

[FBW]