Placeholder not working
-
Hi
Created field successfully, and it works perfectly but when i enter a placeholder it doesn;t get stored/saved.So to over come this i tried adding
add_action( ‘wccpf/before/fields/start’, ‘wccpf_wrapper_start’ );
function wccpf_wrapper_start() {
/* Wrapper element start */
echo ‘<div class=”your-custom-wrapper-class”><p> Info about field</p>’;
}add_action( ‘wwccpf/after/fields/end’, ‘wccpf_wrapper_end’ );
function wccpf_wrapper_end() {
/* Wrapper element end */
echo ‘</div>’;
}But when i do this,
1: It starts to display on all products where as i had added a check to show only on 1 product.
2: it looks like wwccpf/after/fields/end doesnt work as it doesnt show </div> in the code hence breaking the page template.
The topic ‘Placeholder not working’ is closed to new replies.