Forum Replies Created

Viewing 30 posts - 15,301 through 15,330 (of 66,827 total)
  • Author
    Posts
  • in reply to: Image sizes enfold restaurant theme #1276245

    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.jpg

    This 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,
    Ismael

    in reply to: Youtube video in slider does not go to next slide #1276244

    Hi,

    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.

    // https://kriesi.at/about

    Thank you for your patience.

    Best regards,
    Ismael

    Hi,

    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,
    Ismael

    in reply to: Slider scaling images #1276231

    Hi,

    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,
    Ismael

    in reply to: color section does't scroll on mobile #1276229

    Hi,

    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,
    Ismael

    in reply to: Image position for posts #1276228

    Hi,

    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,
    Ismael

    in reply to: Enfold – Remove "portfolio-item" from the URL #1276226

    Hi,

    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,
    Ismael

    Hi,

    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,
    Ismael

    in reply to: Help with WP Popup. Trigger popup via ALB button click #1276221

    Hi,

    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,
    Ismael

    in reply to: Unlock "Lock advanced layout builder" for editor #1276219

    Hi,

    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,
    Ismael

    in reply to: Widget left – Logo right – Menu below #1276216

    Hi,

    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,
    Ismael

    in reply to: Can't change visibility on pages #1276214

    Hi,

    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,
    Ismael

    in reply to: Events Calendar Display not looking like demo #1276213

    Hi,

    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,
    Ismael

    in reply to: Homepage element not scaling properly with iPhones #1276210

    Hi,

    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,
    Ismael

    Hi,

    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,
    Ismael

    in reply to: Images Not Displaying on Translated Page #1276207

    Hi,

    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,
    Ismael

    in reply to: Blog Masonry element show ACF custom post types #1276066

    Hey 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,
    Ismael

    in reply to: Slider scaling images #1276065

    Hey 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,
    Ismael

    in reply to: WooCommerce Redirection #1276059

    Hey 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,
    Ismael

    in reply to: Translate related products on product page #1276058

    Hey 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,
    Ismael

    in reply to: Widget left – Logo right – Menu below #1275998

    Hey 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,
    Ismael

    in reply to: Would need a blog header including search function #1275997

    Hey 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,
    Ismael

    in reply to: color section does't scroll on mobile #1275994

    Hey 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-ios

    Best regards,
    Ismael

    Hey 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,
    Ismael

    Hi,

    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,
    Ismael

    in reply to: Portfolio Items Role Capabilities #1275967

    Hi,

    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,
    Ismael

    in reply to: Enfold – Remove "portfolio-item" from the URL #1275954

    Hi,

    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,
    Ismael

    Hi,

    – 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,
    Ismael

    in reply to: How can I disable the scroll to top funcionality? #1275944

    Hi,


    @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,
    Ismael

    in reply to: Avatars for bbpress #1275943

    Hi,

    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

Viewing 30 posts - 15,301 through 15,330 (of 66,827 total)