-
AuthorSearch Results
-
September 18, 2020 at 9:06 pm #1246936
Ok, I was able to resolve the issue by overriding the set_default_values function in the shortcode class.
I added the function from enfold/config-templatebuilder/avia-template-builder/php/shortcode-template.class.php/** * helper function executed by aviaShortcodeTemplate::popup_editor that extracts the attributes from the shortcode and then merges the values into the options array * * @param array $elements * @return array $elements */ public function set_default_values($elements) { $shortcode = !empty($_POST['params']['shortcode']) ? $_POST['params']['shortcode'] : ''; if($shortcode) { //will extract the shortcode into $_POST['extracted_shortcode'] $this->builder->text_to_interface($shortcode); //the main shortcode (which is always the last array item) will be stored in $extracted_shortcode $extracted_shortcode = end($_POST['extracted_shortcode']); //if the $_POST['extracted_shortcode'] has more than one items we are dealing with nested shortcodes $multi_content = count($_POST['extracted_shortcode']); //proceed if the main shortcode has either arguments or content if(!empty($extracted_shortcode['attr']) || !empty($extracted_shortcode['content'])) { if(empty($extracted_shortcode['attr'])) $extracted_shortcode['attr'] = array(); if(isset($extracted_shortcode['content'])) $extracted_shortcode['attr']['content'] = $extracted_shortcode['content']; //iterate over each array item and check if we already got a value foreach($elements as &$element) { if(isset($element['id']) && isset($extracted_shortcode['attr'][$element['id']])) { //make sure that each element of the popup can access the other values of the shortcode. necessary for hidden elements $element['shortcode_data'] = $extracted_shortcode['attr']; //if the item has subelements the std value has to be an array if(isset($element['subelements'])) { $element['std'] = array(); for ($i = 0; $i < $multi_content - 1; $i++) { $element['std'][$i] = $_POST['extracted_shortcode'][$i]['attr']; $element['std'][$i]['content'] = $_POST['extracted_shortcode'][$i]['content']; } } else { $element['std'] = stripslashes($extracted_shortcode['attr'][$element['id']]); } } else { if($element['type'] == "checkbox") $element['std'] = ''; } } } } return $elements; }I modified it to be as follows:
/** * helper function executed by aviaShortcodeTemplate::popup_editor that extracts the attributes from the shortcode and then merges the values into the options array * * @param array $elements * @return array $elements */ public function set_default_values($elements) { $shortcode = !empty($_POST['params']['shortcode']) ? $_POST['params']['shortcode'] : ''; if($shortcode) { //will extract the shortcode into $_POST['extracted_shortcode'] $this->builder->text_to_interface($shortcode); //the main shortcode (which is always the last array item) will be stored in $extracted_shortcode $extracted_shortcode = end($_POST['extracted_shortcode']); //if the $_POST['extracted_shortcode'] has more than one items we are dealing with nested shortcodes $multi_content = count($_POST['extracted_shortcode']); //proceed if the main shortcode has either arguments or content if(!empty($extracted_shortcode['attr']) || !empty($extracted_shortcode['content'])) { if(empty($extracted_shortcode['attr'])) $extracted_shortcode['attr'] = array(); if(isset($extracted_shortcode['content'])) $extracted_shortcode['attr']['content'] = $extracted_shortcode['content']; //iterate over each array item and check if we already got a value foreach($elements as &$element) { if(isset($element['id']) && isset($extracted_shortcode['attr'][$element['id']])) { //make sure that each element of the popup can access the other values of the shortcode. necessary for hidden elements $element['shortcode_data'] = $extracted_shortcode['attr']; //if the item has subelements the std value has to be an array if(isset($element['subelements'])) { $element['std'] = array(); for ($i = 0; $i < $multi_content - 1; $i++) { $element['std'][$i] = $_POST['extracted_shortcode'][$i]['attr']; $element['std'][$i]['content'] = $_POST['extracted_shortcode'][$i]['content']; } } else { $element['std'] = html_entity_decode(stripslashes($extracted_shortcode['attr'][$element['id']])); } } else { if($element['type'] == "checkbox") $element['std'] = ''; } } } } return $elements; }The difference is that I changed this:
$element['std'] = stripslashes($extracted_shortcode['attr'][$element['id']]);
to this:
$element['std'] = html_entity_decode(stripslashes($extracted_shortcode['attr'][$element['id']]));and included it in my shortcode element, which is finished below:
<?php /** * 2 Column Module * * Builds 2 column modules with image on one side and content on the other. */ if ( ! defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly if ( ! class_exists( 'avia_sc_two_column_module' ) ) { class avia_sc_two_column_module extends aviaShortcodeTemplate { /** * Create the config array for the shortcode button */ function shortcode_insert_button() { $this->config['version'] = '1.0'; $this->config['self_closing'] = 'yes'; $this->config['name'] = __( '2 Column Modules', 'avia_framework' ); $this->config['tab'] = __( 'Content Elements', 'avia_framework' ); $this->config['icon'] = AviaBuilder::$path['imagesURL'] . 'sc-blog.png'; $this->config['order'] = 40; $this->config['target'] = 'avia-target-insert'; $this->config['shortcode'] = 'av_two_column_module'; $this->config['tooltip'] = __( 'Builds 2 Column Modules ', 'avia_framework' ); $this->config['preview'] = false; $this->config['id_name'] = 'id'; $this->config['id_show'] = 'yes'; $this->config['alb_desc_id'] = 'alb_description'; } function admin_assets() { $ver = AviaBuilder::VERSION; } function extra_assets() { wp_enqueue_style( 'two-column-module', get_stylesheet_directory_uri() . '/shortcodes/assets/twocolumnmodule.css', array( 'avia-layout' ), false ); } /** * helper function executed by aviaShortcodeTemplate::popup_editor that extracts the attributes from the shortcode and then merges the values into the options array * * @param array $elements * @return array $elements */ public function set_default_values($elements) { $shortcode = !empty($_POST['params']['shortcode']) ? $_POST['params']['shortcode'] : ''; if($shortcode) { //will extract the shortcode into $_POST['extracted_shortcode'] $this->builder->text_to_interface($shortcode); //the main shortcode (which is always the last array item) will be stored in $extracted_shortcode $extracted_shortcode = end($_POST['extracted_shortcode']); //if the $_POST['extracted_shortcode'] has more than one items we are dealing with nested shortcodes $multi_content = count($_POST['extracted_shortcode']); //proceed if the main shortcode has either arguments or content if(!empty($extracted_shortcode['attr']) || !empty($extracted_shortcode['content'])) { if(empty($extracted_shortcode['attr'])) $extracted_shortcode['attr'] = array(); if(isset($extracted_shortcode['content'])) $extracted_shortcode['attr']['content'] = $extracted_shortcode['content']; //iterate over each array item and check if we already got a value foreach($elements as &$element) { if(isset($element['id']) && isset($extracted_shortcode['attr'][$element['id']])) { //make sure that each element of the popup can access the other values of the shortcode. necessary for hidden elements $element['shortcode_data'] = $extracted_shortcode['attr']; //if the item has subelements the std value has to be an array if(isset($element['subelements'])) { $element['std'] = array(); for ($i = 0; $i < $multi_content - 1; $i++) { $element['std'][$i] = $_POST['extracted_shortcode'][$i]['attr']; $element['std'][$i]['content'] = $_POST['extracted_shortcode'][$i]['content']; } } else { $element['std'] = html_entity_decode(stripslashes($extracted_shortcode['attr'][$element['id']])); } } else { if($element['type'] == "checkbox") $element['std'] = ''; } } } } return $elements; } /** * Popup Elements * * If this function is defined in a child class the element automatically gets an edit button, that, when pressed * opens a modal window that allows to edit the element properties * * @return void */ function popup_elements() { $this->elements = array( array( 'type' => 'tab_container', 'nodescription' => true ), array( 'type' => 'tab', 'name' => __( 'Content', 'avia_framework' ), 'nodescription' => true ), array( 'type' => 'template', 'template_id' => 'toggle_container', 'templates_include' => array( $this->popup_key( 'selected_project' ) ), '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' ), 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' => 'tab_container_close', 'nodescription' => true ) ); } /** * Create and register templates for easier maintainance * * @since 4.6.4 */ protected function register_dynamic_templates() { /** * Content Tab * =========== */ $c = array( array( 'name' => __( 'Module Content', 'avia_framework' ), 'desc' => __( 'What is the content for this module?', 'avia_framework' ), 'id' => 'module_content', 'type' => 'tiny_mce', 'std' => '', ), array( 'name' => __( 'Module Image', 'avia_framework' ), 'desc' => __( 'What is image for this module? (Select Large if available, Full Size if Large is not available.)', 'avia_framework' ), 'id' => 'module_image', 'type' => 'image', 'title' => __( 'Insert Image', 'avia_framework' ), 'button' => __( 'Insert', 'avia_framework' ), 'std' => AviaBuilder::$path['imagesURL'] . 'placeholder.jpg' ), array( 'name' => __( 'Image Side?', 'avia_framework' ), 'desc' => __( 'What side of the module will the image be on?', 'avia_framework' ), 'id' => 'image_side', 'type' => 'select', 'std' => 'left', 'subtype' => array( __( 'Left', 'avia_framework' ) => 'left', __( 'Right', 'avia_framework' ) => 'right' ) ) ); $template = array( array( 'type' => 'template', 'template_id' => 'toggle', 'title' => __( '2 Column Module', 'avia_framework' ), 'content' => $c ), ); AviaPopupTemplates()->register_dynamic_template( $this->popup_key( 'selected_project' ), $template ); } /** * 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 ) { $params = parent::editor_element( $params ); $params['content'] = null; //remove to allow content elements 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 = '' ) { global $avia_config, $more; extract( $atts ); $cards = []; ob_start(); //start buffering the output instead of echoing it $img = wp_get_attachment_image( $attachment, 'large' ); echo $this->render_module(ShortcodeHelper::avia_apply_autop( ShortcodeHelper::avia_remove_autop( $module_content ) ), $image_side, $module_image, $img); $output = ob_get_clean(); avia_set_layout_array(); return $output; } function render_module($content,$image_side,$module_image, $image) { $html = ''; $html .= '<div class="two-column-module '.$image_side.'-side">'; $html .= '<div class="image-container"><div class="module-image" style="background:url(\''.$module_image.'\'); background-repeat: no-repeat; background-position: center '.$image_side.'; background-size: cover"></div></div>'; $html .= '<div class="content-container">'.$content.'</div>'; return $html .= '</div>'; } } }It also works properly with multiple tiny_mce boxes, too.
Note – this is only a problem when you create a custom shortcode element and give it an id of something other than ‘content’.September 18, 2020 at 5:55 pm #1246879In reply to: Google Chrome strange icon grid
Hi Victoria, I changed it to tooltip. Then it’s okay. But I want the content to appear in flipbox. I just now did. And then it’s not okay. Also in Firefox, in safari it is okay. I hope you can help.
September 18, 2020 at 4:53 pm #1246852In reply to: Hide Google Map Tooltips
When you click on a flag the tooltip shows up. I just want the flag to show and temporarily hide the tooltip function. Thanks!
Hey SandraSquires,
You can do that with the help of a plugin like this one:
If you need further assistance please let us know.
Best regards,
VictoriaSeptember 17, 2020 at 1:41 pm #1246528Thank you! I decided on still using the hotspot image on mobile, but hide the tooltips list, since it took too much space.
Is there a way of aligning the hotspot image to the middle of the screen but keeping its size to 2/3 of the screen? I don’t want it to take up the entire page, but if I change the padding, the image size is also decreased.
September 16, 2020 at 7:34 am #1246183In reply to: Icon grid – remove hyperlinks
Hi,
Thanks for the clarification. Please try this in Quick CSS:
.avia-icongrid-tooltip li { cursor: auto; }Best regards,
RikardSeptember 15, 2020 at 6:59 pm #1246104Topic: Hide Google Map Tooltips
in forum Enfoldannameis
ParticipantHi – I have a Google map with about 200 pins and tooltips. We are wanting to temporarily hide the tooltips and just leave the markers on the map. Would you be able to help me do this?
Thanks!
ANnaSeptember 13, 2020 at 1:59 pm #1245506In reply to: Lightbox Issue
Hey amyteslin,
Sorry for the late reply and thanks for the link to your site. When your hot spots are clicked the built-in lightbox and the Lity lightbox are both opened. The Lity lightbox seems to be a part of the cq-hotspot plugin.
So one option would be to disable the built-in lightbox at: Enfold Theme Options > Lightbox Modal Window, if that doesn’t help because you need this lightbox elsewhere you can try this script that will disable the Lity lightbox on the one page on click.
Try adding this code to the end of your functions.php file in Appearance > Editor:function custom_script(){ ?> <script> (function($){ $(document).ready(function() { $("#top.page-id-5774 .hotspot-container a.cq-hotspot-tooltip").click(function() { setTimeout(function(){ $(".lity.lity-opened").css({ 'display': 'none' }); }, 300); }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_script');Best regards,
MikeSeptember 11, 2020 at 2:09 pm #1245148In reply to: Hotspots not working properly
Hi,
The list is created as a replacement for the tooltip because hover state doesn’t exist on touch devices. Users can still access the links by clicking on the actual hotspot but since the styling is set to blank and not numbered hotspots, users might not know which hotspot is which. You may need to set the Styling > Hotspot Styling back to “Numbered Hotspots”.
We could also use this css code to display the numbers back only on mobile view.
@media only screen and (max-width: 767px) { .av-hotspot-container .av-image-hotspot_inner:hover, .av-hotspot-container .av-image-hotspot_inner { color: #ffffff; } }Thank you for your patience.
Best regards,
IsmaelSeptember 9, 2020 at 3:57 pm #1244652In reply to: Thrive Architect not loading in Enfold
Hi PeterSocialiq,
Thanks for providing us the staging site and admin access.
First, I have added a child theme so I can put the tweak there so it won’t get lost during the theme update.
Here’s where I have downloaded it and you can find instructions: https://kriesi.at/documentation/enfold/child-theme/
In the functions.php of the child theme, I added this code:function enfold_dequeue_scripts($screen) { if ('widgets.php' === $screen) { wp_dequeue_script( 'avia_tooltip_js' ); wp_deregister_script( 'avia_tooltip_js' ); wp_dequeue_script( 'avia_history_js' ); wp_deregister_script( 'avia_history_js' ); wp_dequeue_script( 'avia_modal_js' ); wp_deregister_script( 'avia_modal_js' ); wp_dequeue_script( 'avia_element_js' ); wp_deregister_script( 'avia_element_js' ); wp_dequeue_script( 'avia_builder_js' ); wp_deregister_script( 'avia_builder_js' ); } } add_action( 'admin_enqueue_scripts', 'enfold_dequeue_scripts', 999 );
@brycebarbara Can you test the solution we provided?Best regards,
NikkoSeptember 9, 2020 at 6:17 am #1244553In reply to: Hotspots not working properly
Hi,
Looks like the hotspot element is working properly now — the tooltip shows up when hovering. However, you may need to increase the size of the image or create more space for it to accommodate that number of hotspots.
Best regards,
IsmaelSeptember 7, 2020 at 7:36 pm #1244087It’s not a plugin conflict. Also, when I tested on the other site, I tested this same module on another site.
Here’s the code that I have for the custom shortcode. If you use it, you should experience the same effect.
<?php /** * 2 Column Full-Width * * Builds 2 column modules with image on one side and content on the other. */ if ( ! defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly if ( ! class_exists( 'avia_sc_two_column_full_module' ) ) { class avia_sc_two_column_full_module extends aviaShortcodeTemplate { /** * Create the config array for the shortcode button */ function shortcode_insert_button() { $this->config['version'] = '1.0'; $this->config['self_closing'] = 'yes'; $this->config['name'] = __( '2 Column Full-Width Modules', 'avia_framework' ); $this->config['tab'] = __( 'Content Elements', 'avia_framework' ); $this->config['icon'] = AviaBuilder::$path['imagesURL'] . 'sc-blog.png'; $this->config['order'] = 40; $this->config['target'] = 'avia-target-insert'; $this->config['shortcode'] = 'av_two_column_full_module'; $this->config['tooltip'] = __( 'Builds 2 Column Full-Width Modules ', 'avia_framework' ); $this->config['preview'] = false; $this->config['id_name'] = 'id'; $this->config['id_show'] = 'yes'; $this->config['alb_desc_id'] = 'alb_description'; } function admin_assets() { $ver = AviaBuilder::VERSION; } function extra_assets() { $ver = AviaBuilder::VERSION; wp_enqueue_style( 'two-column-full-module', get_stylesheet_directory_uri() . '/shortcodes/assets/twocolumnfullmodule.css', array( 'avia-layout' ), false ); wp_enqueue_script( 'two-column-full-module-js', get_stylesheet_directory_uri() . '/shortcodes/assets/twocolumnfullmodule.js', array( 'jquery' ), $ver, true ); } /** * Popup Elements * * If this function is defined in a child class the element automatically gets an edit button, that, when pressed * opens a modal window that allows to edit the element properties * * @return void */ function popup_elements() { $this->elements = array( array( 'type' => 'tab_container', 'nodescription' => true ), array( 'type' => 'tab', 'name' => __( 'Content', 'avia_framework' ), 'nodescription' => true ), array( 'type' => 'template', 'template_id' => 'toggle_container', 'templates_include' => array( $this->popup_key( 'selected_project' ) ), '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' ), 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' => 'tab_container_close', 'nodescription' => true ) ); } /** * Create and register templates for easier maintainance * * @since 4.6.4 */ protected function register_dynamic_templates() { /** * Content Tab * =========== */ $c = array( array( 'name' => __( 'Module Headline Content', 'avia_framework' ), 'desc' => __( 'What is the upper headline content for this module?', 'avia_framework' ), 'id' => 'module_content', 'type' => 'tiny_mce', 'std' => '', ), array( 'name' => __( 'Module Body Content', 'avia_framework' ), 'desc' => __( 'What is the main body content for this module?', 'avia_framework' ), 'id' => 'module_body_content', 'type' => 'tiny_mce', 'std' => '', ), array( 'name' => __( 'Module Image', 'avia_framework' ), 'desc' => __( 'What is image for this module? (Select Large if available, Full Size if Large is not available.)', 'avia_framework' ), 'id' => 'module_image', 'type' => 'image', 'title' => __( 'Insert Image', 'avia_framework' ), 'button' => __( 'Insert', 'avia_framework' ), 'std' => AviaBuilder::$path['imagesURL'] . 'placeholder.jpg' ), array( 'name' => __( 'Show Pathway?', 'avia_framework' ), 'desc' => __( 'Do you want to show the pathway instead of an image?', 'avia_framework' ), 'id' => 'show_pathway', 'type' => 'select', 'std' => 'no', 'subtype' => array( __( 'No', 'avia_framework' ) => 'no', __( 'Yes', 'avia_framework' ) => 'yes' ) ), array( 'name' => __( 'Image Side?', 'avia_framework' ), 'desc' => __( 'What side of the module will the image be on?', 'avia_framework' ), 'id' => 'image_side', 'type' => 'select', 'std' => 'left', 'subtype' => array( __( 'Left', 'avia_framework' ) => 'left', __( 'Right', 'avia_framework' ) => 'right' ) ) ); $template = array( array( 'type' => 'template', 'template_id' => 'toggle', 'title' => __( '2 Column Module', 'avia_framework' ), 'content' => $c ), ); AviaPopupTemplates()->register_dynamic_template( $this->popup_key( 'selected_project' ), $template ); } /** * 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 ) { $params = parent::editor_element( $params ); $params['content'] = null; //remove to allow content elements 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 = '' ) { global $avia_config, $more; extract( $atts ); $cards = []; ob_start(); //start buffering the output instead of echoing it // $img = wp_get_attachment_image( $attachment, 'large' ); echo $this->render_module(ShortcodeHelper::avia_apply_autop( ShortcodeHelper::avia_remove_autop( $module_content ) ), ShortcodeHelper::avia_apply_autop( ShortcodeHelper::avia_remove_autop( $module_body_content ) ), $image_side, $module_image, $show_pathway); $output = ob_get_clean(); avia_set_layout_array(); return $output; } function render_module($content,$body_content,$image_side,$module_image, $show_pathway) { $html = ''; $extra_classes = ''; if ($module_image) { $extra_classes = 'show-image'; } if ($show_pathway == 'yes') { $extra_classes = 'show-pathway'; } $html .= '<div class="two-column-full-width-module '.$image_side.'-side '.$extra_classes.'">'; if ($module_image) { $html .= '<div class="image-container"><div class="image-container-too"><div class="module-image" style="background:url(\''.$module_image.'\'); background-repeat: no-repeat; background-position: center '.$image_side.'; background-size: cover"></div></div></div>'; } if ($show_pathway == 'yes') { $html .= '<div class="image-container"></div>'; } $html .= '<div class="module-container"><div class="content-container"><div class="headline-content">'.$content.'</div><div class="body-content">'.$body_content.'</div></div><p class="read-more"><span class="collapsed">Read More</span><span class="expanded">Read Less</span><i class="chevron"></i></p></div>'; return $html .= '</div>'; } } }You can see that I used the tiny_mce type twice, and have given it a custom id for each one.
In the default modules, I haven’t found any example where two tiny_mce elements were used in a single module, nor have I found any that used the tiny_mce element with an id of something other than ‘content’.
I believe it should be a fairly simple matter of adding a filter or something, but haven’t yet been able to determine what it should be.September 4, 2020 at 11:43 pm #1243462Hi,
Add this as well:
div.avia-tooltip.avia-tt { display: none !important; }Best regards,
Jordan ShannonSeptember 3, 2020 at 2:48 pm #1243111In reply to: Mouse over – Social Media Icons
Hi Videmi,
That tooltip is produced by the title tag (html/browser default).
If you want to change the title, you’ll need to modify avia_social_media_icons class which is defined in wp-content > themes > enfold > includes > helper-social-media.php:
Then the title part of line 167 in Enfold 4.6.7.3$html .= "<a {$blank} {$aria_label} href='" . esc_url( $icon['social_icon_link'] ) . "' " . av_icon_string( $icon['social_icon'], false ) . " title='{$display_name}'>";you can add some condition on top of it, to make it change title when it’s dribble.
I hope this helps.Best regards,
NikkoSeptember 3, 2020 at 10:54 am #1243055In reply to: Change alignment of Socials Share Buttons
Hi Yigit,
thank you, sorry, I didn’t get that before. The translation option in my profile wasn’t available until I changed the site language.
But it’s not possible to change the tooltip manually?Best regards, Haiko.
September 3, 2020 at 10:53 am #1243054Hi Jordan,
thank you, that works for the pulse.
The tooltip is still there though. Can you help me with some custom css to get rid of that too?Best regards, Haiko.
September 2, 2020 at 5:43 pm #1242875In reply to: Change alignment of Socials Share Buttons
Hi Yigit, thank you, but I prefer to work in an English environment. There’s no other way to translate those tooltips?
Best regards, Haiko.
September 2, 2020 at 3:38 pm #1242838Topic: Hide pulse and tooltip on image with hotspots on mobile
in forum Enfoldrhae
ParticipantHi,
is it possible to hide the tooltip and the pulse on an image with hotspots on mobile?
We would like to show the map with the dots, but since we’re using a lot of dots we don’t want to give the suggestion that they’re clickable.I found something about hiding the tooltip in the forum, but that didn’t work for me, maybe because we’re using the large tooltip?
Best regards, Haiko.
August 28, 2020 at 10:14 am #1241496Topic: Hotspots not working properly
in forum Enfoldemilconsor
ParticipantHi,
we’re using the hotspot shortcode on our site. Unfortunately it’s not working properly.
If you try to hover the hotspots they don’t react as expacted and don’t show the tooltips all the time.
It seems like the hover radius is not exactly on the hotspot.
The hover behavior is not as expected.
Pls check the site: https://bembe.dev10.econsor-programming.de/
You can finde the hotspot image near bottom of the page, where you see the greay map.Thanks in advance.
Kinde Reagrds,
SebastianAugust 26, 2020 at 10:08 pm #1241018Topic: Use line break in tooltip caption
in forum Enfoldtremblayly
ParticipantHi
Is there a way for force a lice break for the tooltip caption? I tried a <br /> and enter the new line text on the next line, but nothing works.
I have included website access credentials below because it’s not yet launched.Thanks
LyseAugust 26, 2020 at 12:58 pm #1240905In reply to: Next Previous Portfolio Items
Hi Ismael,
Thank you very much for your help, however I had already managed to solve the problem and it was exactly as you indicated and i would like to share it:// Função prev-next dos portfolios
add_shortcode( ‘prev’, ‘prev_shortcode’ );
add_shortcode( ‘next’, ‘next_shortcode’ );
function prev_shortcode() {
global $post;
$result = get_previous_post_link(
$format = ‘<div class=”nav-previous”>%link</div>’,
$link = ‘<span class=”av-icon-char” style=”” aria-hidden=”true” data-av_icon=”” data-av_iconfont=”entypo-fontello” data-avia-icon-tooltip=”%title”></span>’,
$in_same_term = true,
$excluded_terms = ”,
$taxonomy = ‘portfolio_entries’);
return $result;
}
function next_shortcode() {
global $post;
$result = get_next_post_link(
$format = ‘<div class=”nav-next”>%link</div>’,
$link = ‘<span class=”av-icon-char” style=”” aria-hidden=”true” data-av_icon=”” data-av_iconfont=”entypo-fontello” data-avia-icon-tooltip=”%title”></span>’,
$in_same_term = true,
$excluded_terms = ”,
$taxonomy = ‘portfolio_entries’);
return $result;
}Best regards!
August 25, 2020 at 5:57 pm #1240728In reply to: Change alignment of Socials Share Buttons
Hi Victoria,
Great, that works as I hoped, thanks a lot!
How can I change the language/text of the tooltip?Best regards, Haiko.
-
This reply was modified 5 years, 4 months ago by
rhae.
August 24, 2020 at 12:39 pm #1240338Topic: Change alignment of Socials Share Buttons
in forum Enfoldrhae
ParticipantHi, I’m using the code from your website below to style the Social Share Buttons.
They are aligned to the center by default, but I would like them aligned on the left.
How can I do that?Also, how can I change the language/text of the tooltip, and the transparency or placement?
It looks like the tooltip is transparant and is display below the text above it now, which I don’t want.Best regards, Haiko.
/*---------------------------------------- // CSS - Social Share style - 3 //--------------------------------------*/ /* Hide tool tip .av-social-sharing-box .avia-related-tooltip { display: none !important; } */ #top .av-share-box ul { border: none; } /* Remove icon border */ .av-share-box ul li { border-left-style: none; display: inline-block; vertical-align: middle!important; margin: 0 10px 0 0; } /* Icon style */ .av-share-box ul li a { width: 30px!important; height: 30px!important; border-radius: 5px!important; padding: 3px 0 !important; } /* Icon color */ .av-share-box ul li a:before { color:#1d1d1b; transition: all .5s ease; } /* Icon color on hover */ .av-share-box ul li a:hover:before { color:#1d1d1b; transition: all .35s ease; } /* Icon background color on hover */ .av-share-box ul li a { background: #f0f0f0; } .av-share-box ul li a:hover:before { color:#f4f7f9; }-
This topic was modified 5 years, 4 months ago by
rhae.
August 20, 2020 at 4:37 pm #1239576Topic: Next Previous Portfolio Items
in forum Enfoldgabreu
ParticipantHi everyone,
I have a custom function for the next and previous buttons that allows me to browse only with the same category on a specific page. This function is added to pages with a code block.
I would like to be able to use this function only for the portfolio, but it is not working.
I know that this is not related to Enfold, but if there is anyone who can help me, I will appreciate it.// Função prev-next dos portfolios
add_shortcode( ‘prev’, ‘prev_shortcode’ );
add_shortcode( ‘next’, ‘next_shortcode’ );
function prev_shortcode() {
global $post;
$result = get_previous_post_link( ‘<div class=”nav-previous”>%link</div>’, __(‘<span class=”av-icon-char” style=”” aria-hidden=”true” data-av_icon=”” data-av_iconfont=”entypo-fontello” data-avia-icon-tooltip=”Anterior”></span>’, ‘prev-next’ ), true );
return $result;
}
function next_shortcode() {
global $post;
$result = get_next_post_link( ‘<div class=”nav-next”>%link</div>’, __(‘<span class=”av-icon-char” style=”” aria-hidden=”true” data-av_icon=”” data-av_iconfont=”entypo-fontello” data-avia-icon-tooltip=”Seguinte”></span>’, ‘prev-next’ ), true );
return $result;
}Best regards
August 14, 2020 at 2:27 pm #1237830Sorry – I meant the title, but I still call everything showing in the little boxes a tooltip!
Yes – I would love a replacement or additional piece of code that would remove this title in the Masonry Gallaries.
Many thanks
SteveAugust 14, 2020 at 5:51 am #1237668Hi Steve,
Thanks for that. I can’t see a tooltip when hovering over the images in the link you posted, so maybe it is working? The code you posted is for removing the title attribute, and that is still there as far as I can see. If you need further help then please post admin login details in private as well.
Best regards,
RikardAugust 12, 2020 at 2:51 pm #1236998In reply to: Problems with ALB after update to WordPress 5.5
Uncaught TypeError: l.widget is not a function at load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,moxiejs,plupload,jquery-core,jquery-ui-tabs&ver=5.5:49 at load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,moxiejs,plupload,jquery-core,jquery-ui-tabs&ver=5.5:49 at load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,moxiejs,plupload,jquery-core,jquery-ui-tabs&ver=5.5:49 mouse.min.js?ver=1.11.4:11 Uncaught TypeError: o.widget is not a function at mouse.min.js?ver=1.11.4:11 at mouse.min.js?ver=1.11.4:11 at mouse.min.js?ver=1.11.4:11 sortable.min.js?ver=1.11.4:11 Uncaught TypeError: Cannot read property 'mouse' of undefined at sortable.min.js?ver=1.11.4:11 at sortable.min.js?ver=1.11.4:11 at sortable.min.js?ver=1.11.4:11 draggable.min.js?ver=1.11.4:11 Uncaught TypeError: Cannot read property 'mouse' of undefined at draggable.min.js?ver=1.11.4:11 at draggable.min.js?ver=1.11.4:11 at draggable.min.js?ver=1.11.4:11 droppable.min.js?ver=1.11.4:11 Uncaught TypeError: a.widget is not a function at droppable.min.js?ver=1.11.4:11 at droppable.min.js?ver=1.11.4:11 at droppable.min.js?ver=1.11.4:11 slider.min.js?ver=1.11.4:11 Uncaught TypeError: Cannot read property 'mouse' of undefined at slider.min.js?ver=1.11.4:11 at slider.min.js?ver=1.11.4:11 at slider.min.js?ver=1.11.4:11 iris.min.js?ver=1.0.7:5 Uncaught TypeError: a.widget is not a function at iris.min.js?ver=1.0.7:5 at iris.min.js?ver=1.0.7:5 color-picker.min.js?ver=5.5:2 Uncaught TypeError: i.widget is not a function at color-picker.min.js?ver=5.5:2 at color-picker.min.js?ver=5.5:2 menu.min.js?ver=1.11.4:11 Uncaught TypeError: o.widget is not a function at menu.min.js?ver=1.11.4:11 at menu.min.js?ver=1.11.4:11 at menu.min.js?ver=1.11.4:11 autocomplete.min.js?ver=1.11.4:11 Uncaught TypeError: u.widget is not a function at autocomplete.min.js?ver=1.11.4:11 at autocomplete.min.js?ver=1.11.4:11 at autocomplete.min.js?ver=1.11.4:11 avia-modal.js?ver=5.5-4.7.1.1:1538 Uncaught ReferenceError: Color is not defined at avia-modal.js?ver=5.5-4.7.1.1:1538 at avia-modal.js?ver=5.5-4.7.1.1:1703 tooltip.min.js?ver=1.11.4:11 Uncaught TypeError: d.widget is not a function at tooltip.min.js?ver=1.11.4:11 at tooltip.min.js?ver=1.11.4:11 at tooltip.min.js?ver=1.11.4:11 meta.min.js?ver=4.5.7:39 Uncaught TypeError: b(...).tabs is not a function at meta.min.js?ver=4.5.7:39 at HTMLDocument.<anonymous> (meta.min.js?ver=4.5.7:45) at i (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,moxiejs,plupload,jquery-core,jquery-ui-tabs&ver=5.5:34) at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,moxiejs,plupload,jquery-core,jquery-ui-tabs&ver=5.5:34) at Function.ready (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,moxiejs,plupload,jquery-core,jquery-ui-tabs&ver=5.5:34) at HTMLDocument.J (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,moxiejs,plupload,jquery-core,jquery-ui-tabs&ver=5.5:34) post.php?post=7717&action=edit:1 [DOM] Found 36 elements with non-unique id #_ajax_nonce: (More info: https://goo.gl/9p2vKq) <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> <input type="hidden" id="_ajax_nonce" name="_ajax_nonce" value="dbf07e1237"> post.php?post=7717&action=edit:1 [DOM] Found 2 elements with non-unique id #avia-save-nonce: (More info: https://goo.gl/9p2vKq) <input type="hidden" name="avia-save-nonce" id="avia-save-nonce" value="efc8d09cd7"> <input type="hidden" name="avia-save-nonce" id="avia-save-nonce" value="efc8d09cd7"> util.js:228 Google Maps JavaScript API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys bA.o @ util.js:228 (anonymous) @ js?v=3.41:144 Promise.then (async) (anonymous) @ js?v=3.41:144 wp-auth-check.min.js?ver=5.5:2 Uncaught TypeError: Cannot read property 'hasClass' of undefined at HTMLDocument.<anonymous> (wp-auth-check.min.js?ver=5.5:2) at HTMLDocument.dispatch (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,moxiejs,plupload,jquery-core,jquery-ui-tabs&ver=5.5:35) at HTMLDocument.r.handle (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,moxiejs,plupload,jquery-core,jquery-ui-tabs&ver=5.5:35) at Object.trigger (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,moxiejs,plupload,jquery-core,jquery-ui-tabs&ver=5.5:35) at HTMLDocument.<anonymous> (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,moxiejs,plupload,jquery-core,jquery-ui-tabs&ver=5.5:35) at Function.each (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,moxiejs,plupload,jquery-core,jquery-ui-tabs&ver=5.5:34) at n.fn.init.each (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,moxiejs,plupload,jquery-core,jquery-ui-tabs&ver=5.5:34) at n.fn.init.trigger (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,moxiejs,plupload,jquery-core,jquery-ui-tabs&ver=5.5:35) at Object.<anonymous> (heartbeat.min.js?ver=5.5:2) at i (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,moxiejs,plupload,jquery-core,jquery-ui-tabs&ver=5.5:34)August 11, 2020 at 3:02 pm #1236678Topic: Preventing TOOLTIP TEXTOVER in MASONRY PHOTO GALLERIES
in forum EnfoldSteve
ParticipantHi there guys,
Re: Preventing TOOLTIP TEXTOVER in MASONRY PHOTO GALLERIES
I have been using a snippet of code added to the theme functions.php, which has stopped working with the current update, and I’m just looking for an update on what to search for and/or replace it with.
The old search was for:
$(‘a, img’).removeAttr(‘title’);
And was then changed to:
$(‘a, img, .av-masonry-image-container’).removeAttr(‘title’);Do you have an updated method to achieve the same result please?
Many thanks, as ever.
Stevo :-)August 10, 2020 at 6:39 pm #1236478In reply to: Add search icon to footer navigation
you have set an important rule to all buttons
font-family : butler lightso entypo-fontello is lost.
try this :
#top #footer #searchsubmit { background-color: #464f5a !important; font-family: entypo-fontello !important; line-height: 0 !important; } .avia-search-tooltip { top: 100% !important; } #footer .avia-arrow-wrap .avia-arrow { background-color: #464f5a !important; } #searchform #s { border : none !important; }August 10, 2020 at 5:00 pm #1236461In reply to: Add search icon to footer navigation
Yes – it is the way you style your menu to have not the treestructure there but besides each other.
Look how you reach it in your css and try to substitute it by:
#footer .widget { padding: 0; margin: 30px 0 30px 0; overflow: visible; } #footer .widget_nav_menu ul { display: flex; flex-flow: row wrap; justify-content: center; } #footer .avia-search-tooltip { top: 100% !important; margin-left: -130px; }but i do not know why the ajax search proposals aren’t there – did you switch of that feature?
-
This reply was modified 5 years, 4 months ago by
-
AuthorSearch Results
-
Search Results
-
Topic: Hide Google Map Tooltips
Hi – I have a Google map with about 200 pins and tooltips. We are wanting to temporarily hide the tooltips and just leave the markers on the map. Would you be able to help me do this?
Thanks!
ANnaHi,
is it possible to hide the tooltip and the pulse on an image with hotspots on mobile?
We would like to show the map with the dots, but since we’re using a lot of dots we don’t want to give the suggestion that they’re clickable.I found something about hiding the tooltip in the forum, but that didn’t work for me, maybe because we’re using the large tooltip?
Best regards, Haiko.
Hi,
we’re using the hotspot shortcode on our site. Unfortunately it’s not working properly.
If you try to hover the hotspots they don’t react as expacted and don’t show the tooltips all the time.
It seems like the hover radius is not exactly on the hotspot.
The hover behavior is not as expected.
Pls check the site: https://bembe.dev10.econsor-programming.de/
You can finde the hotspot image near bottom of the page, where you see the greay map.Thanks in advance.
Kinde Reagrds,
SebastianHi
Is there a way for force a lice break for the tooltip caption? I tried a <br /> and enter the new line text on the next line, but nothing works.
I have included website access credentials below because it’s not yet launched.Thanks
LyseHi, I’m using the code from your website below to style the Social Share Buttons.
They are aligned to the center by default, but I would like them aligned on the left.
How can I do that?Also, how can I change the language/text of the tooltip, and the transparency or placement?
It looks like the tooltip is transparant and is display below the text above it now, which I don’t want.Best regards, Haiko.
/*---------------------------------------- // CSS - Social Share style - 3 //--------------------------------------*/ /* Hide tool tip .av-social-sharing-box .avia-related-tooltip { display: none !important; } */ #top .av-share-box ul { border: none; } /* Remove icon border */ .av-share-box ul li { border-left-style: none; display: inline-block; vertical-align: middle!important; margin: 0 10px 0 0; } /* Icon style */ .av-share-box ul li a { width: 30px!important; height: 30px!important; border-radius: 5px!important; padding: 3px 0 !important; } /* Icon color */ .av-share-box ul li a:before { color:#1d1d1b; transition: all .5s ease; } /* Icon color on hover */ .av-share-box ul li a:hover:before { color:#1d1d1b; transition: all .35s ease; } /* Icon background color on hover */ .av-share-box ul li a { background: #f0f0f0; } .av-share-box ul li a:hover:before { color:#f4f7f9; }Hi everyone,
I have a custom function for the next and previous buttons that allows me to browse only with the same category on a specific page. This function is added to pages with a code block.
I would like to be able to use this function only for the portfolio, but it is not working.
I know that this is not related to Enfold, but if there is anyone who can help me, I will appreciate it.// Função prev-next dos portfolios
add_shortcode( ‘prev’, ‘prev_shortcode’ );
add_shortcode( ‘next’, ‘next_shortcode’ );
function prev_shortcode() {
global $post;
$result = get_previous_post_link( ‘<div class=”nav-previous”>%link</div>’, __(‘<span class=”av-icon-char” style=”” aria-hidden=”true” data-av_icon=”” data-av_iconfont=”entypo-fontello” data-avia-icon-tooltip=”Anterior”></span>’, ‘prev-next’ ), true );
return $result;
}
function next_shortcode() {
global $post;
$result = get_next_post_link( ‘<div class=”nav-next”>%link</div>’, __(‘<span class=”av-icon-char” style=”” aria-hidden=”true” data-av_icon=”” data-av_iconfont=”entypo-fontello” data-avia-icon-tooltip=”Seguinte”></span>’, ‘prev-next’ ), true );
return $result;
}Best regards
Hi there guys,
Re: Preventing TOOLTIP TEXTOVER in MASONRY PHOTO GALLERIES
I have been using a snippet of code added to the theme functions.php, which has stopped working with the current update, and I’m just looking for an update on what to search for and/or replace it with.
The old search was for:
$(‘a, img’).removeAttr(‘title’);
And was then changed to:
$(‘a, img, .av-masonry-image-container’).removeAttr(‘title’);Do you have an updated method to achieve the same result please?
Many thanks, as ever.
Stevo :-)
