Forum Replies Created
-
AuthorPosts
-
Hi,
Thank you for the update.
Have you tried inspecting the demo directly in the browser to see the size of the images used in the pages? For example, in the front page of the demo, these are the images used.
// https://kriesi.at/themes/enfold-restaurant/wp-content/uploads/sites/39/2014/07/pasta.jpg
// https://kriesi.at/themes/enfold-restaurant/wp-content/uploads/sites/39/2014/07/pizza-710×375.jpg
// https://kriesi.at/themes/enfold-restaurant/wp-content/uploads/sites/39/2014/07/burger-845×684.jpg
// https://kriesi.at/themes/enfold-restaurant/wp-content/uploads/sites/39/2014/07/kitchen_chef_edit.jpgThis might help. https://developers.google.com/web/tools/chrome-devtools/open
A specific thumbnail is usually assigned to a specific element in the builder such as the masonry thumbnail for the Masonry element, or the portfolio thumbnail for the Portfolio Grid but there is also an option called Preview Image Sizes in the elements’ Styling tab where you could select the size of the images manually if you prefer to use a different one.
Best regards,
IsmaelHi,
For some reason we cannot connect to the server using the account above. Are you blocking certain countries? Please make sure that connections coming from these countries are allowed.
Thank you for your patience.
Best regards,
IsmaelJanuary 29, 2021 at 5:29 am in reply to: Accordion Element – set "Initial Open" depending on screen size #1276236Hi,
Thank you for the info.
We just noticed that all toggler are opened on page load, so we adjusted the script in the functions.php file a bit to loop through all togglers and close all of them on mobile view. This is the final code.
/*------------------------------------------------------------- // Close open accordion toggles on mobile devices //------------------------------------------------------------*/ add_action('wp_footer', function() { ?> <script> document.addEventListener("DOMContentLoaded", function() { if(window.innerWidth > 769) return; setTimeout(function() { var actives = document.getElementsByClassName("toggler"); Array.prototype.forEach.call(actives, el => { el.dispatchEvent(new Event('click')); el.classList.remove("activeTitle"); }); }, 500); }); </script> <?php }, 9999);Best regards,
IsmaelHi,
Thank you for the update.
If you want to adjust the dimensions or cropping options of the existing thumbnails, try to use the following plugin.
// https://wordpress.org/plugins/simple-image-sizes/
After the thumbnail adjustment, please do not forget to regenerate the images or upload them again.
Best regards,
IsmaelHi,
On which device are you testing it? As we mentioned above, fixed elements or backgrounds are not fully supported on iOS devices and some mobile browsers. You may need to consider setting it to scroll on mobile view.
Best regards,
IsmaelHi,
Thank you for the update.
The easiest solution that we can think of is to resize the original image so that its aspect ratio is the same as the aspect ratio of entry_with_sidebar thumbnail before uploading it. Unfortunately, we cannot change the size of the designated thumbnail for a single post.
Best regards,
IsmaelHi,
You have to remove the previous snippet that we provided and use the recent one above because that is the complete code. After adding the code, make sure that the Portfolio Item Slug is set to a slash (“/”) and make sure to flush or save the permalink settings. After that, refresh the page, go to the Portfolio panel, and view one of the portfolio items. The post type slug should be removed from the URL.
Would you mind if we access the dashboard and the file server? Please post the WP and FTP login details in the private field so that we could test the modification.
Thank you for your patience.
Best regards,
IsmaelJanuary 29, 2021 at 4:56 am in reply to: How to avoid feature image cropping in a masonry line of blog posts? #1276224Hi,
Thank you for the info.
Last time we checked, the Masonry element is set to 3 columns, which is why we recommended a squarish images. For full width or a single column Masonry element, you should use a wider image. Please note that the maximum size of the default thumbnail used in the Masonry element is 705x705px.
Best regards,
IsmaelJanuary 29, 2021 at 4:47 am in reply to: Help with WP Popup. Trigger popup via ALB button click #1276221Hi,
You are very welcome. Please feel free to open a new thread if you need anything else. We will close this one for now.
Have a nice day.
Best regards,
IsmaelHi,
Thank you for the update.
What happens when you remove this line from the snippet above?
remove_filter('avf_allow_drag_drop', 'avia_disable_alb_drag_drop', 30, 1);Best regards,
IsmaelHi,
Thank you for the update.
It is probably not working because the menu is positioned below the header. The Enfold > Header > Header Layout > Menu and Logo Position settings should be set to Logo left, Menu right.
Best regards,
IsmaelHi,
Alright. We will close this thread for now. Please feel to open a new thread if you need anything else.
Have a nice day.
Best regards,
IsmaelHi,
Thank you for the info.
To fix the old or classic style of the events page, we had to place the tribe events css modification in the style.css file. Please check the links in the private field and please do not forget to purge the cache or do a hard refresh.
Best regards,
IsmaelJanuary 29, 2021 at 3:55 am in reply to: Homepage element not scaling properly with iPhones #1276210Hi,
only her left eye and left part of her face are showing at the far left edge of the screen.
This is the only thing that I can actually see on my end and it is quite normal because the background position is set to center right. If you want to adjust the position of the background on mobile so that the subject is more visible, you can use this css code.
#openhome { background-position: 70% 30% !important; }I cannot reproduce the rest of the issue on a device emulation, so we might have to wait for the rest of the team so that they could check it properly.
Best regards,
IsmaelJanuary 29, 2021 at 3:46 am in reply to: Adding button to mute/unmute audio on fullscreen background video #1276209Hi,
Thank you for that info.
Do you see any errors in the browser console when you check the site on Safari? I asked the rest of the team to inspect the issue on Safari and hopefully they will find the problem and provide a working solution.
Best regards,
IsmaelHi,
Glad to know that it is working as expected now. Please feel free to open a new thread should you need anything else.
Have a nice day.
Best regards,
IsmaelHey arapps,
Thank you for the inquiry.
You can override the element in your child theme by creating a new shortcode path. Please check the following documentation for more info.
// https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb
Best regards,
IsmaelHey Gabster,
Thank you for the inquiry.
Try to edit the Easy Slider element and in the Styling > Slideshow Image Size settings, select the first option (No scaling, Original Width and Height) to display the original images or the actual size of the images.
Best regards,
IsmaelHey riseadmin,
Thank you for the inquiry.
Did you figure out the issue? It now stays in the current page after adding a product to the cart, instead of redirecting to the cart page.
Best regards,
IsmaelHey laboiteapixels12,
Thank you for the inquiry.
Which language would you like to translate it to? Instead of editing the file directly, try to use the Loco Translate plugin in order to translate that specific text to whichever language you want it translated.
// https://wordpress.org/plugins/loco-translate/
Best regards,
IsmaelHey ZikomoWebdesign,
Thank you for the inquiry.
Did you add the css code provided in the documentation? The css code should allow you to move the position of the elements or change their order within the header.
// https://kriesi.at/documentation/enfold/example-of-widget-left-logo-right-menu-below/#toggle-id-2
Best regards,
IsmaelJanuary 28, 2021 at 8:05 am in reply to: Would need a blog header including search function #1275997Hey Frank,
Thank you for the inquiry.
We can use the ava_after_main_container hook in the functions.php file to insert additional element above the content. Example:
add_action("ava_after_main_container", function() { // insert search element here }, 10);You may also directly edit the header.php template to insert additional content below the header.
Best regards,
IsmaelHey Stilecatalini,
Thank you for the inquiry.
Are you referring to the parallax effect? This effect or option is actually disabled on mobile devices by default. Setting it to “fixed” instead of “parallax” might work, but this option is partially or not fully supported on iOS devices and Android browsers.
// https://caniuse.com/background-attachment
// https://stackoverflow.com/questions/21476380/background-size-on-iosBest regards,
IsmaelJanuary 28, 2021 at 7:50 am in reply to: Paralax option blows picture up while extremely wide pic doesn't fill whole wndw #1275993Hey jgooiker,
I want: a full width responsible picture that shows the whole pic
This may not be possible because different screens or devices have different aspect ratio and screen resolutions. What you can only do is to resize the image so that is has an aspect ratio and size that caters to most standard screen resolutions, but do not expect that the whole image will be visible in the section or slider area unless you want it to display distorted.
This is the list of the most popular screen resolutions used to date.
// https://gs.statcounter.com/screen-resolution-stats
As you may noticed, most popular screen resolutions have an aspect ratio of 16:9, so resizing the image to have that same aspect ratio should work.
Best regards,
IsmaelJanuary 28, 2021 at 6:09 am in reply to: Accordion Element – set "Initial Open" depending on screen size #1275969Hi,
Thank you for the update.
We cannot find the recommended script in the document or page. Did you remove it? Please add the script again so that we could check if it is actually working or if there is any error. Please make sure to copy the code directly from the forum and not from your email.
Best regards,
IsmaelHi,
Thank you for the info.
You should be able to use the avf_portfolio_cpt_args filter to adjust the existing parameters of the portfolio post type and define the capabilities. And as recommended in the article, you have to use a membership plugin such as the wordpress.org/extend/plugins/members to be able to assign custom capabilities to user roles.
// https://memberpress.com/plugins/members/docs/
Please be very careful when assigning capabilities to user roles.
Best regards,
IsmaelHi,
You have to add the pre_get_posts filter along with the previous code that we recommended and remove the slug and set the with_front parameter of the portfolio post type to false. The pre_get_posts function should alter the default query.
This is the final code, which seems to be working properly when we tested it on our installation.
/** * Remove the slug from published portfolio permalinks. Only affect our custom post type, though. */ function avf_portfolio_cpt_args_mod($args) { $args['rewrite']['slug'] = '/'; $args['rewrite']['with_front'] = false; return $args; } add_filter('avf_portfolio_cpt_args', 'avf_portfolio_cpt_args_mod', 10); function ava_remove_custom_slug( $post_link, $post, $leavename ) { if ( 'portfolio' != $post->post_type || 'publish' != $post->post_status ) { return $post_link; } $post_link = str_replace( '/' . $post->post_type . '/', '/', $post_link ); return $post_link; } add_filter( 'post_type_link', 'ava_remove_custom_slug', 9999, 3 ); /** * Have WordPress match postname to any of our public post types (post, page, portfolio). * All of our public post types can have /post-name/ as the slug, so they need to be unique across all posts. * By default, WordPress only accounts for posts and pages where the slug is /post-name/. * * @param $query The current query. */ function ava_add_cpt_post_names_to_main_query( $query ) { // Bail if this is not the main query. if ( ! $query->is_main_query() ) { return; } // Bail if this query doesn't match our very specific rewrite rule. if ( ! isset( $query->query['page'] ) || 2 !== count( $query->query ) ) { return; } // Bail if we're not querying based on the post name. if ( empty( $query->query['name'] ) ) { return; } // Add CPT to the list of post types WP will include when it queries based on the post name. $query->set( 'post_type', array( 'post', 'page', 'portfolio' ) ); } add_action( 'pre_get_posts', 'ava_add_cpt_post_names_to_main_query' );Please do not forget to flush or save the permalink settings.
Best regards,
IsmaelJanuary 28, 2021 at 5:50 am in reply to: How to make the Advanced Layer Builder DEFAULT when creating a new page/post? #1275951Hi,
– Yes, the script above still works when we tested it on our end — jQuery migrate plugin is enabled, so it might be a plugin issue, a cache or because of minified/compressed scripts.
– Sorry for the confusion. I meant the upcoming versions of the theme, not the current latest version. Compatibility patches or updated functions for jQuery will be available in the next version of the theme.
– Yes, that is possible but you have to deregister the default jQuery script and register it back with the path to the version that you prefer. The following code should do just that.
function ava_modify_jquery_version() { if (!is_admin()) { wp_deregister_script('jquery'); wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js', false, '2.0.s'); wp_enqueue_script('jquery'); } } add_action('init', 'ava_modify_jquery_version');Best regards,
IsmaelHi,
@luhlacom: Have you tried using an absolute URL instead of a relative path in the menu item URL field? Or just place the anchor without the page path? If you are still encountering the issue after doing the recommendations, please create a new thread and post the site details in the private field.Best regards,
IsmaelHi,
Thank you for the update.
Looks like the default avatar from Ultimate Member plugin is displaying as the profile picture instead of the actual gravatar. What happens when you disable the Ultimate Member plugin? You may need to wait for a bit after disabling the plugin before the changes will be reflected in the front end.
Or try to toggle the Ultimate Member > settings > users > turn off gravatar option.
Best regards,
Ismael -
AuthorPosts
