Viewing 30 results - 421 through 450 (of 10,078 total)
  • Author
    Search Results
  • #1417201

    In reply to: Productpage

    Hi,
    Thank you for your patience, the “no-products-found” container is because you have this function at the bottom of your functions.php

    function custom_pre_get_posts_query( $q ) {
        $tax_query = (array) $q->get( 'tax_query' );
        $tax_query[] = array(
               'taxonomy' => 'product_cat',
               'field' => 'slug',
               'terms' => array( 'cursus' ), // Don't display products in the clothing category on the shop page.
               'operator' => 'NOT IN'
        );
        $q->set( 'tax_query', $tax_query );
    }
    add_action( 'woocommerce_product_query', 'custom_pre_get_posts_query' ); 

    Or you can try Ismael’s css.
    To correct the Herfstcursus image size try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    #top.archive .thumbnail_container img {
        height: 324px;
    }
    

    Best regards,
    Mike

    wusatiuk
    Participant

    I am trying to exclude posts (woocommerce products) which have a specific category (id=340) from the ‘avia_ajax_search’ popup.
    have copied the function if(!function_exists(‘avia_ajax_search’))

    from /enfold/functions-enfold.php to /enfold-child/functions.php
    Is this correct, or do i need a seperate /enfold-child/functions-enfold.php

    
    if(!function_exists('avia_ajax_search'))
    {
    	//now hook into wordpress ajax function to catch any ajax requests
    	add_action( 'wp_ajax_avia_ajax_search', 'avia_ajax_search' );
    	add_action( 'wp_ajax_nopriv_avia_ajax_search', 'avia_ajax_search' );
    
    	function avia_ajax_search()
    	{
    	    global $avia_config;
    		
            $exclude_category_id = 340; // Replace with the actual category ID
    
    	    unset($_REQUEST['action']);
    	    if(empty($_REQUEST['s'])) $_REQUEST['s'] = array_shift(array_values($_REQUEST));
    		if(empty($_REQUEST['s'])) die();
    
    	    $defaults = array('numberposts' => 5, 'post_type' => 'any', 'post_status' => 'publish', 'post_password' => '', 'suppress_filters' => false, 'results_hide_fields' => '');
    
    	    $_REQUEST['s'] = apply_filters( 'get_search_query', $_REQUEST['s']);
    
    	    $search_parameters 	= array_merge($defaults, $_REQUEST);
    
    	    if ( $search_parameters['results_hide_fields'] !== '' ) {
                $search_parameters['results_hide_fields'] = explode(',', $_REQUEST['results_hide_fields']);
            }
            else {
                $search_parameters['results_hide_fields'] = array();
            }
    
            $search_query 		= apply_filters('avf_ajax_search_query', http_build_query($search_parameters));
    	    $query_function     = apply_filters('avf_ajax_search_function', 'get_posts', $search_query, $search_parameters, $defaults);
    	    $posts		= (($query_function == 'get_posts') || !function_exists($query_function))  ? get_posts($search_query) : $query_function($search_query, $search_parameters, $defaults);
    	
    	    $search_messages = array(
    	            'no_criteria_matched' => __("Sorry, no posts matched your criteria", 'avia_framework'),
    	            'another_search_term' => __("Please try another search term", 'avia_framework'),
    	            'time_format'         => get_option('date_format'),
    	            'all_results_query'   => http_build_query($_REQUEST),
    	            'all_results_link'    => home_url('?' . http_build_query($_REQUEST)),
    	            'view_all_results'    => __('View all results','avia_framework')
                );
    		
    	    $search_messages = apply_filters('avf_ajax_search_messages', $search_messages, $search_query);
    		
    	    if(empty($posts))
    	    {
    	        $output  = "<span class='av_ajax_search_entry ajax_not_found'>";
    	        $output .= "<span class='av_ajax_search_image ".av_icon_string('info')."'>";
    	        $output .= "</span>";
    	        $output .= "<span class='av_ajax_search_content'>";
    	        $output .= "    <span class='av_ajax_search_title'>";
                	$output .= $search_messages['no_criteria_matched'];
    	        $output .= "    </span>";
    	        $output .= "    <span class='ajax_search_excerpt'>";
                	$output .= $search_messages['another_search_term'];
    	        $output .= "    </span>";
    	        $output .= "</span>";
    	        $output .= "</span>";
    	        echo $output;
    	        die();
    	    }
    
    	    //if we got posts resort them by post type
    	    $output = "";
    	    $sorted = array();
    	    $post_type_obj = array();
    	    foreach($posts as $post)
    	    {
    	        $sorted[$post->post_type][] = $post;
    	        if(empty($post_type_obj[$post->post_type]))
    	        {
    	            $post_type_obj[$post->post_type] = get_post_type_object($post->post_type);
    	        }
    	    }
    
    	    //now we got everything we need to preapre the output
    	    foreach($sorted as $key => $post_type)
    	    {
    
    	        // check if post titles are in the hidden fields list
    	        if ( ! in_array('post_titles', $search_parameters['results_hide_fields'] ) )
    	        {
                    if(isset($post_type_obj[$key]->labels->name))
                    {
                        $label = apply_filters('avf_ajax_search_label_names', $post_type_obj[$key]->labels->name);
                        $output .= "<h4>".$label."</h4>";
                    }
                    else
                    {
                        $output .= "<hr />";
                    }
                }
    
    	        foreach($post_type as $post) {
    
    	            $image = "";
                    $extra_class = "";
    
                    // Get the categories for the post
               		$post_categories = wp_get_post_categories($post->ID);
    
               		// Check if the excluded category is in the post categories
    	            if (!in_array($exclude_category_id, $post_categories)) {
    
    	                // check if image is in the hidden fields list
    	                if (!in_array('image', $search_parameters['results_hide_fields']))
    	                {
    	                    $image = get_the_post_thumbnail($post->ID, 'thumbnail');
    	                    $extra_class = $image ? "with_image" : "";
    	                    $post_type = $image ? "" : get_post_format($post->ID) != "" ? get_post_format($post->ID) : "standard";
    	                    $iconfont = $image ? "" : av_icon_string($post_type);
    
    	                }
    
    		            $excerpt     = "";
    
    	                // check if post meta fields are in the hidden fields list
    	                if ( ! in_array('meta', $search_parameters['results_hide_fields'] ) )
    	                {
    	                    if(!empty($post->post_excerpt))
    	                    {
    	                        $excerpt =  apply_filters( 'avf_ajax_search_excerpt', avia_backend_truncate($post->post_excerpt,70," ","...", true, '', true) );
    	                    }
    	                    else
    	                    {
    	                        $excerpt = apply_filters( 'avf_ajax_search_no_excerpt', get_the_time( $search_messages['time_format'], $post->ID ), $post );
    	                    }
    	                }
    
    		            $link = apply_filters('av_custom_url', get_permalink($post->ID), $post);
    
    		            $output .= "<a class ='av_ajax_search_entry {$extra_class}' href='".$link."'>";
    
    		            if ($image !== "" || $iconfont) {
    	                    $output .= "<span class='av_ajax_search_image' {$iconfont}>";
    	                    $output .= $image;
    	                    $output .= "</span>";
    	                }
    		            $output .= "<span class='av_ajax_search_content'>";
    		            $output .= "    <span class='av_ajax_search_title'>";
    		            $output .=      get_the_title($post->ID);
    		            $output .= "    </span>";
    		            if ($excerpt !== '') {
    	                    $output .= "    <span class='ajax_search_excerpt'>";
    	                    $output .=      $excerpt;
    	                    $output .= "    </span>";
    	                }
    	          	}
    	            $output .= "</span>";
    	            $output .= "</a>";
    	        }
    	    }
    
    	    $output .= "<a class='av_ajax_search_entry av_ajax_search_entry_view_all' href='".$search_messages['all_results_link']."'>".$search_messages['view_all_results']."</a>";
    
    	    echo $output;
    	    die();
    	}
    }
    
    #1416865
    NadjaJacke
    Participant

    Hi.

    What do I have to set so that the video is also displayed as a thumbnail in the blog. Is there a possibility? Or do I need a plugin? If so, which?

    Thanks in advance.
    Nadja

    #1416656

    Thanks Mike..
    Why when I hit page preview on home page admin, It doesn’t work properly? goes to to this https://bestfortmyersrealestate.com/real-estate-fort-myers-2-2/?preview_id=1348421&preview_nonce=6e41b96ad9&_thumbnail_id=-1
    otherwise front page is looking good

    #1416638

    Hi,
    Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    add_filter( 'avf_wc_before_shop_loop_item_title_img_size', 'avf_wc_before_shop_loop_item_title_img_size_mod', 10, 1 );
    function avf_wc_before_shop_loop_item_title_img_size_mod( $thumbnail_size ) {
        return 'fullsize';
    }

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    I tested on my test site and the images in a category product page used the original full size image, I couldn’t test on your site because the Authenticator blocked access.

    Best regards,
    Mike

    #1416589

    Hello,

    We are trying to change the product image size on product category pages from thumbnail to full-size image but the code we are applying is not working, Please help us change the image size on the product category page from thumbnail to full.

    Thank you,

    #1416352

    Hey Glaser,
    It could be the color profile settings in the camera or in Photoshop or the editor that you are using, please see this thread, the user was experiences oversaturated colors from their image thumbnails that WordPress created, but not the original full sized images and they found that in their Lightroom that the color profile had accidentally been changed to ProPhoto RGB.
    Perhaps this is a similar situation for you, try testing with an image that you download from unsplash.com and see if you have the same error.
    Please note that using the contact form is not appropriate for support questions, please log in to the support forum and open a new thread if you need further assistance.
    If you are unable to login to the support forum because you don’t have a activate support contract, please try going to your Theme Forest account and renew your support and then log in to the support forum and open a new thread.

    Best regards,
    Mike

    #1416126

    Hi,
    Thanks for the link to your page, it looks like the thumbnails sized image was picked for the team member images. Your thumbnails are 180px square, but shown as 500px square.
    Please go to your team member element and re-choose the images and ensure that you pick one larger than 500px square, you will see the sizes in the drop down choices:
    Enfold_Support_2893.jpeg

    Best regards,
    Mike

    #1415642

    Hi,
    To display the featured image for a Advanced Layout Builder post, add the image to the Featured Image in the WordPress editor sidebar, in the Classic Editor it looks like this:
    Enfold_Support_2836.jpeg
    In the Block Editor it looks like this:
    Enfold_Support_2838.jpeg
    and then you can use Guenni007’s shortcode [thumbnail] in a code block element on the page where you want the featured image to show after adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function thumbnail_in_content($atts) {
        global $post;
        return get_the_post_thumbnail($post->ID);
    }
    add_shortcode('thumbnail', 'thumbnail_in_content');

    Enfold_Support_2840.jpeg
    Enfold_Support_2843.jpeg
    This is the thread the Guenni007 shaired the function in.
    Thanks Guenni007

    Best regards,
    Mike

    #1415271

    Hey frawer,
    Try going to Product ▸ Product categories choose your category and add a Thumbnail
    Enfold_Support_2788.jpeg
    this will add the image above the products on the category page:
    Enfold_Support_2790.jpeg
    Please give this a try.

    Best regards,
    Mike

    #1415261
    frawer
    Participant

    Help!

    I have forgotten what I once did several times.

    I need to have a different category banner and Category Image.

    To See my problem go to https://www.pixelcomputer.de/shop/

    If you click on a category like Workstations, Laptops or Phase One – A new page is opened and I see a category banner which is different from the overview thumbnail. This is fine and I want this behavior everywhere.

    But I have forgotten how to achieve this. Like I added a new category in Laptops. If you go here
    https://www.pixelcomputer.de/produkt-kategorie/laptops/

    You see Laptops Auslaufmodelle 2022/2023 if you click on this, you see a scaled image of the thumbnail. And I don’t find the way to define a banner image different from the thumbnail image.

    I gooled and found that there should be an Option in Edit Categories to define a banner, but its not there:
    Navigate to Dashboard > Posts > Categories and edit the category. You’ll see the image upload option for the banner there. I only see one for the image but not for the banner.
    In another post I found that I should go to Enfold, Theme Options and Shop Options to Enable the Category Banner there but I have no option there.

    Please help!

    #1414732

    Hi,

    Thank you for the update.

    You cannot pick a specific size when selecting a featured image, but you can define which thumbnails to display by editing the templates. For example, on the single post page, you can modify the includes > loop-index.php file around line 92 and define a different thumbnail size.

    /*
    		 * retrieve slider, title and content for this post,...
    		 */
    		$size = strpos( $blog_style, 'big' ) ? ( ( strpos( $current_post['post_layout'], 'sidebar' ) !== false ) ? 'entry_with_sidebar' : 'entry_without_sidebar' ) : 'square';
    

    The code above will display the “entry_with_sidebar” or the “entry_without_sidebar” thumbnails depending on the layout of the page, whether it has a sidebar or not.

    Best regards,
    Ismael

    #1414630

    Hey zimbo,

    Thank you for the inquiry.

    Instead of creating a new thumbnail, you can use the avf_modify_thumb_size filter to modify the size of existing thumbnails. This way, you will be able to select the desired thumbnail and make adjustments accordingly. For instance, to resize the “portfolio” thumbnail, you can add the following code:

    add_filter( 'avf_modify_thumb_size', 'avf_modify_thumb_size_mod', 10, 1 );
    
    function avf_modify_thumb_size_mod( $size ) {
        $size['portfolio'] = array('width'=> 600, 'height'=>450);
        return $size;
    }
    

    You may need to regenerate the thumbnails after adding the filter.

    // https://wordpress.org/plugins/regenerate-thumbnails/

    Best regards,
    Ismael

    #1414210
    dablec
    Participant

    Good morning,

    I have many pages that have a display issue in the section: other available finishes.

    I know that by performing an F5 refresh, the problem is immediately resolved, but my users don’t know how to view the thumbnails.

    To update the page, they need to scroll to the end and then return to where they started.

    I am attaching a video to better explain the problem:

    Thank you.

    Best regards,
    Tiziano Moletta

    #1413901

    Hi Guillaume,

    Please add this code in functions.php of your child theme, if you don’t have a child theme then you can use the plugin called WPCode to insert this code snippet:

    add_filter( 'avf_wc_before_shop_loop_item_title_img_size', 'avf_wc_before_shop_loop_item_title_img_size_mod', 10, 1 );
    function avf_wc_before_shop_loop_item_title_img_size_mod( $thumbnail_size ) {
        return 'woocommerce_thumbnail';
    }

    Hope it helps.

    Best regards,
    Nikko

    ND0711
    Participant

    Hi there ,

    I am using the “Masonry” element on my website with the “Perfect Manual Masonry” setting.
    Alos I use the tag “portrait” to display thumbnails of individual posts in Masonry in high format.
    My site is multilingual (German-English). The tag “portrait” works for the German version of the corresponding page, but unfortunately NOT for the English version.

    Thanks a lot for your efforts in advance!
    Marc

    #1413306
    Cloud Construct
    Participant

    Hi,

    We’re having difficulty getting a YouTube video to embed, both as a color section background video, and using the Video element in the Media tab.

    The video background doesn’t play, and the video element has a black thumbnail and opens the YouTube video in a new tab when clicked.

    The WP version is: 6.2.2
    The Enfold parent theme version is: 5.6.3

    Thank you for your time!
    Harry

    #1413024

    Hi,

    IMPORTANT: Please make sure to create a site backup or restore point before adding the code or before regenerating the thumbnails.

    Best regards,
    Ismael

    #1413023

    Hey flylanddesigns,

    Thank you for the inquiry.

    To modify the size of the default thumbnails, you can utilize the avf_modify_thumb_size filter. To adjust the size of the portfolio thumbnail and change its aspect ratio to 4:5 for example, please insert the following code in the functions.php file.

    add_filter( 'avf_modify_thumb_size', 'avf_modify_thumb_size_mod', 10, 1 );
    
    function avf_modify_thumb_size_mod( $size ) {
        $size['portfolio'] = array('width'=>400, 'height'=>500);
        return $size;
    }
    

    After adding the code, upload the images again or use the following plugin to regenerate the thumbnails in bulk.

    // https://wordpress.org/plugins/regenerate-thumbnails/

    Best regards,
    Ismael

    #1412997
    flylanddesigns
    Participant

    I’m a little confused by thumbnail sizes.
    I see the “MEDIA SETTINGS” in the Settings tab of WordPress, which allows me to set a maximum size for Thumbnail, Medium, and Large size images that are to be generated every time I upload an image.

    However, I believe Enfold generates these images at many different sizes when I upload them. So do I ignore this menu entirely?

    I’m trying to get my thumbnails in my Portfolio Grid to be exactly the size they need to be to compress them so they load faster.

    When looking through the Portfolio Grid image size options, there really isn’t anything with a 4:5 ratio (which is a very common ratio – social media posts use this). In fact, there aren’t many Portrait ratio options at all – most are square, or landscape.

    So I’ve just been leaving it on “No Scaling” – but that option isn’t great, because I’d like it to crop a Landscape Ratio thumbnail to a 4:5 Portrait.
    Please advise

    #1412956

    Thanks for the offer – I will take you up on that (adding the code for me) …
    But first, I’m going to go back in and resize all my thumbnails to make sure they are all the same size, and compressed.

    Pagination is not an option for me – so if I can’t get this to work, I’ll probably have to find a different theme.

    #1412900

    I used Filezilla to add this directly to my functions.php file in my child theme.
    I added the code to the bottom of the document, and it didn’t have any affect on the gallery (still broken).
    So I tried adding it to the top, which broke the site.
    I have since removed it.
    What can I do about this?
    In my opinion, this seems like broken functionality. I’m not sure how you can advertise a Portfolio Grid that only works if it only loads one screen of thumbnails at a time.
    I see that Lazy Loading is an option (I currently have it checked off, since it seems to warn against it).
    Should I try that?

    flylanddesigns
    Participant

    I have a question that I’m not sure how to explain:

    I use the Ajax Portfolio – so most of my Portfolio Item post info shows up as a Preview when the user clicks a thumbnail.
    Are Portfolio Item posts crawled by search engines, or do I need to also make the content as a regular Post as well?
    I want the content in my Portfolio Item posts (such as the images, and the description text describing the images) to be crawled by Google (for example) and show up in search results.

    I wasn’t sure if these posts are “visible” to search engines, since the website is mainly serving up previews of these posts.
    Am I making sense? (probably not).

    #1412481

    what is the reason i ask that question on top:

    i do not know if wordpress preserves the embedded color-profiles on recalculation the smaller images. but these are used in f.e. masonry. so if you use the non recalculated original image in a slider and have the image in a masonry – there could be a difference between f.e. saturation – depending on your browser or monitor you are looking to them.

    • The majority of typical consumer monitors have a color profile similar to the standard sRGB profile, and can’t display any “better” profiles.
    • Almost all images, especially on the Web, were designed to be displayed in the sRGB color profile. When displayed correctly, they look the same on a high-end “wide gamut” monitor as on an average sRGB monitor.
    • Not all browsers and image viewers support color profiles correctly. While basic support has improved in recent years, there are still cases where it’s buggy or misconfigured, so it can’t be relied upon for anything fancy.

    the better control for website images is to save images in the sRGB profile with gamma 2.2, but don’t embed any profile in the image. That’s the most compatible and most efficient solution.

    #1412365

    Topic: Masonry Ajax Portfolio

    in forum Enfold
    flylanddesigns
    Participant

    I would really like to have the Ajax Portfolio be available with a Masonry grid option for the thumbnails.
    Is there a way to do this?
    I have asked some designers on Codeable for a quote on doing this for me (it’s fairly expensive) – but I’m not clear if they totally understand what I”m asking for.
    Is there some kind of technical reason that Masonry is NOT offered with the Ajax Portfolio? Something that would prevent us from doing this custom?

    #1411911

    Hey Ghilbert12,

    Thank you for the inquiry.

    Are you asking about the size of the featured images? The size typically defaults to the “portfolio” thumbnail, but it can change based on the number of columns in the grid. To provide more accurate assistance, please share the URL of the website so that we can inspect the blog posts element.

    Best regards,
    Ismael

    #1411800
    iishaq
    Participant

    Dear Support Team,

    I have updated enfold to the latest version running on WP 6.2.2. I have used the Video element with a URL to a video on YouTube video displaying the Video Thumbnail but the video does not run at all.

    I appreciate your assistance
    Best

    #1411773

    Okay, I changed it and regenerated thumbnails, but it’s not working right. As the size of the page changes, the width responds but the height doesn’t. I’m getting some weird images, especially on my phone or tablet, as the images are compressed sideways. How can we change it so the height responds along with the width?

    #1411572

    Hi,
    Your shortcode [best_selling_products limit="4" column="4" paginate="true" orderby="rand"] is already set to show random items with orderby=”rand” but I found that the shortcode best_selling_products is very old and should be used with old versions of woocommerce. According to this article you should try this shortcode: [products class="columns-4" limit="4" column="4" orderby="rand"] to show random products.
    If you want to use this you will need to also add this css in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    .woocommerce.columns-3.columns-4 li:nth-child(4) {
    	clear: none;
    	margin-right: 0;
    }
    .woocommerce.columns-3.columns-4 li.last {
    	    margin-right: 1% !important;
    }

    To make each product grid & product image & product header caption in each grid all equal height you could add this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function equal_height_product_grid_image_header() { ?>
      <script>
    window.addEventListener('DOMContentLoaded', function() {
      (function($){
        $('.products.columns-3,.products.columns-4').each(function(){  
         var $items = $('li',this);
         var $image = $('li .thumbnail_container img',this);
         var $header = $('li .inner_product_header',this);
         var itemsHeight = Math.max.apply(Math, $items.map(function(){
             return $(this).height();
         }).get());
         var imageHeight = Math.max.apply(Math, $image.map(function(){
             return $(this).height();
         }).get());
         var headerHeight = Math.max.apply(Math, $header.map(function(){
             return $(this).height();
         }).get());
         $items.height(itemsHeight);
         $image.height(imageHeight);
         $header.height(headerHeight);
      });
      })(jQuery);
    });
    </script>
      <?php
    }
    add_action('wp_footer', 'equal_height_product_grid_image_header');

    The only problem is that your secondary images that show on mouse-over which are added by the plugin WooCommerce Product Image Flipper are not the same heights, so you would need to change all of those secondary images because on hover a white space is shown.

    Best regards,
    Mike

    #1411369

    In reply to: Image quality lightbox

    Hi,

    Unfortunatily it’s not working. I’ve added this code and tried also fullsize instead off full but the 1030 size is loaded and not the full size off the image.
    Do you’ve any suggestions? Example off the lightbox is found here: https://www.vanhuyse.nl/woningen/koop/appartement/haarlem/mr-jan-gerritszlaan-35/

    function change_lightbox_size() {
    return “full”;
    }
    add_filter(‘avf_avia_builder_helper_lightbox_size’,’change_lightbox_size’, 10);

    function avia_change_gallery_thumbnail_link($link, $attachment, $atts, $meta){
    $link = wp_get_attachment_image_src($attachment->ID, “full”);
    return $link;
    }
    add_filter(‘avf_avia_builder_gallery_image_link’, ‘avia_change_gallery_thumbnail_link’, 10, 4);

    Regards,
    Kees

Viewing 30 results - 421 through 450 (of 10,078 total)