sebastianB-7
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
| Status | Topic | Supporter | Voix | Publications | Nouveauté |
|---|---|---|---|---|---|
|
Divi 5 and Toolset Legacy – Compatibility Toolset Blocks
1
2
Commencé par : sebastianB-7 in: Toolset Professional Support |
|
1 | 19 | Il y a 5 months, 3 weeks | |
|
Shortcodes for CPF in Conditional not working Divi Theme Builder
Commencé par : sebastianB-7
in: Toolset Professional Support
Problem: The customer was attempting to use a shortcode to display a custom field (CPF) conditionally within the Divi Theme Builder’s tab module. While the shortcode functioned correctly outside the Theme Builder, it only displayed the raw shortcode within the builder, failing to render the expected content. The issue appeared to stem from Divi’s Theme Builder potentially overwriting post variables required by shortcodes. Solution: A workaround was suggested due to the limitations in Divi’s handling of shortcodes within the Theme Builder. A custom PHP function was created and added to the theme's functions.php file to handle the conditional logic and output the custom field directly:
function display_reisekosten_func() {
if (get_post_meta(get_the_ID(), 'wpcf-reisekosten-pauschal-individuell', true) == '1') {
return '<h2>Reisekosten</h2>' . do_shortcode('[types field="reisekosten-min-km"][/types]');
}
}
add_shortcode('display_reisekosten', 'display_reisekosten_func');
The shortcode [display_reisekosten] could then be used within a Divi Code Module to render the content conditionally. While not a guaranteed solution, this approach provided a viable alternative until Divi resolves the underlying issue. |
|
3 | 7 | Il y a 1 year, 7 months | |
|
Custom Post Field – Type Image – .avif-Data
Commencé par : sebastianB-7
in: Toolset Professional Support
Problem: The customer created a custom post field for images but was unable to upload AVIF format files to the field, despite AVIF images being supported elsewhere in their WordPress media library. They requested a solution to enable AVIF uploads in Toolset's custom image field. Solution: A code snippet was provided to extend the valid image file types for Toolset, allowing AVIF images. The customer added this code to their theme’s functions.php file or within Toolset > Settings >
function allow_avif_in_toolset( $valid_extensions ) {
// Add AVIF to the list of valid extensions
$valid_extensions[] = 'avif';
return $valid_extensions;
}
add_filter( 'toolset_valid_image_extentions', 'allow_avif_in_toolset' );
This code successfully enabled the AVIF format in the custom image field, allowing the customer to upload AVIF images as intended. |
|
2 | 3 | Il y a 1 year, 7 months | |
|
WPML links of translated pages not showing invalid_tags_codes_0
Commencé par : sebastianB-7 in: Toolset Professional Support |
|
2 | 2 | Il y a 2 years | |
|
Display Age from Date of birth with WPML
Commencé par : sebastianB-7 in: Toolset Professional Support |
|
2 | 4 | Il y a 2 years | |
|
Map marker size for better quality map marker
Commencé par : sebastianB-7
in: Toolset Professional Support
Problem: var scaledSize = new google.maps.Size(32, 32); You could change the size value in the actual plugin file if needed, but since this part of code is not filterable, it is not possible to change it with a hook for example, you'd have to edit the file itself. ( please note that you'll need to keep track of this edit, as future plugin updates will overwrite any changes ) I also checked that PNG files are shown in the map with the same size they've been uploaded, it is necessary to work with the image and upload the final version to use it. |
|
2 | 8 | Il y a 2 years, 2 months | |
|
Change map marker on click and hover over listing items
Commencé par : sebastianB-7 in: Toolset Professional Support |
|
2 | 10 | Il y a 2 years, 3 months | |
|
Sort distance filter results from closest to most far away and output distance
Commencé par : sebastianB-7 in: Toolset Professional Support |
|
2 | 7 | Il y a 2 years, 4 months | |
|
legacy editor filter post distance using shortcode attribute
Commencé par : sebastianB-7 in: Toolset Professional Support |
|
2 | 7 | Il y a 2 years, 4 months |