-
Search Results
-
Topic: Disable tooltip on gallery
Hello, I need to disable tool tips on the gallery element across the entire site.
I have a custom shortcode:
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly if ( ! class_exists( 'avia_sc_portfolio_kacheln' ) ) { class avia_sc_portfolio_kacheln extends aviaShortcodeTemplate { /** * Create the config array for the shortcode button */ function shortcode_insert_button() { $this->config['version'] = '1.0'; $this->config['self_closing'] = 'no'; $this->config['base_element'] = 'yes'; $this->config['name'] = 'Portfolio Kachel'; $this->config['tab'] = 'wuk Elements'; $this->config['icon'] = AviaBuilder::$path['imagesURL'] . 'sc-image.png'; $this->config['order'] = 1; $this->config['target'] = 'avia-target-insert'; $this->config['shortcode'] = 'av_portfoliokachel'; // $this->config['modal_data'] = array( 'modal_class' => 'mediumscreen' ); $this->config['tooltip'] = __( 'Inserts an image of your choice', 'avia_framework' ); $this->config['preview'] = 1; $this->config['disabling_allowed'] = true; $this->config['id_name'] = 'id'; $this->config['id_show'] = 'yes'; } function popup_elements() { $template_url = get_stylesheet_directory_uri(); $this->elements = array( array( 'type' => 'tab_container', 'nodescription' => true ), array( 'type' => 'tab', 'name' => __( 'Kachel', 'avia_framework' ), 'nodescription' => true ), array( 'type' => 'toggle_container', 'nodescription' => true ), array( "name" => __("Choose Image",'avia_framework' ), "desc" => __("Either upload a new, or choose an existing image from your media library",'avia_framework' ), "id" => "bild", "type" => "image", "title" => __("Insert Image",'avia_framework' ), "button" => __("Insert",'avia_framework' ), "std" => "", ), array( "name" => __("Title", 'avia_framework' ), "id" => "title", "std" => "", "type" => "input" ), array( "name" => __("Text", 'avia_framework' ), "id" => "text", "std" => "", "type" => "textarea" ), array( "name" => __("Button Text", 'avia_framework' ), "id" => "button_text", "std" => "", "type" => "input" ), array( 'name' => __( 'Image Link?', 'avia_framework' ), 'desc' => __( 'Where should your image link to?', 'avia_framework' ), 'id' => 'link', 'type' => 'linkpicker', 'fetchTMPL' => true, 'std' => '', 'lockable' => true, 'subtype' => array( __( 'No Link', 'avia_framework' ) => '', __( 'Lightbox', 'avia_framework' ) => 'lightbox', __( 'Set Manually', 'avia_framework' ) => 'manually', __( 'Single Entry', 'avia_framework' ) => 'single', __( 'Taxonomy Overview Page', 'avia_framework' ) => 'taxonomy', ) ), array( 'name' => __( 'Open new tab/window', 'avia_framework' ), 'desc' => __( 'Do you want to open the link url in a new tab/window?', 'avia_framework' ), 'id' => 'target', 'type' => 'select', 'std' => '', 'lockable' => true, 'required' => array( 'link', 'not_empty_and', 'lightbox' ), 'subtype' => AviaHtmlHelper::linking_options() ), array( 'type' => 'toggle_container_close', 'nodescription' => true ), array( 'type' => 'tab_close', 'nodescription' => true ), array( 'type' => 'tab', 'name' => __( 'Advanced', 'avia_framework' ), 'nodescription' => true ), array( 'type' => 'toggle_container', 'nodescription' => true ), array( 'type' => 'template', 'template_id' => 'screen_options_toggle', 'lockable' => true ), array( 'type' => 'template', 'template_id' => 'developer_options_toggle', 'args' => array( 'sc' => $this ) ), array( 'type' => 'toggle_container_close', 'nodescription' => true ), array( 'type' => 'tab_close', 'nodescription' => true ), array( 'type' => 'template', 'template_id' => 'element_template_selection_tab', 'args' => array( 'sc' => $this ) ), array( 'type' => 'tab_container_close', 'nodescription' => true ), array( 'id' => 'av_element_hidden_in_editor', 'type' => 'hidden', 'std' => '0' ) ); } /** * Editor Element - this function defines the visual appearance of an element on the AviaBuilder Canvas * Most common usage is to define some markup in the $params['innerHtml'] which is then inserted into the drag and drop container * Less often used: $params['data'] to add data attributes, $params['class'] to modify the className * * * @param array $params this array holds the default values for $content and $args. * @return $params the return array usually holds an innerHtml key that holds item specific markup. */ function editor_element( $params ) { extract( $params['args'] ); global $KACHELINDEX; $KACHELINDEX++; if (strstr($link,"manually,")) { $url = str_replace("manually,","",$link); } elseif (strstr($link,",")) { $tmp = explode(",",$link); $url = get_the_permalink($tmp[1]); } $out = '<div class="portfolio_kacheln sameheight"'.((empty($button_text) && !empty($link)) ? ' onclick="location.href='.$url.'"' : '').'> <div class="bg2">'.str_pad($KACHELINDEX, 2, "0", STR_PAD_LEFT).'</div> <div class="pic" style="">'. '<img src="'.$bild.'" />'. '<h3>'.$title.'</h3>'. '</div>'. (!empty($text) ? '<p>'.$text.'</p>' : ''). ((!empty($link) && !empty($button_text)) ? '<p class="action"><a href="'.$url.'" class="button">'.$button_text.'</a></p>' : ''). '</div>'; $params['innerHtml'] = $out; return $params; } /** * Frontend Shortcode Handler * * @param array $atts array of attributes * @param string $content text within enclosing form of shortcode element * @param string $shortcodename the shortcode found, when == callback name * @return string $output returns the modified html string */ function shortcode_handler( $atts, $content = '', $shortcodename = '', $meta = '' ) { extract( $atts ); global $KACHELINDEX; $KACHELINDEX++; if (strstr($link,"manually,")) { $url = str_replace("manually,","",$link); } elseif (strstr($link,",")) { $tmp = explode(",",$link); $url = get_the_permalink($tmp[1]); } $out = '<div class="portfolio_kacheln sameheight"'.((empty($button_text) && !empty($link)) ? ' onclick="'.($target == '' ? 'location.href='.$url.'"' : 'window.open(\''.$url.'\', \'_blank\');') : '').'> <div class="bg2">'.str_pad($KACHELINDEX, 2, "0", STR_PAD_LEFT).'</div> <div class="pic" style="">'. '<img src="'.$bild.'" />'. '<h3>'.$title.'</h3>'. '</div>'. (!empty($text) ? '<p>'.$text.'</p>' : ''). ((!empty($link) && !empty($button_text)) ? '<p class="action"><a'.($target != '' ? ' target="'.$target.'"' : '').' href="'.$url.'" class="button">'.$button_text.'</a></p>' : ''). '</div>'; return $out; } } }taht generates a shortcode like:
[av_portfoliokachel bild='https://xexadeti.cyon.site/wp-content/uploads/2025/08/sta-schweisstechnische-ausbildung-mag-schweissen.jpg' attachment='277' attachment_size='full' title='MAG' text='(135 - Metall-Aktivgas-Schweissen) Unverändert: [av_portfoliokachel bild='https://xexadeti.cyon.site/wp-content/uploads/2025/08/sta-schweisstechnische-ausbildung-mag-schweissen.jpg' attachment='277' attachment_size='full' title='MAG' text='(135 - Metall-Aktivgas-Schweissen) Gelöscht: MAG – das Arbeitstier unter den Schweissverfahren! Wir zeigen dir, wie’s richtig geht!' button_text='Infos zu MAG' link='portfolio_entries,5' target='' id='' custom_class='' template_class='' av_element_hidden_in_editor='0' av_uid='av-mebf8h83' sc_version='1.0' admin_preview_bg=''][/av_portfoliokachel]everything working fine, except oine thing, the ‘ Character.
array( "name" => __("Text", 'avia_framework' ), "id" => "text", "std" => "", "type" => "textarea" ),If I enter a ‘ char in this “Text” field, it doesnt get escaped as it should
as example: text=’test’s’ will be the endresult and not text=’test\’s’. Is there a hook or filter where I can “correctly apply escaping to a field?Strangly, I did setup the page and that did work. I did update to latest enfold version and now, that is not working anymore. Is that a new bug that the encoding is not correctly working?
It dows work, when changing the field name from “text” to “content”. But what, if I want more than 1 “content” field?
Normal textarea should equallless its name escaped correctly in enfold…Thanks for aour advice or fix.
Topic: Hotspot-Image mobile
Hi @enfold!
I would like to have a different view for hotspot-images on mobile devices. For my mobil-view I would like to hide the text complet and use the link only.
Thanks for your help!
Regards
Michael FI found a css (from 2015) but that does not seem to work anymore.
Here it is:
@media only screen and (max-width: 768px) {
.responsive .av-hotspot-image-container.av-hotspot-blank.av-mobile-fallback-active .av-image-hotspot_inner {
display: none;
}}@media only screen and (max-width: 768px) {
.av-hotspot-fallback-tooltip-count {
display: none !important;
}
.av-hotspot-fallback-tooltip-inner {
margin-left: 0 !important;
}}Dear experts
as many others I have to enable much better accessibility and WAVEed the homepage. It showed an empty link error for the following:
<div class=”avia-privacy-reload-tooltip-link-container”>
ARIA hiddenEmpty link<h2>Lade die Seite neu</h2><p>Damit deine Cookie-Einstellungen umgesetzt werden, müssen wir die Seite neu laden.</p></div>” style=”text-decoration: underline;”>
</div>I have seen another thread, where you proposed to create a feature request in github for the same. Can you provide infos whether this had been done already? Can I vote for this feature to support getting it on the roadmap?
best regards
AnjaWhen using the Google Map module, in recent updates to the theme, the Tooltip box feature is sized different and doesn’t look right. I believe it is tied to the icon using the SVG now instead of the old icon sets you had. I have this issue on several sites. What is a good set of code that could adjust the size of the tooltip box to make it look like it use to look. Thanks.
Hallo,
ich erstelle gerade eine barrierefreie Website.
Ich habe einige WCAG-Fehlermeldung:Kontaktformular
1. fieldset hat keine legend
2. Es gibt ein verstecktes leeres Input field ohne form label<p class="hidden"> Missing form label<input type="text" name="avia_6_1" class="hidden " id="avia_6_1" value=""> </p>3. Team Member Element Alt-text –
!!!Redundant alternative text – The alternative text for an image is the same as nearby or adjacent text.!!!
Why not use the nomal Alt from the picture?4. Consent Banner:
Errors Empty link A link contains no text.<a class="avia-privacy-reload-tooltip-link" aria-hidden="true" href="#" rel="nofollow" data-avia-privacy-reload-tooltip="<div class="av-cookie-auto-reload-container"><h2>Lade die Seite neu</h2><p>Damit deine Cookie-Einstellungen umgesetzt werden, müssen wir die Seite neu laden.</p></div>"></a>Gibt es dafür eine Lösung oder demnächst ein Update?
- This topic was modified 6 months, 2 weeks ago by .
- This topic was modified 6 months, 2 weeks ago by .
- This topic was modified 6 months, 2 weeks ago by .
- This topic was modified 6 months, 2 weeks ago by .
- This topic was modified 6 months, 2 weeks ago by .
- This topic was modified 6 months, 2 weeks ago by .
Compared to the 2025 theme, our product pages when you edit them in WP Admin take twice as long to load using the Enfold theme. I believe this is at least partially due to the many scripts that are called. We use ALB on pages and posts but not our shop and product pages. What would be the most effective way to not load all of the bells and whistles of Enfold to optimize the product editor page? If we dequeue the scripts we see errors even though the ALB has been disabled.
For example, here are all of the Enfold related scripts that get loaded on the product editor even with the ALB disabled.
// Dequeue Enfold styles/scripts
wp_dequeue_style('avia-style');
wp_dequeue_style('avia-custom');
wp_dequeue_style('avia-popup');
wp_dequeue_script('avia-default');
wp_dequeue_script('avia-shortcodes');
wp_dequeue_script('avia-modal');
wp_dequeue_script('avia_mega_menu');
wp_dequeue_script('avia_sidebar');
wp_dequeue_script('avia_advanced_form_elements');
wp_dequeue_script('avia_options_pages');
wp_dequeue_script('avia_media');
wp_dequeue_script('avia_media_wp35');
wp_dequeue_script('avia_colorpicker');
wp_dequeue_script('avia_media_advanced');
wp_dequeue_script('ls-global');
wp_dequeue_script('ls-wp-editor');
wp_dequeue_script('ls-addon-404');
wp_dequeue_script('ls-addon-maintenance');
wp_dequeue_script('avia-dotlottie-script');
wp_dequeue_script('avia_builder_js');
wp_dequeue_script('avia_element_js');
wp_dequeue_script('avia_template_save_js');
wp_dequeue_script('avia_modal_js');
wp_dequeue_script('avia_custom_elements_js');
wp_dequeue_script('avia_modal_dynamic_js');
wp_dequeue_script('avia_history_js');
wp_dequeue_script('avia_tooltip_js');
wp_dequeue_script('avia_tab_section_js');
wp_dequeue_script('avia_table_js');
wp_dequeue_script('avia_tab_toggle_js');
wp_dequeue_script('avia_media_js');
wp_dequeue_script('avia_gutenberg_script');
wp_dequeue_script('avia_google_maps_api_script');
wp_dequeue_script('avia-google-maps-api');
wp_dequeue_script('avia_google_recaptcha_front_script');
wp_dequeue_script('avia_admin_notices_script');
wp_dequeue_script('layerslider-utils');
wp_dequeue_script('kreatura-modal');
wp_dequeue_script('layerslider-slider-library');
We disabled the ALB button with the avf_alb_supported_post_types hook
add_filter(‘avf_alb_supported_post_types’, function ($supported_post_types) {
return array_diff($supported_post_types, [‘product’]);
}, 5);



