is there any way to add <br/>
‘s and <strong>
‘s in the email that is generated from the contact form submissions withOUT having to alter theme file(s)???
would be nice to bold the field labels & colons and also add an extra line break between them in the emails.
if it can’t be done without modifying any theme files (unless it can be a Child Theme file?), then nevermind. but please put it in a wishlist for future versions. to have something in the Enfold settings interface where we could customize how the emails look (no matter how many form fields or labels it has).
thanks.
Hey hubertba,
Thank you for the inquiry.
Have you tried using the woocommerce_checkout_fields filter? Please check this documentation for more info: https://developer.woocommerce.com/docs/code-snippets/customising-checkout-fields/
You can also try the following plugin: https://wordpress.org/plugins/woo-checkout-field-editor-pro/
Best regards,
Ismael
Hi,
Thank you for the update.
The code in the Custom CSS and Quick CSS fields shouldn’t conflict, but for easier maintenance, we recommend using only one. Regarding the Horizontal Gallery, this element is intended for image galleries, but you’re currently using it more like a post slider with text and meta information, which requires additional customization. We suggest using a more appropriate element such as Blog Posts, Post Slider, or Content Slider, or consider moving the slide items to their own subpages.
Best regards,
Ismael
I was able to narrow the offending wp_options table entries to those associated with the following option_name values and their associate option_variable entries:
widget_text
Widget_avia_mailchimp_widget
widget_custom_html
Then the content of those entries option_variable fields are deleted, the widget areas reappear and can be populated as desired. Unless you have another suggestion, it appears that I will need to rebuild each of my sidebar areas.
Thank you!
This reply has been marked as private.
Okay, so I must be doing something stupidly wrong.
I have an ACF-based Custom Post Type of FAQs, a Taxonomy of FAQ Categories, and a Field Set of FAQs Fields
My goal was to have an accordion that had a toggle that was of the question, and then the answer displayed in the Accordion Content section.
I set the Accordion Toggle to the correct ACF field, using the ACF drop-down in the accordion panel.
I then put the Answer field within the body content of the Accordion content field.
What I get is a strange string in the Toggle and a strange string in the content with the Answer showing up after. It looks like it might just be a formatting error with quotes, but not sure the proper way to set it up, as I am trying to automate the creation of these.
What is the best approach as you look at this and think scalability?
Hi,
We are not sure how the form saves the post, but for the default post editor, you can use either the wp_insert_post_data or the save_post hook to add additional functionality, such as applying a custom layout to a post, before it is saved to the database.
— https://developer.wordpress.org/reference/hooks/save_post/
— https://developer.wordpress.org/reference/hooks/wp_insert_post_data/
The required fields were already included in the previous post.
Best regards,
Ismael
Thank you very much for your reply!
Unfortunately, this doesn’t solve the issue I’m facing.
I have already seen the documentation at https://kriesi.at/documentation/enfold/custom-layout-and-dynamic-content/, but it requires selecting the custom layout manually in the Advanced Layout Builder (ALB) for each post.
What I’m looking for is a way to apply a saved custom layout automatically to newly created posts in a custom post type – in my case, “anzeige”.
These posts are not created in the backend but via a frontend form that fills ACF fields. So I would like the layout to be applied automatically without manual selection in the backend.
Is there a way to assign a specific ALB layout automatically to posts, either via code or some internal Enfold function?
Thank you again for your help!
Hello Ismael,
Thank you very much for your response. Thanks to the documentation below, I figured out to show custom fields. Now, I will try to be able to compare listed products based on custom fields. Any suggestions? Thank you….
-
This reply was modified 2 months, 1 week ago by
a_edemirci.
Hey a_edemirci,
Thank you for the inquiry.
Are you using the Advanced Layout Builder to create the product content? Please note that ACF fields will not display automatically in this case. You may need to switch to the default editor or use the dynamic content feature to manually display the ACF field values. Please check the documentation below.
— https://kriesi.at/documentation/enfold/custom-layout-and-dynamic-content/
Best regards,
Ismael
Hi!
I was trying to create a custom layout containing a section with a dynamic background (Custom Field Image) value: {wp_custom_field:_thumbnail_id}
It works OK for one post, but background image is being cached and displayed for all other posts as well.
I dag into the av_section code to find that attribute is being rendered nicely, but the dynamic CSS class (avia-section.av-m8303wih-f038c6badb9db50289ff3c9a39d18731) that defines section background does not update.
A quick workaround for this scenario:
// Force bg for secion as it does not update when dynamic avia element is used
// Enfold forces CSS bg, but it is cached and does not update for different posts
// although it is calculated OK for secion atts
add_filter('avf_sc_section_before_close', function($output, $atts) {
if (!$atts['src_dynamic'] ?? false || !$atts['src'] ?? false)
return $output;
$style_attr = ' style="background-image: url('. esc_url($atts['src']) .') !important;"';
return substr_replace($output, $style_attr, 4, 0);
}, 999, 2);
Hey mattb1169,
Thank you for the inquiry.
Did you set the Row Margins > Custom Top and Bottom Margin of the column element to -205px? Please make sure to adjust the value using the dedicated fields for mobile view.
View post on imgur.com
Best regards,
Ismael
Hi the site is under development on a local folder. I just uploaded a copy of it in a subdirectory. Below the url and the access.
Check the home page: the span.post-meta-infos doesn’t contain the custom fields as set in my functions.php
Thanks
I have created a CPT with ACF and relative custom fields. Then I show the posts in specific pages with the avia element Blog Post. When choosing the style “Simple List”, I would like to show a couple of psot custom fields instead of Author and Date.
I am not sure which filter I should use in functions.php to do it, or if I should modify a copy of some enfold file in my child theme. I tried to modify the loop-index.php but no changes are reflected in the front-end
Thanks
Hello,
the MCE icon tool (in the shape of a magic wand) to insert a shortcode in text element no longer appears in my custom layout.
i use it to display ACF custom fields data, like in documentation.
With console i see a JS error in admin, I searched and it comes from the fact that the shortcode use the field label of ACF but it’s the field name which is given now, example for a company name :
previously with field name : {acf_field_6745a0c4478f3:Nom_entreprise}
today with field label instead : {acf_field_6745a0c4478f3:Nom de l’entreprise}
And in French the apostrophe in the label value of the field brakes some Avia js array and prevents the display of the MCE icon tool …
i fixed it by removing apostrophe in the ACF label field
This appears to be due to a recent update, but is it an Enfold update or an ACF update? i don’t know
Maybe it can help others
Regards
Hi,
You could add a meta_query parameter to the filter above.
function custom_sort_by_event_date($query, $params) {
$query['meta_key'] = 'event_date';
$query['orderby'] = 'meta_value';
$query['meta_type'] = 'DATE';
$query['order'] = 'ASC';
$query['meta_query'] = array(
array(
'key' => 'activate',
'value' => '1',
'compare' => '='
)
);
return $query;
}
add_filter('avia_post_grid_query', 'custom_sort_by_event_date', 10, 2);
— https://www.advancedcustomfields.com/resources/checkbox/
Best regards,
Ismael
Hi,
As mentioned above, you will need to create a custom solution for these fields, such as a custom shortcode. Please check the link below for more info.
— https://codex.wordpress.org/Shortcode_API
To display custom post types in the Blog Posts element, make sure that custom taxonomies are attached to them. Then, set Content > Select Entries > Content To Display to Display entries from a custom taxonomy.
For this type of customization, you can contact our partner, Codeable.
— https://kriesi.at/contact/customization
Best regards,
Ismael
Hi,
Sorry for the late response. According to the documentation, File and OEmbed fields are not yet supported. You may need to implement a custom solution to extract the values of these fields for your custom layout. Here is the list of supported ACF fields.
— https://kriesi.at/documentation/enfold/custom-layout-and-dynamic-content/#acf-advanced-custom-fields-support
Best regards,
Ismael
Hey dondela,
Thank you for the inquiry.
This is not available by default, but you might be able to apply an ACF Date field to the Portfolio post type and sort the Portfolio Grid based on the field’s value.
— https://www.advancedcustomfields.com/resources/date-picker/
Add this code in the functions.php file:
function custom_sort_by_event_date($query, $params) {
$query['meta_key'] = 'event_date';
$query['orderby'] = 'meta_value';
$query['meta_type'] = 'DATE';
$query['order'] = 'ASC';
return $query;
}
add_filter('avia_post_grid_query', 'custom_sort_by_event_date', 10, 2);
Make sure that the Date Picker field name is event_date.
Best regards,
Ismael
I am rebuilding a site in Enfold that was originally built in a custom theme. Our client wanted a more user friendly theme for editing their site.
They use ACF extensively. I’ve gone through all the tutorials with ACF and enfold documentation, and I know how to build a custom template. Works great! except….
We have several fields that are File fields, and one oEmbed field. Both of those types convert to wp_fields in dynamic content, and as a result they do not show up. I noticed that in its current state, those fields are not currently compatible with Enfold dynamic content.
What is the best way to make these field types work.
I’m also dealing with how to show the post types once they are created. but first let’s deal with the field types. I’ll give you both the original site to look at, as well as our site. I’ll put it in private content.
I would set it up differently, using the traditional post, but we are transferring all of their ACF post types and previous creations. which need to be available in the Enfold version of the site. plus post creation using the ACF is great for them knowing how to do it already, as opposed to me doing it differently in the future.
Hallo :-)
wie kann ich die Meldung:
Welcome to Enfold 7.0 introducing a nice feature:
SVG Icons – Check our documentation to get deeper insight and how to use them
Bugfixes – Check our changelog for all changes
Check our documentation to get deeper insight
Did you already explore:
Custom Layout And Dynamic Content: Use custom fields and create editable layouts using custom fields
Custom Elements: Create your own styled editable ALB elements for a consistent layout throughout your site
Follow Upcoming Fixes for the next release
You miss the classic editor:
You can switch to this editor any time you like without using a plugin in our theme options: Theme Options Tab -> Select Your Editor
löschen – einen Demissbutton gibt es nicht – wenn ich oben aufs X klicke erscheint die Meldung immer wieder. Vielleicht weiß jemand Rat?
Hi,
This is possible, but it will require modifications beyond the scope of support. Please note that pages/posts using the ALB also require these custom fields:
_aviaLayoutBuilder_active
_aviaLayoutBuilderCleanData
_avia_builder_shortcode_tree
_avia_sc_parser_state
_av_alb_posts_elements_state
_av_el_mgr_version
These entries will not be generated without manually switching to the Advance Layout Builder.
Best regards,
Ismael
Hey daimonart,
Thank you for the inquiry.
There is no option for this by default, but you can try saving the element as a Custom Element Template (CET) with all the options and fields locked so they won’t be editable. Please check this documentation for more info about CET: https://kriesi.at/documentation/enfold/custom-element-templates/
Best regards,
Ismael
Hi there!
Your YT-tutorial “Custom Template and Dynamic Content with Enfold 6 & ACF” (https://www.youtube.com/watch?v=D1sMhQJYamw) explains how to add custom fields to the single page of a custom post type (in the example: Book) using ACF.
Is it also possible to layout the archive page of this custom post type in the same way? In the tutorial video you can only see the image and the title of all books in the overview. How can I add more ACF fields there?
Thanks!
Hi,
If you want to add a custom text with random sales numbers, just edit the value of the sales_text_last_month custom field and then adjust the filter a bit.
add_action('woocommerce_single_product_summary', 'av_show_product_sales', 6);
function av_show_product_sales() {
global $product;
if (!($product instanceof WC_Product)) {
return;
}
$custom_message = get_post_meta($product->get_id(), '_sales_text_last_month', true);
if (!empty($custom_message)) {
printf('<p class="product-sales-count">%s</p>', esc_html($custom_message));
}
}
Again, you can refer to this documentation on how to add or update custom fields: https://woocommerce.com/document/custom-product-fields/
Best regards,
Ismael
I have a problem with my site on the checkout page it is displaying 2 different card fields.
Once in normal text field formats then 2nd in the official stripe box that loads.
I only should have the 2nd field and not the additional fields below the address. It is confusing customers understandably.
I have tried disabling pugins and tested with another theme and the problem still persists. I can send login details if you need them.
Hi,
We tried adding the custom field, but the site is not loading on our end anymore. Are you working on it? To learn more about how to add custom fields, please check this link.
// https://woocommerce.com/document/custom-product-fields/
Best regards,
Ismael
Hi Ismael ,
I followed the step of added custom product fields https://woocommerce.com/document/custom-product-fields/ and display it with https://developer.woocommerce.com/docs/displaying-custom-fields-in-your-theme-or-site/?_gl=1*1hrrkjn*_ga*NjI0MTU1ODk1LjE3MzU1NTE0OTg.*_ga_98K30SHWB2*MTczNTU1MTQ5Ny4xLjEuMTczNTU1MTUyMC4wLjAuMA..
Nothing appear on my web page ?
I used this product to make a test
Could you check it please ?
Hi,
Thank you for the info.
Would you mind providing a link to the plugin page? You may need to contact the plugin author for additional assistance on displaying the EAN info on the frontend. For more details on adding custom fields to products, please refer to this documentation: https://woocommerce.com/document/custom-product-fields/
Best regards,
Ismael
Hi,
Thank you for the update.
We updated the filter to include the post meta “header_transparency” with the value “header_transparent header_hidden”.
function ava_update_custom_fields_for_post_type() {
$post_type = 'your_post_type';
$posts = get_posts(array(
'post_type' => $post_type,
'posts_per_page' => -1,
'post_status' => 'any',
'fields' => 'ids',
));
if (!empty($posts)) {
foreach ($posts as $post_id) {
update_post_meta($post_id, '_aviaLayoutBuilder_active', 'active');
update_post_meta($post_id, '_aviaLayoutBuilderCleanData', '[av_custom_layout link=\'alb_custom_layout,653\' av_uid=\'av-m3u7m8lu\' sc_version=\'1.0\']');
update_post_meta($post_id, '_avia_builder_shortcode_tree', 'a:1:{i:0;a:3:{s:3:"tag";s:16:"av_custom_layout";s:7:"content";a:0:{}s:5:"index";i:0;}}');
update_post_meta($post_id, '_avia_sc_parser_state', 'disabled');
update_post_meta($post_id, '_av_alb_posts_elements_state', 'a:1:{s:16:"av_custom_layout";b:1;}');
update_post_meta($post_id, '_av_el_mgr_version', '1.0');
update_post_meta($post_id, 'header_transparency', 'header_transparent header_hidden');
}
}
}
add_action('init', 'ava_update_custom_fields_for_post_type');
Please make sure to create a backup of your site before proceeding.
Best regards,
Ismael