Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • your code is setup wrong try this code below, add your codes before the header.

    <?php
    /*
    Template Name: Page Testimonials
    */

    $postTitleError = ”;

    if(isset($_POST[‘submitted’]) && isset($_POST[‘post_nonce_field’]) && wp_verify_nonce($_POST[‘post_nonce_field’], ‘post_nonce’)) {

    if(trim($_POST[‘postTitle’]) === ”) {
    $postTitleError = ‘Please enter a title.’;
    $hasError = true;
    } else {
    $postTitle = trim($_POST[‘postTitle’]);
    }
    $eventurl = $_POST[‘subtitle’];

    $post_information = array(
    ‘post_title’ => esc_attr(strip_tags($_POST[‘postTitle’])),
    ‘post_content’ => esc_attr(strip_tags($_POST[‘postContent’])),
    ‘post_type’ => ‘testimonial’,
    ‘post_status’ => ‘pending’,
    ‘subtitle’ => $eventurl,
    );

    $post_id = wp_insert_post($post_information);

    //save the new post
    add_post_meta($post_id, ‘subtitle’, $eventurl, true);

    if($post_id)
    {
    // Update Custom Meta
    update_post_meta($post_id, ‘subtitle’, esc_attr(strip_tags($_POST[‘eventurl’])));

    // Redirect
    wp_redirect(home_url(‘testimonials’));
    exit;
    }

    }

    ?>

    <?php get_header(); ?>

    <div class=”content “>
    <div class=”container”>

    <div class=”main-content”>

    <div class=”clear”></div>

    </div><!— end of .main-content –>

    <div class=”sidebar”>

    <div class=”form-container clear”>
    <div id=”wpcf7-f272-o1″ class=”wpcf7″>
    <form id=”new_post” name=”new_post” method=”post” action=”” class=”wpcf7-form” enctype=”multipart/form-data”>

    <header class=”header-entry”>
    <h2>do you have a story?</h2>
    <h3>share your testimony to encourage others</h3>
    </header>
    <p>First Last Name (required)
    <span class=”wpcf7-form-control-wrap your-name”>
    <fieldset>
    <!– label for=”postTitle”><?php// _e(‘Post\’s Title:’, ‘framework’) ?></label–>

    <input type=”text” name=”postTitle” id=”postTitle” value=”<?php if(isset($_POST[‘postTitle’])) echo $_POST[‘postTitle’];?>” class=”required wpcf7-form-control wpcf7-text wpcf7-validates-as-required” placeholder=”” />

    </fieldset>

    <?php if($postTitleError != ”) { ?>
    <span class=”error”><?php echo $postTitleError; ?></span>
    <div class=”clearfix”></div>
    <?php } ?>

    </span> </p>

    <p>City, State
    <span class=”wpcf7-form-control-wrap CityState”>
    <!– Event Url –>
    <fieldset class=”eventurl”>
    <input type=”text” value=”” id=”eventurl” class=”wpcf7-form-control wpcf7-text” size=”40″ name=”eventurl” placeholder=””>
    </fieldset>
    </span> </p>

    <p>testimony
    <span class=”wpcf7-form-control-wrap your-message”>
    <fieldset>

    <textarea name=”postContent” id=”postContent” class=”wpcf7-form-control wpcf7-textarea” rows=”10″ cols=”40″ placeholder=”Write a testimonial here. 300 charactors max.”><?php if(isset($_POST[‘postContent’])) { if(function_exists(‘stripslashes’)) { echo stripslashes($_POST[‘postContent’]); } else { echo $_POST[‘postContent’]; } } ?></textarea>

    </fieldset>
    </span> </p>
    <p>
    </fieldset>

    <?php wp_nonce_field(‘post_nonce’, ‘post_nonce_field’); ?>

    <input type=”hidden” name=”submitted” id=”submitted” value=”true” />
    <button type=”submit” class=”submitevent wpcf7-form-control wpcf7-submit”><?php _e(‘Submit’, ‘framework’) ?></button>

    </fieldset>
    </p>
    <p>maximum 300 characters</p>
    <p>clear</p>
    </form>
    </div>
    </div>

    </div><!— end of .sidebar –>

    <div class=”clear”></div>

    </div><!— end of .container –>
    </div><!— end of .content –>

    <?php get_footer(); ?>

    hello Skoad, first copy the woocommerce.css in your theme folder, then go in you functions.php and paste this code
    <?php
    wp_enqueue_style(‘woocommerce_css’, get_template_directory_uri() .’/css/woocommerce.css’);
    ?>
    after you done those two things open the woocommerce.css file and search for .woocommerce .star-rating, .woocommerce-page .star-rating it should be line 833, add the color of your choice by using this code
    color:#6fbd45 !important;
    and thats it.

    alexwbaumann thank you your solution work

    if you are like me and need this solution right now, you can go into the plugin folder, look for the file wpec-related-product.php and edit the images size on line 98 and line 100, everywhere thats mark 100 change to desired size. you can view a sample i did here.
    https://lomaboutique.com/products-page/product-category/blue-shiny-dress/

    Thread Starter frenchy black

    (@frenchy-black)

    problem solved, it was a jquery issue, i found the solution through this thread
    https://www.ads-software.com/support/topic/variable-product-no-add-to-cart-button-js-error-thrown?replies=8

    hello everyone, please make sure you have PayPal sandbox disable. go to woocommerce setting then select payment gateways then select in the breadcrumb menu paypal then scroll to the bottom and unchecked Enable PayPal sandbox check box. save then refresh your website page. please let me know if that solved your issue

    are you looking to do something similar to this webpage https://www.chestnutstreet4square.com/resources/ if so i can help

Viewing 7 replies - 1 through 7 (of 7 total)