-
Search Results
-
I am very evidently not good with javascript, but was hoping to follow “recipe” on
to Show/Hide a section.
I was trying to create what’s entitled
- Toggle a Section when a button is clicked.
At end of functioning functions.php, I inserted the following code and got the error indicated in the subject line above.
The debug indicates an [18-Sep-2025 01:04:06 UTC] EXCEPTION: Unclosed ‘{‘ on line 1367 in functions.php on line 1393 — that appears to be right on the line prior to the add_action. If I put in } (to close it?), I still get the error.
Please, could somebody steer me right on this thing? I’m befuddled!
Thanks for any help from an expert!
======================================================================================//——————————-
// Toggle section
//——————————-function toggle_on_click(){
?>
<script>
jQuery(window).on(‘load’, function(){// Button onClick event
jQuery(“.toggle-button a”).on(“click”, function(e) {
// Add your button events here
console.log(” toggle section”);
jQuery(“#toggle-section”).toggleClass(“hide-me”);
console.log(” Prevent default “);
e.preventDefault();
});
});
</script>
<!–?php<br /–> }add_action(‘wp_footer’, ‘toggle_on_click’);
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 );Topic: Widget page inactive
Hello,
The widget page is completely inactive; none of the buttons are working. In debug mode, I get the following error message:
Une erreur de type E_ERROR a été causée dans la ligne 153 du fichier /homepages/21/d858425693/htdocs/wp-content/themes/enfold/framework/php/widgets/widget-classes/class-avia-mailchimp.php. Message d’erreur : Uncaught TypeError: strip_tags(): Argument #1 ($string) must be of type string, array given in /homepages/21/d858425693/htdocs/wp-content/themes/enfold/framework/php/widgets/widget-classes/class-avia-mailchimp.php:153
Stack trace:
#0 /homepages/21/d858425693/htdocs/wp-content/themes/enfold/framework/php/widgets/widget-classes/class-avia-mailchimp.php(153): strip_tags()
#1 /homepages/21/d858425693/htdocs/wp-includes/class-wp-widget.php(535): aviaFramework\widgets\avia_mailchimp_widget->form()
#2 /homepages/21/d858425693/htdocs/wp-admin/includes/widgets.php(276): WP_Widget->form_callback()
#3 /homepages/21/d858425693/htdocs/wp-includes/widgets.php(845): wp_widget_control()
#4 /homepages/21/d858425693/htdocs/wp-admin/includes/widgets.php(119): dynamic_sidebar()
#5 /homepages/21/d858425693/htdocs/wp-admin/widgets-form.php(552): wp_list_widget_controls()
#6 /homepages/21/d858425693/htdocs/wp-admin/widgets.php(34): require(‘/homepages/21/d…’)
#7 {main}
thrown
Thank you for your helpTopic: Theme Update
I have one of your wordpress themes called “5 Arrows” that is at version 4.2. It says you are the author. I believe that it was purchased when I had a renovation done on my website. Currently I don’t have a way to get it updated, and now I am running into an issue with updating PHP beyond 7.4 due to compatability issues. Can someone help me out on this?
Topic: Sidebar settings
My apologies, but I am an infrequent user, so just trying to figure this out.
When I add a new portfolio item to the Enfold theme, I dont see the advanced layout editor, like normal.
I have tried to update the theme, but Theme Update says:
No Updates available. You are running the latest version! (5.2.1)
Check Manually
Your PHP version: 8.0.30.7thank you!
Topic: thème nouveau
Bonjour j’ai reçu la réponse suite à mon message pour le nouveau thème mais je n’arrive pas à me connecter à votre site pour répondre. Donc je reviens ici. En fait mon WordPress me recommande la version 8.3
Mon site fonctionne sur une version obsolète de PHP (7.4.33), qui ne reçoit pas les mises à jour de sécurité.
Vous n’avez pas regardé mon compte WordPress apparemment avec mes liens envoyés pourtant.Topic: thème nouveau
Bonjour j’ai reçu la réponse suite à mon message pour le nouveau thème mais je n’arrive pas à me connecter à votre site pour répondre. Donc je reviens ici. En fait mon WordPress me recommande la version 8.3
Mon site fonctionne sur une version obsolète de PHP (7.4.33), qui ne reçoit pas les mises à jour de sécurité.
Vous n’avez pas regardé mon compte WordPress apparemment avec mes liens envoyés pourtant.Hello, I have a massive performance issue in the backend since switching to a newer PHP version.
Saving drafts takes up to 10 seconds, and loading the pages overview is also extremely slow. Even just calling up a textbox to edit text takes up to 10 seconds.
– I am working with WordPress 6.8.2 and the Enfold theme version 7.1.2.
– I’ve observed the issue on MySQL database version 8.0.36. I tested with PHP 8.2.29 and PHP 8.3.24 without any improvement.
– I only have 4 plugins, which I have all deactivated for testing purposes. The problem persisted.
– My server settings are more than sufficient. The PHP memory limit is set to -1 (unlimited), and the max_input_vars is at 5000.
– I have optimized the database, but this did not solve the issue.
– The error disappears as soon as I activate a default theme.What can i do?
Hello,
I am currently experiencing several issues with my WordPress site using the Enfold theme with the Avia builder:
Some modules do not display correctly, or they completely disappear.
I noticed that some modules seem broken or compromised.
I can no longer remove, move, or edit certain modules in Avia.
I have already tried basic troubleshooting steps (clearing cache, deactivating plugins, increasing PHP limits, etc.), but the issue still persists.
Here is my license number for verification: b19dc117-0f06-4276-92fe-08fbb91f1511
Could you please help me identify the cause of this problem and provide a solution?
If needed, I can provide admin or FTP access privately.Thank you in advance for your support.
Best regards,
Topic: unmute background video







