-
Search Results
-
I am using Enfold 7.1.2 with PHP 8.4 with WooCommerce as a shop.
When a customer order the “processing email” it leaves a blank space between address 1 and the city, ST ZIP, such as the following:
Joe Bloe
1 Street AddressLos Angeles, CA 90029
It should be:
Joe Bloe
1 Street Address
Los Angeles, CA 90029How do I update the PHP code to remove the blank space on the email if there is no copy in Address 2 field?
I see this in WooCommerce:
To override and edit this email template copy woocommerce/templates/emails/customer-processing-order.php to your theme folder: enfold-child/woocommerce/emails/customer-processing-order.php.
I could use some help how and waht to change from the following:
<?php
/**
* Customer processing order email
*
* This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-processing-order.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
* @see https://woocommerce.com/document/template-structure/
* @package WooCommerce\Templates\Emails
* @version 9.9.0
*/use Automattic\WooCommerce\Utilities\FeaturesUtil;
if ( ! defined( ‘ABSPATH’ ) ) {
exit;
}$email_improvements_enabled = FeaturesUtil::feature_is_enabled( ’email_improvements’ );
/*
* @hooked WC_Emails::email_header() Output the email header
*/
do_action( ‘woocommerce_email_header’, $email_heading, $email ); ?><?php echo $email_improvements_enabled ? ‘<div class=”email-introduction”>’ : ”; ?>
<p>
<?php
if ( ! empty( $order->get_billing_first_name() ) ) {
/* translators: %s: Customer first name */
printf( esc_html__( ‘Hi %s,’, ‘woocommerce’ ), esc_html( $order->get_billing_first_name() ) );
} else {
printf( esc_html__( ‘Hi,’, ‘woocommerce’ ) );
}
?>
</p>
<?php if ( $email_improvements_enabled ) : ?>
<p><?php esc_html_e( ‘Just to let you know — we’ve received your order, and it is now being processed.’, ‘woocommerce’ ); ?></p>
<p><?php esc_html_e( ‘Here’s a reminder of what you’ve ordered:’, ‘woocommerce’ ); ?></p>
<?php else : ?>
<?php /* translators: %s: Order number */ ?>
<p><?php printf( esc_html__( ‘Just to let you know — we\’ve received your order #%s, and it is now being processed:’, ‘woocommerce’ ), esc_html( $order->get_order_number() ) ); ?></p>
<?php endif; ?>
<?php echo $email_improvements_enabled ? ‘</div>’ : ”; ?><?php
/*
* @hooked WC_Emails::order_details() Shows the order details table.
* @hooked WC_Structured_Data::generate_order_data() Generates structured data.
* @hooked WC_Structured_Data::output_structured_data() Outputs structured data.
* @since 2.5.0
*/
do_action( ‘woocommerce_email_order_details’, $order, $sent_to_admin, $plain_text, $email );/*
* @hooked WC_Emails::order_meta() Shows order meta data.
*/
do_action( ‘woocommerce_email_order_meta’, $order, $sent_to_admin, $plain_text, $email );/*
* @hooked WC_Emails::customer_details() Shows customer details
* @hooked WC_Emails::email_address() Shows email address
*/
do_action( ‘woocommerce_email_customer_details’, $order, $sent_to_admin, $plain_text, $email );/**
* Show user-defined additional content – this is set in each email’s settings.
*/
if ( $additional_content ) {
echo $email_improvements_enabled ? ‘<table border=”0″ cellpadding=”0″ cellspacing=”0″ width=”100%”><tr><td class=”email-additional-content”>’ : ”;
echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) );
echo $email_improvements_enabled ? ‘</td></tr></table>’ : ”;
}/*
* @hooked WC_Emails::email_footer() Output the email footer
*/
do_action( ‘woocommerce_email_footer’, $email );Hi,
i made a post which should show the title, text and read more button. On the desktop it looks ok but on mobile there is no button.
Any idea why?Many regards rixi
I think that my CSS code is stretching out my interior page image sliders.
when I remove this code, the Easy Slider looks perfect on mobile, but then the Homepage main image is short and cut off.
how can I get code to make the home page main image longer and fix with the buttons, and also have the Easy Slider look proportional?
here is the code I had to remove to make Easy slider look right, but home is too short now:
@media only screen and (max-width: 768px) {
.responsive #top .avia-slideshow-inner, .responsive #top .avia-slideshow-inner img {
height: 450px !important;
}
}In layerslider I want a text box center. Whatever I do it snaps to the right of the page. There is only an Position left top option. How do I have a text box that I can position where I want it?
ThanksHello.
We’re creating a Masonry gallery to display blog posts, with 12 categories.
When viewing the page, we see that the Masonry gallery only displays 8 filter categories, not the 12 I have selected.
I’ve created this test page, where you can see an article gallery at the top with the Magazine option, where you can see the 12 filter categories, and another one below with the Masonry gallery option, where only 8 categories are displayed, even though I have 12 selected.
See test pages: https://saitra.com/aaa-pruebas/How can we fix this?
Thank you.
Dear people of the support forum,
I am having an issue on this page (and also on other pages with a masonry grid layout):
On mobile, the bottom margins only load after a delay. I’m not sure how long it takes. They seem to load after scrolling un and down a couple of times. The frames containing the post previews are pushed against eachother, before the bottom margins kick in. Obviosly, I would like the margins to load upon loading the page instantly.
I have set the margin with this code:
@media only screen and (max-width: 767px) { #top .av-masonry .av-masonry-entry { width: 96% !important; margin-right: 0% !important; margin-bottom: 30px !important; } }How can this be fixed?
Thanks so much in advance!
The logo background (logo area background color) is set to white (#ffffff). This works for both the full and narrow desktop views.
But the background is dark gray on mobile devices. It can only be changed with very bright special colors, which do not fit into the color scheme.
Due to the dark background, the burger menu is no longer visible.Another question: How and where can I change the colors of the search icon and the social icons in the header? When I hover over them with my mouse, a bright color appears that is not set anywhere in the styling.
So, two open points/questions:
1. Why do the header colors differ between desktop and mobile? How can I synchronize this?
2. How and where are the colors of the icons and the burger menu in the header adjusted?Topic: Request For Guest Posting
Hi,
I hope you’re doing well.
I’m reaching out to see if you’re currently accepting guest posts for your website. I’d love to share a few topic ideas that would fit nicely with your existing content and add value for your readers.
If you’re interested, I can write a well-researched, original article at no cost — all I’d ask in return is to include one relevant backlink within the content.
Please let me know if this sounds good to you, and I’ll be happy to send over some topic suggestions.
Looking forward to hearing from you
Best regards,
David Macullum


