toad78
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumbs Divi Module] Divi 5 Compatibility TimelineSince there is not response, this tells me that there is no support for this plugin. Removing.
Thank you, @maybellyne . This is VERY helpful!
Privately, yes. Please provide me with an email address.
Please be clear, @ricav: what CDN are you talking about?
We are not using any caching plugins. Elementor is using it’s own, and all we have left is the hosting side (WPEngine), which has NEVER been a problem before.
Thank you.
Greetings!
It’s been 19 hours since the last response to my issue. Do we have a solution?
Forum: Plugins
In reply to: [WooCommerce] Plugin Question: Conditional Shipping and PaymentsThank you, @frankremmy , for getting back to me.
I took a look at the docs for the premium plugin and there is no indication that this feature is an option. Looks like special coding will have to be involved to make this work. I must be the only person on the plant that thinks outside the box beyond such standards.
🙂
Forum: Plugins
In reply to: [WooCommerce] Plugin Question: Conditional Shipping and PaymentsMy issue is not support related, and you have to have an account with the link provided. I’m just inquiring about the plugin and if it will do the job.
Coming back to this, I did get this worked out, for the most part. The downside is that one part of the code works, but not the other.
Setting the stage:
Both the mobile version and the desktop version have their unique logos, so I created the code to post the correct logo. However, only one set of code works. Meaning, the mobile logo code seems to take precedence and to be the only one working for mobile devices, whereas the correct desktop logos don’t appear in desktop mode. If I was to remove the mobile logo code, then the desktop works fine.
So I’m not sure where I’m going wrong in the code. It seems pretty sound, to me, but not sure why one code takes precedence over the other.
FOR DESKTOP:<div class="hidden-xs logo">
<?php
$terms = get_the_terms( get_the_ID(), array ( 'practice-areas-types', 'category' ) );
if ( !empty($terms) && !is_wp_error($terms) ) :
$image_echoed = false; // Flag to avoid multiple echoing
foreach ( $terms as $category ) :
$term_name = $category->name;
// Priority check for 'practice-areas-types' taxonomy first
if ( $category->taxonomy == 'practice-areas-types' ) :
if ( $term_name == 'Data Breaches' ) :
echo '<a href="/"><img id="site-logo" class="img-responsive" src="' . esc_url(get_template_directory_uri()) . '/assets/images/2025/data-breach-attorneys.avif" alt="Data Breaches Lawyer"></a>';
$image_echoed = true;
break;
elseif ( in_array( $term_name, ['Bicycle Accidents','Personal Injury','Car Accidents','Motorcycle Accidents','Truck Accidents','Airplane Accidents','Boating Accidents','Burn Injuries','Catastrophic Injuries', 'Defective Medical Products','Dog Bites','Drunk Driving Injuries','Food Poisoning','Hit and Run Accidents','Paralysis','Premises Liability','Spinal Cord Injuries','Traumatic Brain Injuries','Wrongful Death','Train Accidents','Shoulder Injuries','Broken Bones','Wildfires','Rideshare Accidents','Whiplash Injuries'] ) ) :
echo '<a href="/"><img id="site-logo" class="img-responsive" src="' . esc_url(get_template_directory_uri()) . '/assets/images/2025/accident-injury-attorneys.avif" alt="Personal Injury Lawyer"></a>';
$image_echoed = true;
break;
elseif ( in_array( $term_name, ['Employment Law','Qui Tam/ Whistleblower','Wage and Hour'] ) ) :
echo '<a href="/"><img id="site-logo" class="img-responsive" src="' . esc_url(get_template_directory_uri()) . '/assets/images/2025/employment-attorneys.avif" alt="Employment Lawyer"></a>';
$image_echoed = true;
break;
elseif ( in_array( $term_name, ['Class Action','Product Safety','Dangerous Drugs','Data Breach'] ) ) :
echo '<a href="/"><img id="site-logo" class="img-responsive" src="' . esc_url(get_template_directory_uri()) . '/assets/images/2025/class-action-attorneys.avif" alt="Class Action Attorneys"></a>';
$image_echoed = true;
break;
endif;
endif;
// If no image has been echoed yet, check for 'category' taxonomy
if ( !$image_echoed && $category->taxonomy == 'category' ) :
if ( $term_name == 'Data Breach' ) :
echo '<a href="/"><img id="site-logo" class="img-responsive" src="' . esc_url(get_template_directory_uri()) . '/assets/images/2025/data-breach-attorneys.avif" alt="Data Breaches Lawyer"></a>';
break;
elseif ( in_array( $term_name, ['Personal Injury', 'Auto Accidents', 'Motorcycle Accident', 'Trucking Accident', 'Airplane Accidents', 'Boating Accidents', 'Burn Injuries', 'Catastrophic Injuries', 'Defective Medical Products', 'Dog Bites', 'Drunk Driving Injuries', 'Food Poisoning', 'Hit and Run Accidents', 'Paralysis', 'Premises Liabilty', 'Spinal Cord Injuries', 'Traumatic Brain Injuries', 'Wrongful Death', 'Train Accidents', 'Shoulder Injuries', 'Broken Bones', 'Wildfires', 'Rideshare Accidents', 'Whiplash Injuries'] ) ) :
echo '<a href="/"><img id="site-logo" class="img-responsive" src="' . esc_url(get_template_directory_uri()) . '/assets/images/2025/accident-injury-attorneys.avif" alt="Personal Injury Lawyer"></a>';
break;
elseif ( in_array( $term_name, ['Employment Law','Qui Tam/ Whistleblower','Wage and Hour'] ) ) :
echo '<a href="/"><img id="site-logo" class="img-responsive" src="' . esc_url(get_template_directory_uri()) . '/assets/images/2025/employment-attorneys.avif" alt="Employment Lawyer"></a>';
break;
elseif ( in_array( $term_name, ['Class Action Lawsuit', 'Product Safety', 'Dangerous Drugs', 'Data Breach'] ) ) :
echo '<a href="/"><img id="site-logo" class="img-responsive" src="' . esc_url(get_template_directory_uri()) . '/assets/images/2025/class-action-attorneys.avif" alt="Class Action Attorneys"></a>';
break;
endif;
endif;
endforeach;
else :
echo '<a href="/"><img id="site-logo" class="img-responsive" src="' . esc_url(get_template_directory_uri()) . '/assets/images/2017/logo-new.svg" alt="injury Lawyer"></a>';
endif;
?>
</div>FOR MOBILE:
<div class="wsmobileheader clearfix">
<a id="wsnavtoggle" class="animated-arrow"><span></span></a>
<?php
$termsmob = get_the_terms( get_the_ID(), array ( 'practice-areas-types', 'category' ) );
if ( !empty($termsmob) && !is_wp_error($termsmob) ) :
$imagemob_echoed = false; // Flag to avoid multiple echoing
foreach ( $termsmob as $categorymob ) :
$termmob_name = $categorymob->name;
// Priority check for 'practice-areas-types' taxonomy first
if ( $categorymob->taxonomy == 'practice-areas-types' ) :
if ( $termmob_name == 'Data Breaches' ) :
echo '<a href="/"><span class="smallogo"><img id="site-logo" class="img-responsive" src="' . esc_url(get_template_directory_uri()) . '/assets/images/2025/data-breach-mob.svg" alt="Data Breaches Lawyer" width="160" style="margin-left:auto;margin-right:auto;"></span></a>';
$imagemob_echoed = true;
break;
elseif ( in_array( $termmob_name, ['Bicycle Accidents','Personal Injury','Car Accidents','Motorcycle Accidents','Truck Accidents','Airplane Accidents','Boating Accidents','Burn Injuries','Catastrophic Injuries', 'Defective Medical Products','Dog Bites','Drunk Driving Injuries','Food Poisoning','Hit and Run Accidents','Paralysis','Premises Liability','Spinal Cord Injuries','Traumatic Brain Injuries','Wrongful Death','Train Accidents','Shoulder Injuries','Broken Bones','Wildfires','Rideshare Accidents','Whiplash Injuries'] ) ) :
echo '<a href="/"><span class="smallogo"><img id="site-logo" class="img-responsive" src="' . esc_url(get_template_directory_uri()) . '/assets/images/logo-white-2.svg" alt="Personal Injury Lawyer" width="160" style="margin-left:auto;margin-right:auto;"></span></a>';
$imagemob_echoed = true;
break;
elseif ( in_array( $termmob_name, ['Employment Law','Qui Tam/ Whistleblower','Wage and Hour'] ) ) :
echo '<a href="/"><span class="smallogo"><img id="site-logo" class="img-responsive" src="' . esc_url(get_template_directory_uri()) . '/assets/images/2025/employment-attorneys-mob.svg" alt="Employment Lawyer" width="160" style="margin-left:auto;margin-right:auto;"></span></a>';
$imagemob_echoed = true;
break;
elseif ( in_array( $termmob_name, ['Class Action','Product Safety','Dangerous Drugs','Data Breach'] ) ) :
echo '<a href="/"><span class="smallogo"><img id="site-logo" class="img-responsive" src="' . esc_url(get_template_directory_uri()) . '/assets/images/2025/class-action-mob.svg" alt="Class Action Attorneys" width="160" style="margin-left:auto;margin-right:auto;"></span></a>';
$imagemob_echoed = true;
break;
endif;
endif;
// If no image has been echoed yet, check for 'category' taxonomy
if ( !$imagemob_echoed && $categorymob->taxonomy == 'category' ) :
if ( $termmob_name == 'Data Breach' ) :
echo '<a href="/"><span class="smallogo"><img id="site-logo" class="img-responsive" src="' . esc_url(get_template_directory_uri()) . '/assets/images/2025/data-breach-mob.svg" alt="Data Breaches Lawyer" width="160" style="margin-left:auto;margin-right:auto;"></span></a>';
break;
elseif ( in_array( $termmob_name, ['Personal Injury', 'Auto Accidents', 'Motorcycle Accident', 'Trucking Accident', 'Airplane Accidents', 'Boating Accidents', 'Burn Injuries', 'Catastrophic Injuries', 'Defective Medical Products', 'Dog Bites', 'Drunk Driving Injuries', 'Food Poisoning', 'Hit and Run Accidents', 'Paralysis', 'Premises Liabilty', 'Spinal Cord Injuries', 'Traumatic Brain Injuries', 'Wrongful Death', 'Train Accidents', 'Shoulder Injuries', 'Broken Bones', 'Wildfires', 'Rideshare Accidents', 'Whiplash Injuries'] ) ) :
echo '<a href="/"><span class="smallogo"><img id="site-logo" class="img-responsive" src="' . esc_url(get_template_directory_uri()) . '/assets/images/logo-white-2.svg" alt="Personal Injury Lawyer" width="160" style="margin-left:auto;margin-right:auto;"></span></a>';
break;
elseif ( in_array( $termmob_name, ['Employment Law','Qui Tam/ Whistleblower','Wage and Hour'] ) ) :
echo '<a href="/"><span class="smallogo"><img id="site-logo" class="img-responsive" src="' . esc_url(get_template_directory_uri()) . '/assets/images/2025/employment-attorneys-mob.svg" alt="Employment Lawyer" width="160" style="margin-left:auto;margin-right:auto;"></span></a>';
break;
elseif ( in_array( $termmob_name, ['Class Action Lawsuit', 'Product Safety', 'Dangerous Drugs', 'Data Breach'] ) ) :
echo '<a href="/"><span class="smallogo"><img id="site-logo" class="img-responsive" src="' . esc_url(get_template_directory_uri()) . '/assets/images/2025/class-action-mob.svg" alt="Class Action Attorneys" width="160" style="margin-left:auto;margin-right:auto;"></span></a>';
break;
endif;
endif;
endforeach;
else :
echo '<a href="/"><span class="smallogo"><img id="site-logo" class="img-responsive" src="' . esc_url(get_template_directory_uri()) . '/assets/images/logo-white-2.svg" alt="injury Lawyer" width="160" style="margin-left:auto;margin-right:auto;"></span></a>';
endif;
?>
<a class="callusicon" href="tel:9167777777" onclick="ga('send', 'event', 'Phone', 'Click', 'Header');"><span class="fa fa-phone"></span><span class="screen-reader-text">Call Us</span></a>
</div>Forum: Plugins
In reply to: [Advanced Custom Fields (ACF®)] Video Doesn’t PostThank you, @acfsupport. I will try that and see if it fixes it. I was trying a combination of ways to post the URL (not noted above) and nothing would post.
I’ll come back to you.
Forum: Plugins
In reply to: [Better Search Replace] Doesn’t Seem to Work For Guttenberg Shortcode@dbisupport ,
I had to resort to a different plugin to do a search/replace, which did catch the Gutenberg blocks content. If I run into this problem again, I’ll be sure to come back to support.Forum: Plugins
In reply to: [Advanced Custom Fields (ACF®)] Video Doesn’t PostI thought of an error in my code and have updated it, but still don’t see the video. I’ve tried two additional methods and the video still won’t post.
<div class="leftvid">
<?php
$video = get_field('hero_video');
if ($video) {
$video_url = $video['url'];
echo '<video width="200" height="300">';
echo '<source src="<?php echo $video_url; ?>" type="video/mp4">';
echo 'Your browser does not support the video tag.';
echo '</video>';
} ?>
</div>
<div class="leftvid">
<?php
$video = the_field('hero_video', 'option');
if( !empty($video) ): ?>
<video>
<source src="<?php echo $video['url'];?>" type="video/mp4">
Your browser does not support the video tag.
</video>
<!--<p>Your browser does not support the video tag.</p> -->
<?php endif; ?>
</div>- This reply was modified 9 months, 3 weeks ago by toad78.
After four days of no response, I have removed the plugin.
Thank you, @threadi, for your response.
While I don’t disagree that the PA Types and Blog taxonomies are the same, the functionality of the code obviously needed some fine-tuning to distinguish posting the image between the two.
I’ll give your suggestion a go and try and see what I come up with.
Thank you.
- This reply was modified 10 months, 2 weeks ago by toad78.