Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About simcoweb

  • Rank
    Prolific Member

Contact Methods

  • Website URL

Profile Information

  • Gender
    Not Telling
  • Location
  1. Greetings. I'm using a newsletter subscription plugin that doesn't have parameters for making fields required (don't ask why). The system is connected to Mailchimp but because the first and last names are not 'required' many of the submissions have been email address only. I found this JQuery snippet that validates that the 'first name' field is populated before submission. The problem is I need the 'last name' field validated as well. I played around with the code but my syntax knowledge is really rusty and the two ways I tried to add that field into the mix failed. Here's the code: <script type="application/javascript"> (function($) { $(document).ready(function() { $(" .et_bloom_submit_subscription").click(function(){ if ($('.et_bloom_submit_subscription').closest('.et_bloom_form_container').find('.et_bloom_subscribe_name input').attr('value') == '') { $('.et_bloom_submit_subscription').closest('.et_bloom_form_container').find('.et_bloom_subscribe_name input').addClass('et_bloom_warn_field'); return false; } else { $('.et_bloom_submit_subscription').closest('.et_bloom_form_container').find('.et_bloom_subscribe_name input').removeClass('et_bloom_warn_field'); } }); }); })(jQuery) </script> The last name field class is .et_bloom_subscribe_last which I tried splicing in a various ways but it didn't work. Can anyone provide the proper syntax to add this into the mix so that the 'warn_field' covers it as well? Thank you in advance.
  2. Greetings. I'm using the Divi theme from Elegant Themes for a new magazine style project. The theme does not display the caption for any of its image related modules and the featured image that displays in the posts as the thumbnail does not. We need the caption to display for legal reasons since it will attribute the source of the image. Here's the code they use for their theme display in the single.php file: } else if ( ! in_array( $post_format, array( 'gallery', 'link', 'quote' ) ) && 'on' === et_get_option( 'divi_thumbnails', 'on' ) && '' !== $thumb ) { print_thumbnail( $thumb, $thumbnail["use_timthumb"], $titletext, $width, $height ); echo wp_kses_post(get_post(get_post_thumbnail_id())->post_excerpt); } else if ( 'gallery' === $post_format ) { et_pb_gallery_images(); } Basically this is a custom function instead of using the standard Wordpress function. I searched around the Wordpress plugin repository and found someone who posted this code as a possible fix: <div class="et_post_meta_wrapper"> ... <?php if (get_post(get_post_thumbnail_id())->post_excerpt) { // search for if the image has caption added on it ?> <div class="featured-image-caption"> <?php echo wp_kses_post(get_post(get_post_thumbnail_id())->post_excerpt); // displays the image caption ?> </div> <?php } ?> </div> <!-- .et_post_meta_wrapper --> The problem is, where he says to insert this (just before the closing </div> tag for the wrapper, ) the caption displays at the bottom of the page, not underneath the featured image. I'm thinking that this code can be adapted to the same section of the code I posted above so that it all works as one unit in summoning the thumbnail and the caption. However, my PHP skills are not up to speed in order to conjure up the correct syntax for merging these two. Any help would be greatly appreciated. Thanking everyone in advance!
  3. Greetings. We're running a WooCommerce cart for a client. The problem is that his supplier apparently doesn't provide any type of spreadsheet with their product info that we can use to import them into our cart. As a result, it's taking literally months to gather images, product descriptions and so forth from the supplier's site. The client is clueless on what to do and i'm tired of hand-scraping info off their site and trying to match it up with WooCommerce's needs regarding product fields. So, what i'm hoping is SOMEONE... anyone....has info on a script that can harvest product information from a source site and compile it into a CSV file. I've searched in some of the typical places but can't find anything suitable or product orientated. Please advise if you have info that could help. Thanks!
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.