Viewing 30 results - 3,931 through 3,960 (of 10,101 total)
  • Author
    Search Results
  • #801102
    MarcoCianetti
    Participant

    Hello,
    I have a problem with woocommerce with a project.
    Warning: Missing argument 3 for avia_woocommerce_gallery_thumbnail_description() in /home/color200/shop.color2000snc.it/wp-content/themes/enfold/config-woocommerce/config.php on line 1360
    Warning: Missing argument 4 for avia_woocommerce_gallery_thumbnail_description() in /home/color200/shop.color2000snc.it/wp-content/themes/enfold/config-woocommerce/config.php on line 1360
    Can you explain where I was wrong?

    #801087

    Below is my child theme function.php code as it is now – should I just replace the middle text I have in bold – starting with: avia_nav_menus(); and ending with: ‘wp_change_aviajs’, 100 ); – with the code you linked to above? The avia.js file has been overwritten – or should have been, right? Do I need to do anything with that?
    thanks
    Nancy

    <?php

    /*
    * Add your own functions here. You can also copy some of the theme functions into this file.
    * WordPress will use those functions instead of the original functions then.
    */

    /*===ADD custom css class element to all pages===*/
    add_theme_support(‘avia_template_builder_custom_css’);

    /*==========MAG ELEMENT add excerpt under title all===========*/

    add_filter(‘avf_portfolio_cpt_args’, ‘avf_portfolio_add_custom_fields’, 1);
    function avf_portfolio_add_custom_fields($args) {
    $args[‘supports’] = array(‘title’,’thumbnail’,’excerpt’,’editor’,’comments’, ‘custom-fields’, ‘page-attributes’);
    return $args;
    }

    $default_sidebar = false;
    $parent = get_the_title($post->post_parent);
    $parentlink = get_the_permalink($post->post_parent);
    $sidebar_menu .= “<nav class=’widget widget_nav_menu $display_child_pages’><ul class=’nested_nav’>”;
    $sidebar_menu .= “<h3 class=’widgettitle’>$parent</h3>”;
    $sidebar_menu .= $children;
    $sidebar_menu .= “</nav>”;

    avia_nav_menus(); function avia_nav_menus() { global $avia_config, $wp_customize; $avia_config[‘nav_menus’] = array( ‘avia’ => array(‘html’ => __(‘Main Menu’, ‘avia_framework’)), ‘avia2’ => array( ‘html’ => __(‘Secondary Menu <br/><small>(Will be displayed if you selected a header layout that supports a submenu here)</small>’, ‘avia_framework’), ‘plain’=> __(‘Secondary Menu – will be displayed if you selected a header layout that supports a submenu’, ‘avia_framework’)), ‘avia3’ => array( ‘html’ => __(‘Footer Menu <br/><small>(no dropdowns)</small>’, ‘avia_framework’), ‘plain’=> __(‘Footer Menu (no dropdowns)’, ‘avia_framework’)), ‘avia_responsive’ => array( ‘html’ => __(‘Responsive Menu <br /><small>(If set will replace your main menu on mobiles)</small>’)) ); add_theme_support(‘nav_menus’); foreach($avia_config[‘nav_menus’] as $key => $value) { $name = (!empty($value[‘plain’]) && !empty($wp_customize)) ? $value[‘plain’] : $value[‘html’]; register_nav_menu($key, THEMENAME.’ ‘.$name); } } add_action( ‘ava_after_main_menu’, ‘enfold_customization_add_responsive_menu’ ); function enfold_customization_add_responsive_menu() { echo “<nav style = ‘display:none;’ class=’main_menu_responsive’ data-selectname='”.__(‘Select a page’,’avia_framework’).”‘ “.avia_markup_helper(array(‘context’ => ‘nav’, ‘echo’ => false)).”>”; $avia_theme_location = ‘avia_responsive’; $avia_menu_class = $avia_theme_location . ‘-menu’; $args = array( ‘theme_location’ => $avia_theme_location, ‘menu_id’ => $avia_menu_class, ‘menu_class’ => ‘menu av-main-nav’, ‘container_class’ => $avia_menu_class.’ av-main-nav-wrap’.$icon_beside, ‘fallback_cb’ => false, ‘walker’ => new avia_responsive_mega_menu() ); wp_nav_menu($args); echo ‘</nav>’; }

    /*make sure MEGA MENU mobile functions after avia js file changes*/

    function wp_change_aviajs() {
    wp_dequeue_script( ‘avia-default’ );
    wp_enqueue_script( ‘avia-default-child’, get_stylesheet_directory_uri().’/js/avia.js’, array(‘jquery’), 2, true );
    }
    add_action( ‘wp_print_scripts’, ‘wp_change_aviajs’, 100 );

    add_filter(‘widget_text’, ‘do_shortcode’);

    /*==============GOOGLE FONTS ADD=================*/
    function add_oswald_script(){
    ?>
    <link href=’http://fonts.googleapis.com/css?family=Oswald:400,700,300&#8242; rel=’stylesheet’ type=’text/css’>
    <?php
    }
    add_action(‘wp_head’, ‘add_oswald_script’);

    /*FIX MEGA MENU not closing on ipad issue https://kriesi.at/support/topic/closing-mega-menu-on-ipad/*/

    function add_custom_megamenu(){
    ?>
    <script>
    jQuery(window).load(function(){
    if (jQuery(window).width() <= 1024){
    jQuery(“#header”).click(function(){
    jQuery(“.avia_mega_div”).toggle();
    });
    }
    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘add_custom_megamenu’);

    //set builder mode to debug
    add_action(‘avia_builder_mode’, “builder_set_debug”);
    function builder_set_debug()
    {
    return “debug”;
    }

    /*edit Advanced Layout Builder elements*/
    add_filter(‘avia_load_shortcodes’, ‘avia_include_shortcode_template’, 15, 1);
    function avia_include_shortcode_template($paths)
    {
    $template_url = get_stylesheet_directory();
    array_unshift($paths, $template_url.’/shortcodes/’);

    return $paths;
    }

    /*FIX MISSING REVISIONS*/

    add_filter(‘avf_portfolio_cpt_args’,’avia_add_portfolio_revision’, 10, 1);
    function avia_add_portfolio_revision($args)
    {
    $args[‘supports’] = array(‘title’,’thumbnail’,’excerpt’,’editor’,’comments’,’revisions’);
    return $args;
    }

    • This reply was modified 8 years, 11 months ago by Munford.

    Hi,
    For the blurry images at that URL, what I’m seeing is the upload size, or media chosen size is 80×80, and it’s being scaled up to 228×228. So we should change the product image sizes which are thumbnails.
    Navigate to WooCommerce -> Products. Select Product tab and click Display: Scroll down to change the parameters for the Product Thumbnails. Change to 228×228 and regenerate your thumbnails: https://wordpress.org/plugins/regenerate-thumbnails/
    Then please clear your cache :)

    Best regards,
    Mike

    #800736

    Hello

    I went to the shop option to choose woo commerce product gallery, and now it is working

    May I ask?
    1)mobile view: why swiping the images, the whole page(product page) are moving ? is that because of the image size is not the same?

    2) desktop: why the thumbnails are all going vertically , can’t slip to next image untill you click the next thumbnails? so for now, I have to scroll down the find the thumbnails and then scroll up to view images.., and do not able to double click to the full size of the images(normal view)

    BeeCee
    Participant

    Hi,

    I’m using manual excerpts with each post.
    How can I add these manual excerpts to the related posts?

    ———- (1) ———-

    I found this snippet from @Yigit, but I don’t know, if this works right with MANUAL (individual) excerpts:
    https://kriesi.at/support/topic/add-excerpt-text-in-the-related-post-field/#post-691749

    add_filter('avf_related_post_loop','avia_related_excerpt');
    function avia_related_excerpt() { 
      $excerpt = get_the_excerpt( $post );
      $output = "<span class='related-excerpt'>".$excerpt."</span>";
      return $output;
    } 

    but this snippet makes a mess in my related posts:

    EDIT: it seems that this snippet adds the manual excerpt to the “related posts” of the post you are currently viewing!

    ———- (2) ———-

    The suggested CSS

    strong.av-related-title {
        float: left;
    }
    span.related-excerpt {
        float: right;
    }

    are acting weird: the thumbnail of the related posts is not at the right place:

    Any ideas please?
    Thank you.

    #800339

    Hey helderluis,

    The masonry element is using the isotope script which calculates the position of the masonry items dynamically. I’m afraid, it’s not possible to change the width or the height of the thumbnail to make it look like a square without breaking the script. The width and height of the masonry items will depend on the number of columns and the current width of the main container.

    Best regards,
    Victoria

    Hi Victoria,
    both threads are not working for us.
    The blurry pictures already exists on the product overview pages. Regenerate Thumbnails results also no success.
    Example here: https://flohmarkt-eppendorf.de/flohmarkt-grelckstrasse/standplatzbuchung-grelckstrasse-bereich-a/

    Any ideas?
    Best
    Jörg

    #800102

    Hi,

    I’ve checked inside your Simple Image Sizes plugin and your features images sizes are still quite big (1500px width). Change the settings and then regenerate your thumbnails. Don’t forget to clear browser cache and hard refresh a few times.

    Best regards,
    Andy

    #799960

    In reply to: Blurry Default images

    Hey raymondshamoon,

    Try running the thumbnail regeneration plugin to see if that fixes the issue:

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

    Best regards,
    Jordan Shannon

    #799855

    Hey kprice2690,

    I have tried to login but the login details doesn’t seem to work.
    Can you check functions.php and if you can find this code please try to remove:

    global $woocommerce;
    if( version_compare( $woocommerce->version, '3.0.0', ">=" ) ) {
    
    	add_theme_support( 'wc-product-gallery-zoom' );
      add_theme_support( 'wc-product-gallery-lightbox' );
    
    	function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id, $image_class ) {
    	    return $img;
    	}
    	function avia_woocommerce_post_thumbnail_description($img, $post_id){
    	    return $img;
    	}
    
    }

    Hope this helps :)

    Best regards,
    Nikko

    #799844
    kprice2690
    Participant

    When accessing single products i am receiving the following errors:

    Warning: Missing argument 4 for avia_woocommerce_gallery_thumbnail_description() in /home/content/p3pnexwpnas04_data03/74/4096974/html/wp-content/themes/enfold-child/functions.php on line 21

    Warning: Missing argument 3 for avia_woocommerce_gallery_thumbnail_description() in /home/content/p3pnexwpnas04_data03/74/4096974/html/wp-content/themes/enfold-child/functions.php on line 21

    I have updated to the most recent theme update as well as woocommerce. I added the code from other posts to get the images to not be blurry, but am still receiving this error.

    Please advise. Login information given.

    #799565

    hi @ismael when I did that it show that huge gap between the image and the thumbnails, it seens is the space for the zoom or whatever (i’ll disable that option for now)
    https://www.isopasse.com.br/wp-content/uploads/2017/05/Untitled.png

    #799237

    Hey glossmoderne,

    Can you check if you have this code in functions.php:

    global $woocommerce;
    if( version_compare( $woocommerce->version, '3.0.0', ">=" ) ) {
    
    	add_theme_support( 'wc-product-gallery-zoom' );
      add_theme_support( 'wc-product-gallery-lightbox' );
    
    	function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id, $image_class ) {
    	    return $img;
    	}
    	function avia_woocommerce_post_thumbnail_description($img, $post_id){
    	    return $img;
    	}
    
    }

    If yes, try to remove it and tell us if it fixes the issue.

    Best regards,
    Nikko

    #799229

    Hi,

    Thanks, it’s fixed now :) I have removed this code in functions.php of your child theme:

    global $woocommerce;
    if( version_compare( $woocommerce->version, '3.0.0', ">=" ) ) {
    
    	add_theme_support( 'wc-product-gallery-zoom' );
      add_theme_support( 'wc-product-gallery-lightbox' );
    
    	function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id, $image_class ) {
    	    return $img;
    	}
    	function avia_woocommerce_post_thumbnail_description($img, $post_id){
    	    return $img;
    	}
    
    }

    Best regards,
    Nikko

    #799115

    ….and yes I have regenerated the thumbnails

    #799111
    glossmoderne
    Participant

    Hello – the following error message is appearing on all product pages:

    Warning: Missing argument 3 for avia_woocommerce_gallery_thumbnail_description() in /home/content/p3pnexwpnas08_data03/48/2526048/html/wp-content/themes/enfold/config-woocommerce/config.php on line 1360

    Warning: Missing argument 4 for avia_woocommerce_gallery_thumbnail_description() in /home/content/p3pnexwpnas08_data03/48/2526048/html/wp-content/themes/enfold/config-woocommerce/config.php on line 1360

    Any help would be greatly appreciated – thank you!

    #799086

    Hi Lyse,

    Yes, you can remove those CSS codes.

    Regarding images, please try the following:
    1. Install this plugin: https://wordpress.org/plugins/simple-image-sizes/
    2. Go to Settings > Media
    3. Change the entry_without_sidebar image size (increase its width / height).
    4. Regenerate the thumbnails by clicking the button at the bottom.

    Best regards,
    Yigit

    #799059
    trevorjohnston
    Participant

    Hi
    The easy slider images on my website, TrevorJohnston.com have strangely disappeared. Clicking on the image title below any of the portfolio thumbnails brings up a “detail” page for that image. An easy slider in the upper left corner displays (at least it should) close-up details within the main image. At some point recently, those images stopped appearing. Strangely, if I use Inspect Element for the easy slider, the images appear, then disappear again once I move to a different page.

    #798812

    Morning Jordan,

    Sure pleasea link to screen shot below. The first image at the top is the main one and the thumbnails are appearing 100% width like you said and are pixelated.

    Screen shot

    Cheers
    Antonio

    #798159
    amonllor1
    Participant

    Hi guys,

    Since activating the Woocommerce 3.0 product gallery in the themes product gallery section, the thumbnails on product pages appear too big on a mobile.

    Visit this page on a mobile and you will be able to see what i mean –

    Please advise
    Antonio

    #797987

    Hey studioinktvis,

    Try adding this code to the bottom of functions.php:

    global $woocommerce;
    
    if( version_compare( $woocommerce->version, '3.0.0', ">=" ) ) {
    
    	function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id, $image_class ) {
    	    return $img;
    	}
    	function avia_woocommerce_post_thumbnail_description($img, $post_id){
    	    return $img;
    	}
    
    }

    Let me know if this works.

    Best regards,
    Jordan Shannon

    #797900
    seedboxtech
    Participant

    I am using the enfold theme for the first time, and I really love this theme.
    I see that this theme comes with a feature to display the testimonials. I really like the way the testimonials are being displayed in the default grid layout. But they are all static content.

    On my website though, I want to have testimonials as a custom post type. I want to display every individual testimonial on its own page when I click on the person’s name, or picture or a Read More link.
    I created a custom post type called “Testimonials” using “CPT UI” plugin.
    In order to use exactly the same markup and styling that comes with the default testimonials in Enfold theme, I tried creating a shortcode for my custom post type “Testimonials” in function.php.

    I have a page called Testimonials. On this page I am using the shortcode [testimonials] to display all the testimonials with default pagination. The testimonials are being displayed perfectly fine as I want them to appear. The only problem is that the default numbered pagination is not showing up for some reason.

    Following is the code I have written in functions.php file to create the shortcode.

    
    /* SHORT CODE FOR ALL THE TESTIMONIALS */
    function all_testimonials_shortcode() {
    	$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
    	//echo "Page numbers: " . $paged;
    	$loop = new WP_Query( 
    			array( 
    				'post_type' => 'testimonials', 
    				'paged' => $paged, 
    				'posts_per_page' => '4', 
    				'paginate' => 'yes', 
    				'use_main_query_pagination' => 'yes'
    			));
        
    	if ( $loop->have_posts() ) {
            
            $output = '';
    		while ( $loop->have_posts() ) { 
                $loop->the_post();
    
                $post_thumbnail_id = get_post_thumbnail_id( $post_id );
                $testimonial_permalink = get_permalink( $post_id );
                $excerpt = get_the_excerpt( $post_id );
                $designation = get_field( 'designation' );
                $testimonialTitle = get_the_title();
                $output .= "[av_testimonial_single  limit='1' href=" . $testimonial_permalink . " src=".$post_thumbnail_id ."  link='http://' linktext='']";
                $output .= $excerpt . "... <a href=" . $testimonial_permalink . ">Read More</a>";
                $output .= "<div class='avia-testimonial-meta-mini'>";
                $output .= "<div class='avia-testimonial-name'><strong>".$testimonialTitle."</strong></div>";
                $output .= "<div class='avia-testimonial-subtitle '>".$designation."</div>";
                $output .= "</div>";
                $output .= "[/av_testimonial_single]";
            }
    		// echo avia_pagination('$loop->max_num_pages', 'nav');
    		
            return do_shortcode("[av_testimonials style='grid' columns='2' grid_style='' interval='5' font_color='' custom_title='' custom_content='' admin_preview_bg='']". $output ."[/av_testimonials]");
    		
    		wp_reset_postdata();
    	}
    };
    add_shortcode('testimonials', 'all_testimonials_shortcode');

    The testimonials are now displayed fine, and they are displayed in this format:
    Testimonials

    For some reason, the pagination is not showing up. I want the pagination to be displayed like this:
    pages

    Can someone tell me if I am missing something in my code. Thanks.

    #797540

    Hey giorgiosilvia,

    I have checked your site and noticed that the blurred images, for example the 2 images on the homepage are blurred because the size selected is the thumbnail size which is 80 x 80px, try to change the size to a bigger one like portfolio size. Hope this helps :)

    Best regards,
    Nikko

    #797455

    Hello,

    the images used one the product single page are not too small.

    (Link to the demoshop in the private content field)

    My settings in WooCommerce product display are (see screenshot link):

    https://www.webservice-sbraun.de/product-display.jpg

    Yesterday I changed the value at „Einzelnes Produktbild“ back to the standard value 450×999, but the images are still blurred in Firefox, Opera and IE/Edge. In Chrome they are ok.

    And the other images – catalogue and thumbnails are ok as well, in each browser.

    I can do what I want – the product images on the product single page remain blurred.

    What can I do to solve this problem? What I don’t understand is why the display in Chrome is correct und in other browsers not and why the catalogue und thumbnails photos are ok in each browser.

    Kind regards
    Susanne

    #797438

    Is there a possibility of getting the thumbnails to appear when viewing the masonry gallery in lightbox? If you refer to the link below the theme is fantastic but just wanted to have the option of having the thumbnails coming up when viewing it in the lightbox mode.

    #797407

    Hi,

    The product grid element is using the default product thumbnail called “Catalog images”. Please go to the WooCommerce > Products > Display > Product images section and adjust the thumbnail size. Don’t forget to regenerate the thumbnails.

    Best regards,
    Ismael

    #797363

    In reply to: Woo Versandkosten

    Hi,


    @mensmaximus
    : Thank you for the info. However, the modification for the blurry images issue is not going to be necessary because users’ can use the “single_product_small_thumbnail_size” and “single_product_large_thumbnail_size” to change the thumbnail size. Default value or size is “shop_single”.


    @DianaFuetterer
    : Please try @mensmaximus suggested plugin.

    // https://wordpress.org/plugins/woocommerce-germanized/

    Best regards,
    Ismael

    #797170

    Topic: Blog layout

    in forum Enfold
    buyakascha
    Participant

    Dear Enfold team,

    I’m very happy and satisfied with the enfold theme. Took me a few days to change my website to ur theme but now I’m very happy. I do still have 2 issues regarding the blog and would highly appreciate your advice:

    Blog posts:
    When I choose to show the blog posts I have an issue that for one post the respective excerpts doesn’t show up in this 3 column layout: Link. How can I fix this?

    Blog layout:
    My current blog layout is posted in this link. Is it possibly to get a blog listing layout like in this theme here? I would like to have a thumbnail on the left and the titel, meta data and excerpts on the right. Is that possible?

    Thanks in advance.

    Hey 1lizcollins,
    I’m not sure that I’m familiar with that setting, where was it? I’m also not sure which thumbnails on that page you want to reduce or to what size. I may be able to help with some code.

    Best regards,
    Mike

    #797002

    In reply to: Mega menu with images

    Hey yaelbar,
    Sorry, It is not possible to display add thumbnails that appear when hovering, Please feel free to request – or vote if already requested – such feature on Enfold feature request form.

    Best regards,
    Mike

Viewing 30 results - 3,931 through 3,960 (of 10,101 total)