Forum Replies Created
-
AuthorPosts
-
Hey MSchrauf,
Thank you for the inquiry.
You may need to look for a different animated number solution in this case because the default animated numbers element from the builder does not accept shortcode as parameter value by default.
Or we could create a custom shortcode based on the markup of the current animated number element. Please add this code in the functions.php file to create the custom animated number shortcode.
// custom animated numbers function avs_animated_number_mod_cb( $atts ) { $number = do_shortcode("[reportcount]"); return " <div class='avia-animated-number av-force-default-color avia_animate_when_visible number_prepared' data-timer='3000'> <strong class='heading avia-animated-number-title'><span class='avia-single-number __av-single-number' data-number_format='' data-number='{$number}' data-start_from='0'> </span> </strong> <div class='avia-animated-number-content'> <p>Add your own text</p> </div> </div>"; } add_shortcode( 'avs_animated_number_mod', 'avs_animated_number_mod_cb' );
In a code or text block, use this shortcode.
[avs_animated_number_mod]
This should automatically assign the value of the [reportcount] shortcode in the number parameter.
Best regards,
IsmaelHey PGerousse13,
Thank you for the inquiry.
We could use this snippet in the functions.php file to render the add to cart button after the product title in the shop page.
add_action( 'after_setup_theme', function() { add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_add_to_cart', 12 ); }, 999);
It might require a few style adjustments. Site looks very nice by the way.
Best regards,
IsmaelFebruary 4, 2021 at 6:22 am in reply to: Adding button to mute/unmute audio on fullscreen background video #1277547Hi!
Sorry for the delay. We are still not sure why this is not working on Safari browsers. Could you provide a screenshot of the errors again without compression enabled? Please place the screenshot in the private field.
Best regards,
IsmaelHey DanielKG,
Thank you for the inquiry.
Looks like the checker is looking for the label for the input tags in the contact form element, but those labels already exist, so these warnings should not show up. This is an example of the field markup in the contact form element in the home page.
<p class=" first_form form_element form_fullwidth" id="element_avia_2_2"><label for="avia_2_2">E-Mail <abbr class="required" title="required">*</abbr></label> <input name="avia_2_2" class="text_input is_email" type="text" id="avia_2_2" value=""></p> <p class=" first_form form_element form_fullwidth" id="element_avia_2_2"><label for="avia_2_2">E-Mail <abbr class="required" title="required">*</abbr></label> <input name="avia_2_2" class="text_input is_email" type="text" id="avia_2_2" value=""></p>
As you can see, it has a corresponding label for each input tags.
<label for="avia_2_2">E-Mail <abbr class="required" title="required">
Best regards,
IsmaelHey bnetz,
Thank you for the inquiry.
You would have to include a conditional function in the snippet such as the is_page function. Please check the documentation for more info.
// https://developer.wordpress.org/reference/functions/is_page/
At the very top, you might have to do something like this.
if(is_page(array(1, 232, 424))) return;
This cancels out the function or immediately returns nothing when the current page has the ID of 1, 233 or 424.
Best regards,
IsmaelHi,
Thank you for the info.
The product gallery is now switching to the appropriate image when we select a different color or size. You may need to purge the cache on your end or disable the WP Rocket plugin temporarily to actually see the changes.
Best regards,
IsmaelHi,
Thank you for the info.
We cannot access the file server using the account info above, unfortunately. Please check it carefully, or provide another login account and make sure that it is not limited to certain IP addresses and is accessible from these countries.
Best regards,
IsmaelFebruary 4, 2021 at 5:52 am in reply to: Portfolio für bestimmte Seite ohne verlinkung zu single portfolio #1277534Hi,
Thank you for the update.
We cannot find the script in the page or the document. Are you sure that you placed it in the functions.php file, preferably in the child theme directory? Please post the login info in the private field so that we could test it.
Best regards,
IsmaelFebruary 4, 2021 at 5:49 am in reply to: Woocommerce Product image in Avia Builder using wooswatches #1277533Hi,
@dmmediaks: Would you mind providing a link to a page with the gallery so that we could check it? Please post the details in a new thread or ticket if possible.Best regards,
IsmaelHi,
For some reason, we cannot deactivate the WP Rocket plugin, so we are not really sure if the changes that we are committing are actually taking effect. Please disable the cache plugin temporarily. We also installed the Enable jQuery Migrate Helper plugin and set jQuery to the old version because we found a script error in the front end, but this is not yet working, again, because of the cache plugin.
And using the SFTP account above, we cannot overwrite any files. Please make sure that it has the correct write permissions so that we could edit the files when necessary.
Thank you for your patience.
Best regards,
IsmaelHi,
Thank you for the screenshot.
The screenshot is cut off at the very end. Are you waiting for the video to end? The console.log “YOUTUBE ENDED” above should show once the video ended, but if not, this means that the following condition (line 311) is not met.
if (event.data === YT.PlayerState.ENDED)
This might be the same issue as the one reported here.
// https://kriesi.at/support/topic/youtube-video-throwing-error-when-played-in-color-selection/
Best regards,
IsmaelFebruary 4, 2021 at 5:21 am in reply to: WP LayerSlider: One Slider lost his Transitions in Frontend #1277526Hi,
Thank you for the info.
The transition works fine both in the front end and in the preview, using Firefox Dev on Windows 10. The transitions are random as configured in the layer slider panel. Could you provide a screencast of the slider on your end so that we could see the issue?
Best regards,
IsmaelFebruary 4, 2021 at 5:17 am in reply to: Shortcode problem – It displays outside the place of placement #1277525Hi,
Did you try using a different shortcode in the text or code block? Is it working as intended? You could try the default WP shortcode and it should work just fine. Unfortunately, we are not familiar with the plugin and its code, so you will have to seek out for additional assistance with the plugin developers. Please ask them how the shortcode renders its output, or ask them for the name of the function that delivers the shortcode output.
Thank you for your patience.
Best regards,
IsmaelHi,
Thank you for the update.
It may not be working yet because the css files are compressed or minified. Please disable that option temporarily. You could also try the following css code but it is basically the same as the previous one.
div .products .product { margin: 0 1% 5% 0 !important; }
Best regards,
IsmaelFebruary 4, 2021 at 5:09 am in reply to: Blog Post Grid Layout – Title, Author, Date display #1277521Hi,
1.) You will have to modify the enfold\config-templatebuilder\avia-shortcodes\postslider\postslider.php file and place the custom post tag around line 889 or within this container.
$meta = " <div class='slide-meta'>";
2.) To add it in the masonry entries, edit the enfold\config-templatebuilder\avia-shortcodes\av-helper-masonry.php and look for the masonry content container around line 516:
$items .= " <div class='av-masonry-entry-content entry-content' {$markup}>{$content}</div> ";
Best regards,
IsmaelFebruary 4, 2021 at 5:04 am in reply to: enfold masonry sort by date in the events calendar #1277516Hi,
Thank you for the update.
We adjusted the value of the is_page function so it uses an array.
if(is_page(array(197, 3636, 4555))) {
We also created a test page. (see private field)
Best regards,
IsmaelHi,
I see that the title is cut here, so the … is already within the Html.
The … is on the second line because of the br tag. You may have to disable it or change its display property to none.
.avia-post-nav br { display: none; }
Best regards,
IsmaelFebruary 3, 2021 at 2:15 pm in reply to: Portfolio für bestimmte Seite ohne verlinkung zu single portfolio #1277363Hey allespalettibystefan,
Thank you for the inquiry.
We could use the following script in the functions.php file to disable the masonry item link so that they will not redirect to the actual portfolio page when clicked.
// disable masonry link function ava_script_disable_masonry_link() { if ( wp_script_is( 'avia-default', 'registered' ) ) { wp_add_inline_script( 'avia-default', ' (function($) { $(".av-masonry-entry").on("click", function(e) { e.preventDefault(); return false; }); })(jQuery); '); } } add_action( 'wp_enqueue_scripts', 'ava_script_disable_masonry_link', 9999);
Let us know how it goes.
Best regards,
IsmaelHi,
IMPORTANT: Please do not forget to create a backup or a restore point before doing the suggestion above just in case.
Best regards,
IsmaelHey marcie73,
Thank you for the inquiry.
You may also need to update the value of the _aviaLayoutBuilderCleanData post meta info, which is attached to the page or post when the advance layout builder is active. It contains the same value as the post_content.
Best regards,
IsmaelHey bonsaimedia,
Thank you for the inquiry.
Could you provide an example of the spotify embed code? You may need to create a custom shortcode for it, or try to use one of the following plugins.
// https://wordpress.org/plugins/spotify-play-button-for-wordpress/
// https://wordpress.org/plugins/spotify-embed-creator/To be able to create a custom shortcode, you may need to check the following documentation.
// https://codex.wordpress.org/Shortcode_API
Best regards,
IsmaelHi,
Sorry for the delay. The Enfold > Blog Layout > Blog Layout settings is set to use a default blog template. You have to set to the very last option so that the actual content of the Advance Layout Builder (ALB) displays in the blog page. We set it just now. Please check your blog page.
Best regards,
IsmaelHey Gary,
Thank you for the inquiry.
You could modify the enfold\config-templatebuilder\avia-shortcodes\menu\menu.js file and remove the condition that disables the sticky behavior when the burger menu is active, but you will see why it is so in the first place. Comment out line 55 of the said file or remove it completely.
/** * If we have burger menu active we ignore sticking submenus */ if( burger_menu.is(":visible") ) { this.css({top: 'auto', position: 'absolute'}); fixed = false; return; }
This will enable the sticky behavior on mobile view, but as you will notice, the menu position will be a bit off.
Best regards,
IsmaelHi,
Thank you for the update.
Have you tried applying a custom css class name or ID to the element where you need the date hidden? You can then prepend the custom class name or ID in the css that Jordan provided above.
.your-custom-css-class-name .slide-meta{ display:none!important; }
Best regards,
IsmaelFebruary 3, 2021 at 7:55 am in reply to: WP LayerSlider: One Slider lost his Transitions in Frontend #1277260Hi,
Sorry for the delay. We cannot reproduce the issue on our end, the second slide, with images of mobile and desktop devices, transitions fine and we do not see any errors in the console. Which browser are you using to test this with?
Best regards,
IsmaelHi,
Sorry for the delay. Looks like you have to managed to fix the issue by yourself because adding group products to the cart seems to be working properly now. If this is not the case, please edit the woocommerce-mod.js file inside the enfold > config-woocommerce folder and replace everything with the following code.
// https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_7_4/woocommerce-mod.js
Please do not forget to purge the cache and toggle the Performance > File Compression settings.
Best regards,
IsmaelHi,
We cannot access the screenshot for some reason. Would you mind allowing access to the countries listed in this page?
Some of the moderators that replied in this thread including myself are from the Philippines, so allowing connections or access coming from it should do.
Best regards,
IsmaelFebruary 3, 2021 at 6:59 am in reply to: Close a hot-spot by clicking anywhere away from it #1277247Hey whdsolutions,
Sorry for the delay. This should be possible, but we have to directly modify the AviaTooltip function in the themes\enfold\js\avia.js, and bind a new event to the body tag so that when you click anywhere else, all tooltips will close. Please look for this code around line 1596.
if (this.options.event != 'click') { this.scope.on('mouseleave', default_tooltips, $.proxy(this.hide_tooltip, this)); this.scope.on('click', default_tooltips, $.proxy(this.hide_on_click_tooltip, this)); } else { this.body.on('mousedown', $.proxy(this.hide_tooltip, this)); }
Below, add this code.
this.body.on('click', $.proxy(this.hide_all_tooltips, this));
You may need to toggle or temporarily disable the Performance > File Compression settings after doing the modification.
Best regards,
IsmaelHi,
Thank you for the info.
There is a critical error in the site, so we are not able to access the dashboard. Please correct the issue or disable the plugin temporarily so that we could access the site, and post the FTP details in the private field so that we could debug the issue further.
Best regards,
IsmaelFebruary 3, 2021 at 5:46 am in reply to: Random background image (possibly from a list) in color section #1277235 -
AuthorPosts