Viewing 30 results - 2,761 through 2,790 (of 10,096 total)
  • Author
    Search Results
  • #1007401

    Hey dwags52,
    Please try editing the loop-search.php file, and replacing line 31:

    echo "<span class='search-result-counter {$counterclass}'>{$post_loop_count}</span>";

    with:

                    $searchimage = get_the_post_thumbnail( $the_id, 'large' );
                    echo "<span class='search-result-image'><a title='".the_title_attribute('echo=0')."' href='".get_permalink()."' $markup>{$searchimage}</a></span>";
                    echo "<span class='search-result-counter {$counterclass}'>{$post_loop_count}</span>";

    and use the same Quick CSS:

    .search-result-image img {
    width: 300px;
    }

    Best regards,
    Mike

    #1006871

    In reply to: Symmetrical portfolio

    Hi,

    Which ones are not working? Are you sure that you’re checking the test site? That is where I regenerated the thumbnails. (see private field)

    Best regards,
    Ismael

    #1006852
    webWahine
    Participant

    Hello, all
    I’m working on styling an archive page for categories, and have added in this to my functions.php to change the layout to a grid –

    add_filter('avf_blog_style','avia_change_category_blog_layout', 10, 2); 
    function avia_change_category_blog_layout($layout, $context){
    if($context == 'archive') $layout = 'blog-grid';
    return $layout;
    }

    I was then able to hide the thumbnail, the comments and delimitor –

    /* archive pages - using functions.php to set as a grid **********/
    
    /* hide thumbnail */
    
    .slide-entry-overview a.slide-image {
    	display: none;
    }
    
    /* title */
    
    #top.archive.category .content .entry-title {
    	text-align: left !important;
    	color: #afa89c !important;
    }
    
    /* hide comments */
    
    .slide-meta-comments {
    	display: none !important;
    }
    
    /* hide deliminator */
    
    .slide-meta-del {
    	display: none !important;	
    }
    

    But I have a few questions, please:

    1) Include the Read More link in the archive page grid posts.
    2) On the mobile version when the grid posts are displayed as a single column, I’d like to have some vertical whitespace after the Read More link.
    3) When scaling from desktop to mobile the 3 columns start to display oddly, ie, they are no longer equal width and the first test displays as a full row with the second two below on landscape phones. They seem to be fine on portrait.
    4) On the sidebar in both mobile and desktop, there is a lot of vertical space between the widgets – I’d like to reduce that.
    5) The recent news sidebar widget is also missing the Read More link, and I’d like ti there, too, please.

    Thank you in advance!

    #1006785
    dwags52
    Participant

    Post #805258 shows the code (below), to add to the loop-search.php file, which adds an image to the product search results page. Although it works perfect, you only get a text link to the product.

    How can you add the same link to image as well?

    Thanks.

    REPLACE:
    echo “<span class=’search-result-counter {$counterclass}’>{$post_loop_count}</span>”;

    WITH:
    $searchimage = get_the_post_thumbnail( $the_id, ‘large’ );
    echo “<span class=’search-result-image’>{$searchimage}</span>”;
    echo “<span class=’search-result-counter {$counterclass}’>{$post_loop_count}</span>”;

    QUICK CSS:
    .search-result-image img {
    width: 300px;
    }

    #1006717
    shar0n80s
    Participant

    Hey there guys,

    Just bought your Enfold theme and it looks great.
    I was just adjusting my footer and some weird stuff happened.

    @footerwidgets the instagram pictures (middle row) arent the same height as the first and third row. I don’t know how to fix it. Could you please assist me?

    @footerwidgets the title of the three columns are corresponding but between ‘Mail Lear’ and the contact form there’s more space than between Instagram & Pictures and FOLLOW US ON FACEBOOK & the box. Could there be the same space between the first and second column as the third (like that one the most).

    Sorry my English is not that great. Hope you understand my question.

    #1006511

    Hi,

    You can use this code to remove the 6% margin:

    
    #top #wrap_all div .av_one_third {
        margin-left: 1px;
        width: 33%;
    }
    

    I’d recommend to set a custom css class ( https://kriesi.at/documentation/enfold/intro-to-advanced-layout-builder/#turn-on-custom-css-class-field-for-all-alb-elements ) for the columns, otherwise the code will affect all columns and not only the thumbnail columns.

    The code would then look like

    
    #top #wrap_all div .av_one_third.customclass {
        margin-left: 1px;
        width: 33%;
    }
    

    (of course you need to replace customclass with your css class).

    You could also use this code to adjust the space between 3 images and the big image:

    
    #top #wrap_all div .av_one_third.customclass {
        margin-left: 1px;
        width: 33%;
        margin-top: -10px;
    }
    

    (of course you need to replace customclass with your css class). You can also replace the margin-left and width values to adjust the space between columns. The margin-top value will change the space between the big image and the columns.

    If you want to make the images bigger you need to increase the size of the surrounding column – at the moment you added all images into a 1/2 column which results in 1/6 width thumbnails (1/2 * 1/3 column). You could i.e. increase the 1/2 column to full width (1/1) to make the thumbnails bigger.

    Also, how could I add a white caption, lower third, centered to all?

    You can’t easily add a caption inside the images but you could i.e. use a textblock elements to add some text (caption) below or above the images. The wordpress editor also enables you to center the text.

    Best regards,
    Peter

    Hi,

    Thank you for the info. You have to make sure that the original image is larger than 495x400px. That is the minimum size of the “portfolio” thumbnail. Looks like you’re using images that are smaller than the default size, which makes the grid inconsistent. (see private field)

    Best regards,
    Ismael

    #1006432

    In reply to: Symmetrical portfolio

    Hey!

    The portfolio grid looks more consistent after regenerating the thumbnails. (see private field)
    Did you add the filter?

    Best regards,
    Ismael

    #1006397

    In reply to: Symmetrical portfolio

    Hi,

    I am currently regenerating 2900++ thumbnails. We’ll give you an update once it is done. Please add this code in the functions.php file.

    /**
     * Set sizes atribute for responsive images and better performance
     * @param  array        $attr       markup attributes
     * @param  object       $attachment WP_Post image attachment post
     * @param  string|array $size       named image size or array
     * @return array        markup attributes
     */
    function avf_responsive_img_sizes( $attr, $attachment, $size ) {
        if ( is_array( $size ) ) {
            $attr['sizes'] = $size[0] . 'px';
        } elseif ( $size == 'widget') {
            $attr['sizes'] = '36px';
        } elseif ( $size == 'square') {
            $attr['sizes'] = '180px';
        } elseif ( $size == 'featured') {
            $attr['sizes'] = '1500px';
        } elseif ( $size == 'featured_large') {
            $attr['sizes'] = '1500px';
        } elseif ( $size == 'extra_large' ) {
            $attr['sizes'] = '1500px';
        } elseif ( $size == 'portfolio' ) {
            $attr['sizes'] = '495px';
        } elseif ( $size == 'portfolio_small' ) {
            $attr['sizes'] = '260px';
        } elseif ( $size == 'gallery' ) {
            $attr['sizes'] = '845px';
        } elseif ( $size == 'magazine' ) {
            $attr['sizes'] = '710px';
        } elseif ( $size == 'masonry' ) {
            $attr['sizes'] = '705px';
        } elseif ( $size == 'entry_with_sidebar' ) {
            $attr['sizes'] = '845px';
    	} elseif ( $size == 'entry_without_sidebar' ) {
            $attr['sizes'] = '1210px';
        }
        return $attr;
    }
    add_filter( 'wp_get_attachment_image_attributes', 'avf_responsive_img_sizes', 30, 3 );
    

    Best regards,
    Ismael

    #1005990

    In reply to: Symmetrical portfolio

    Hi,

    Please create a site backup and then we’ll try to regenerate the thumbnails using the plugin.
    Yes, you can delete the images via FTP.

    Best regards,
    Ismael

    #1005950
    Transform-You
    Participant

    hey there,
    Just wanted to say you guys are amazing and I’ve managed to work around most of my issues by just googling them and reading forum posts.

    However, I did try finding a solution to my current issue by looking through other posts but none seemed to work for me. All I want to do is add space between my gallery thumbnails (upcoming events) so they are not touching each other. I am assuming there must be some quick css I can add to the general styling area.

    For the gallery I set up 2 – one for view on larger screens and one for smaller screens. I want the padding on the one I have set for larger screens only… do I have to set a class id for that particular gallery?…. i.e. is any css code you give me going to change all galleries if I don’t?

    Oh and one small other thing… I’d like to set my footer widget columns to align bottom, instead of top.

    Any help would be greatly appreciated. – Danielle

    #1005852

    Hey NicoleH,

    Thank you for using Enfold.

    Those links will still redirect to a secure connection when you click them but we’ll forward it to the team. You can edit the includes > helper-social-media.php file for now. Look for thsee codes around line 147:

    				'facebook' 	=> array("encode"=>true, "encode_urls"=>false, "pattern" => "http://www.facebook.com/sharer.php?u=[permalink]&t=[title]"),
    				'twitter' 	=> array("encode"=>true, "encode_urls"=>false, "pattern" => "https://twitter.com/share?text=[title]&url=[shortlink]"),
    				'gplus' 	=> array("encode"=>true, "encode_urls"=>false, "pattern" => "https://plus.google.com/share?url=[permalink]" , 'label' => __("Share on Google+",'avia_framework')),
    				'pinterest' => array("encode"=>true, "encode_urls"=>true, "pattern" => "http://pinterest.com/pin/create/button/?url=[permalink]&description=[title]&media=[thumbnail]"),
    				'linkedin' 	=> array("encode"=>true, "encode_urls"=>false, "pattern" => "http://linkedin.com/shareArticle?mini=true&title=[title]&url=[permalink]"),
    				'tumblr' 	=> array("encode"=>true, "encode_urls"=>true, "pattern" => "http://www.tumblr.com/share/link?url=[permalink]&name=[title]&description=[excerpt]"),
    				'vk' 		=> array("encode"=>true, "encode_urls"=>false, "pattern" => "http://vk.com/share.php?url=[permalink]"),
    				'reddit' 	=> array("encode"=>true, "encode_urls"=>false, "pattern" => "http://reddit.com/submit?url=[permalink]&title=[title]"),
    				'mail' 		=> array("encode"=>true, "encode_urls"=>false, "pattern" => "mailto:?subject=[title]&body=[permalink]", 'label' => __("Share by Mail",'avia_framework') ),
    

    Best regards,
    Ismael

    #1005826

    In reply to: Symmetrical portfolio

    Hi,

    I created a test portfolio item, re-uploaded the image of the “Aequidens Rivulatus” and then used it as the featured image. This particular item is using the “portfolio_small” thumbnail with its actual size (260x185px). The original “Aequidens Rivulatus” portfolio item, which is the very first item in the grid, is still using the full size thumbnail. Are you sure that thumbnails are regenerated? Please check the “Test” portfolio item at the very end of the page. (see private field)

    The plugin should delete the existing thumbnails and regenerate another. Yes, you can manually delete the images.

    Best regards,
    Ismael

    #1005679

    But, how will that create one large image above 3 smaller images? I essentially want the lightbox functionality with thumbnails without having to click on an image first.

    #1005432

    In reply to: Symmetrical portfolio

    Hi,

    I see. No, you don’t need to enable that. Just enable the crop parameter of the “portfolio” and “portfolio_small” thumbnails and then regenerate the thumbnails.

    Best regards,
    Ismael

    #1005319

    In reply to: Symmetrical portfolio

    This reply has been marked as private.
    #1005313

    In reply to: Symmetrical portfolio

    Hi,

    What do you mean by “post insertion”? You’ll find the thumbnail sizes in the Settings > Media panel.

    Best regards,
    Ismael

    #1005219

    I have not fully decided – but let’s start withmaking the background of the icon/thumbnail transparent
    Thanks!

    • This reply was modified 7 years, 7 months ago by lightsites.
    #1005097

    In reply to: Http error 500

    Hi Victora,
    See below:

    <?php
    //Tried both with and without added enqueing code. Seemed not to make a difference #SG;
    //#SG: Enqueuing the parent theme stylesheet;
    add_action( ‘wp_enqueue_scripts’, ‘enqueue_child_theme_styles’, PHP_INT_MAX);
    function enqueue_child_theme_styles() {
    wp_enqueue_style( ‘avia-style’, get_template_directory_uri().’/style.css’ );
    }
    // #SG: Enqueuing the parent theme CSS;
    function my_theme_enqueue_styles() {

    $parent_style = ‘avia-style’; // This is ‘avia-style’ for the Enfold theme.

    wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’,
    get_stylesheet_directory_uri() . ‘/style.css’,
    array( $parent_style ),
    wp_get_theme()->get(‘Version’)
    );
    }
    add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );

    /*
    * 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.
    */

    // Added by #SG for Eliminate render-blocking JavaScript and CSS in above-the-fold content
    function my_init()
    {
    if (!is_admin())
    {
    wp_deregister_script(‘jquery’);

    // Load a copy of jQuery from the Google API CDN
    // The last parameter set to TRUE states that it should be loaded
    // in the footer.
    wp_register_script(‘jquery’, ‘http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js&#8217;, FALSE, ‘1.11.0’, TRUE);

    wp_enqueue_script(‘jquery’);
    }
    }
    add_action(‘init’, ‘my_init’);
    //End of added code by #SG

    if ( !defined(‘ABSPATH’) ){ die(); }

    global $avia_config;

    /*
    /*
    * if you run a child theme and dont want to load the default functions.php file
    * set the global var below in you childthemes function.php to true:
    *
    * example: global $avia_config; $avia_config[‘use_child_theme_functions_only’] = true;
    * The default functions.php file will then no longer be loaded. You need to make sure then
    * to include framework and functions that you want to use by yourself.
    *
    * This is only recommended for advanced users
    */

    if(isset($avia_config[‘use_child_theme_functions_only’])) return;

    /*
    * create a global var which stores the ids of all posts which are displayed on the current page. It will help us to filter duplicate posts
    */

    $avia_config[‘posts_on_current_page’] = array();

    /*
    * wpml multi site config file
    * needs to be loaded before the framework
    */

    require_once( ‘config-wpml/config.php’ );

    /**
    * layerslider plugin – needs to be loaded before framework because we need to add data to the options array
    *
    * To be backwards compatible we still support add_theme_support(‘deactivate_layerslider’);
    * This will override the option setting “activation” of the bundled plugin !!
    *
    * @since 4.2.1
    */

    /*DEACTIVATED by #SG (Remove this line to activate)
    require_once( ‘config-layerslider/config.php’ );

    /*
    * These are the available color sets in your backend.
    * If more sets are added users will be able to create additional color schemes for certain areas
    *
    * The array key has to be the class name, the value is only used as tab heading on the styling page
    */

    $avia_config[‘color_sets’] = array(
    ‘header_color’ => ‘Logo Area’,
    ‘main_color’ => ‘Main Content’,
    ‘alternate_color’ => ‘Alternate Content’,
    ‘footer_color’ => ‘Footer’,
    ‘socket_color’ => ‘Socket’
    );

    /*
    * add support for responsive mega menus
    */

    add_theme_support(‘avia_mega_menu’);

    /*
    * add support for improved backend styling
    */

    add_theme_support(‘avia_improved_backend_style’);

    /*
    * deactivates the default mega menu and allows us to pass individual menu walkers when calling a menu
    */

    add_filter(‘avia_mega_menu_walker’, ‘__return_false’);

    /*
    * adds support for the new avia sidebar manager
    */

    add_theme_support(‘avia_sidebar_manager’);

    /*
    * Filters for post formats etc
    */
    //add_theme_support(‘avia_queryfilter’);

    /*
    * Register theme text domain
    */
    if(!function_exists(‘avia_lang_setup’))
    {
    add_action(‘after_setup_theme’, ‘avia_lang_setup’);

    function avia_lang_setup()
    {
    $lang = apply_filters(‘ava_theme_textdomain_path’, get_template_directory() . ‘/lang’);
    load_theme_textdomain(‘avia_framework’, $lang);
    }

    avia_lang_setup();
    }

    /*
    function that changes the icon of the theme update tab
    */

    if(!function_exists(‘avia_theme_update_filter’))
    {
    function avia_theme_update_filter( $data )
    {
    if(current_theme_supports(‘avia_improved_backend_style’))
    {
    $data[‘icon’] = (Email address hidden if logged out) ‘;
    }
    return $data;
    }

    add_filter(‘avf_update_theme_tab’, ‘avia_theme_update_filter’, 30, 1);
    }

    ##################################################################
    # AVIA FRAMEWORK by Kriesi

    # this include calls a file that automatically includes all
    # the files within the folder framework and therefore makes
    # all functions and classes available for later use

    require_once( ‘framework/avia_framework.php’ );

    ##################################################################

    /*
    * Register additional image thumbnail sizes
    * Those thumbnails are generated on image upload!
    *
    * If the size of an array was changed after an image was uploaded you either need to re-upload the image
    * or use the thumbnail regeneration plugin: http://wordpress.org/extend/plugins/regenerate-thumbnails/
    */

    $avia_config[‘imgSize’][‘widget’] = array(‘width’=>36, ‘height’=>36); // small preview pics eg sidebar news
    $avia_config[‘imgSize’][‘square’] = array(‘width’=>180, ‘height’=>180); // small image for blogs
    $avia_config[‘imgSize’][‘featured’] = array(‘width’=>1500, ‘height’=>430 ); // images for fullsize pages and fullsize slider
    $avia_config[‘imgSize’][‘featured_large’] = array(‘width’=>1500, ‘height’=>630 ); // images for fullsize pages and fullsize slider
    $avia_config[‘imgSize’][‘extra_large’] = array(‘width’=>1500, ‘height’=>1500 , ‘crop’ => false); // images for fullscrren slider
    $avia_config[‘imgSize’][‘portfolio’] = array(‘width’=>495, ‘height’=>400 ); // images for portfolio entries (2,3 column)
    $avia_config[‘imgSize’][‘portfolio_small’] = array(‘width’=>260, ‘height’=>185 ); // images for portfolio 4 columns
    $avia_config[‘imgSize’][‘gallery’] = array(‘width’=>845, ‘height’=>684 ); // images for portfolio entries (2,3 column)
    $avia_config[‘imgSize’][‘magazine’] = array(‘width’=>710, ‘height’=>375 ); // images for magazines
    $avia_config[‘imgSize’][‘masonry’] = array(‘width’=>705, ‘height’=>705 , ‘crop’ => false); // images for fullscreen masonry
    $avia_config[‘imgSize’][‘entry_with_sidebar’] = array(‘width’=>845, ‘height’=>321); // big images for blog and page entries
    $avia_config[‘imgSize’][‘entry_without_sidebar’]= array(‘width’=>1210, ‘height’=>423 ); // images for fullsize pages and fullsize slider
    $avia_config[‘imgSize’] = apply_filters(‘avf_modify_thumb_size’, $avia_config[‘imgSize’]);

    $avia_config[‘selectableImgSize’] = array(
    ‘square’ => __(‘Square’,’avia_framework’),
    ‘featured’ => __(‘Featured Thin’,’avia_framework’),
    ‘featured_large’ => __(‘Featured Large’,’avia_framework’),
    ‘portfolio’ => __(‘Portfolio’,’avia_framework’),
    ‘gallery’ => __(‘Gallery’,’avia_framework’),
    ‘entry_with_sidebar’ => __(‘Entry with Sidebar’,’avia_framework’),
    ‘entry_without_sidebar’ => __(‘Entry without Sidebar’,’avia_framework’),
    ‘extra_large’ => __(‘Fullscreen Sections/Sliders’,’avia_framework’),

    );

    avia_backend_add_thumbnail_size($avia_config);

    if ( ! isset( $content_width ) ) $content_width = $avia_config[‘imgSize’][‘featured’][‘width’];

    /*
    * register the layout classes
    *
    */

    $avia_config[‘layout’][‘fullsize’] = array(‘content’ => ‘av-content-full alpha’, ‘sidebar’ => ‘hidden’, ‘meta’ => ”,’entry’ => ”);
    $avia_config[‘layout’][‘sidebar_left’] = array(‘content’ => ‘av-content-small’, ‘sidebar’ => ‘alpha’ ,’meta’ => ‘alpha’, ‘entry’ => ”);
    $avia_config[‘layout’][‘sidebar_right’] = array(‘content’ => ‘av-content-small alpha’,’sidebar’ => ‘alpha’, ‘meta’ => ‘alpha’, ‘entry’ => ‘alpha’);

    /*
    * These are some of the font icons used in the theme, defined by the entypo icon font. the font files are included by the new aviaBuilder
    * common icons are stored here for easy retrieval
    */

    $avia_config[‘font_icons’] = apply_filters(‘avf_default_icons’, array(

    //post formats + types
    ‘standard’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue836’),
    ‘link’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue822’),
    ‘image’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue80f’),
    ‘audio’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue801’),
    ‘quote’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue833’),
    ‘gallery’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue80e’),
    ‘video’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue80d’),
    ‘portfolio’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue849’),
    ‘product’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue859’),

    //social
    ‘behance’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue915’),
    ‘dribbble’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8fe’),
    ‘facebook’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8f3’),
    ‘flickr’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8ed’),
    ‘gplus’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8f6’),
    ‘linkedin’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8fc’),
    ‘instagram’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue909’),
    ‘pinterest’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8f8’),
    ‘skype’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue90d’),
    ‘tumblr’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8fa’),
    ‘twitter’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8f1’),
    ‘vimeo’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8ef’),
    ‘rss’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue853’),
    ‘youtube’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue921’),
    ‘xing’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue923’),
    ‘soundcloud’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue913’),
    ‘five_100_px’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue91d’),
    ‘vk’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue926’),
    ‘reddit’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue927’),
    ‘digg’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue928’),
    ‘delicious’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue929’),
    ‘mail’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue805’),

    //woocomemrce
    ‘cart’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue859’),
    ‘details’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue84b’),

    //bbpress
    ‘supersticky’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue808’),
    ‘sticky’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue809’),
    ‘one_voice’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue83b’),
    ‘multi_voice’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue83c’),
    ‘closed’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue824’),
    ‘sticky_closed’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue808\ue824’),
    ‘supersticky_closed’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue809\ue824’),

    //navigation, slider & controls
    ‘play’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue897’),
    ‘pause’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue899’),
    ‘next’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue879’),
    ‘prev’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue878’),
    ‘next_big’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue87d’),
    ‘prev_big’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue87c’),
    ‘close’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue814’),
    ‘reload’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue891’),
    ‘mobile_menu’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8a5’),

    //image hover overlays
    ‘ov_external’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue832’),
    ‘ov_image’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue869’),
    ‘ov_video’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue897’),

    //misc
    ‘search’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue803’),
    ‘info’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue81e’),
    ‘clipboard’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8d1’),
    ‘scrolltop’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue876’),
    ‘scrolldown’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue877’),
    ‘bitcoin’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue92a’),

    ));

    /*
    * a small array that contains admin notices that can, for example, be called after an update
    * just set the db option avia_admin_notice to contain the key of the notice you want to display
    * eg: update_option(‘avia_admin_notice’, ‘performance_update’);
    *
    * classes: error, warning, success, info
    * msg: whatever floats your boat :D
    */

    $avia_config[‘admin_notices’] = array(

    //default update success
    ‘update_success’ => array(‘class’=>’success’, ‘msg’ => __(‘Enfold update was successful! ‘,’avia_framework’)),

    //update to version 4.3 – performance update. display notice and link to blog post
    ‘performance_update’ => array(‘class’=>’info’, ‘msg’ => “Attention: The last Enfold update added a lot of performance options. Make sure to read more about it here<br><br>If you are running a caching plugin please make sure to reset your cached files, since the CSS and JS file structure of the theme changed heavily”
    ),

    //update to version 4.4 – gdpr update. display notice and link to blog post
    ‘gdpr_update’ => array(‘class’=>’info’, ‘msg’ => “Attention: Enfold was updated for GDPR compliance. Make sure to read more about it here
    ),

    //more to come…
    );

    add_theme_support( ‘automatic-feed-links’ );

    ##################################################################
    # Frontend Stuff necessary for the theme:
    ##################################################################

    /*
    * Register frontend javascripts:
    */

    if(!function_exists(‘avia_register_frontend_scripts’))
    {
    if(!is_admin()){
    add_action(‘wp_enqueue_scripts’, ‘avia_register_frontend_scripts’);
    }

    function avia_register_frontend_scripts()
    {
    global $avia_config;

    $theme = wp_get_theme();
    if( false !== $theme->parent() )
    {
    $theme = $theme->parent();
    }
    $vn = $theme->get( ‘Version’ );

    $options = avia_get_option();

    $template_url = get_template_directory_uri();
    $child_theme_url = get_stylesheet_directory_uri();

    //register js

    wp_enqueue_script( ‘avia-compat’, $template_url.’/js/avia-compat.js’ , array(), $vn, false ); //needs to be loaded at the top to prevent bugs
    wp_enqueue_script( ‘avia-default’, $template_url.’/js/avia.js’, array(‘jquery’), $vn, true );
    wp_enqueue_script( ‘avia-shortcodes’, $template_url.’/js/shortcodes.js’, array(‘jquery’,’avia-default’), $vn, true );

    wp_enqueue_script( ‘jquery’ );

    //register styles

    wp_register_style( ‘avia-style’ , $child_theme_url.”/style.css”, array(), $vn, ‘all’ ); //only include in childthemes. has no purpose in main theme
    wp_register_style( ‘avia-custom’, $template_url.”/css/custom.css”, array(), $vn, ‘all’ );

    wp_enqueue_style( ‘avia-grid’ , $template_url.”/css/grid.css”, array(), $vn, ‘all’ );
    wp_enqueue_style( ‘avia-base’ , $template_url.”/css/base.css”, array(‘avia-grid’), $vn, ‘all’ );
    wp_enqueue_style( ‘avia-layout’, $template_url.”/css/layout.css”, array(‘avia-base’), $vn, ‘all’ );
    wp_enqueue_style( ‘avia-scs’, $template_url.”/css/shortcodes.css”, array(‘avia-layout’), $vn, ‘all’ );

    /************************************************************************
    Conditional style and script calling, based on theme options or other conditions
    *************************************************************************/

    //lightbox inclusion

    $condition = !empty($avia_config[‘use_standard_lightbox’]) && ( ‘disabled’ != $avia_config[‘use_standard_lightbox’] );
    avia_enqueue_style_conditionally( $condition , ‘avia-popup-css’, $template_url.”/js/aviapopup/magnific-popup.css”, array(‘avia-layout’), $vn, ‘screen’);
    avia_enqueue_style_conditionally( $condition , ‘avia-lightbox’, $template_url.”/css/avia-snippet-lightbox.css”, array(‘avia-layout’), $vn, ‘screen’);
    avia_enqueue_script_conditionally( $condition , ‘avia-popup-js’ , $template_url.’/js/aviapopup/jquery.magnific-popup.min.js’, array(‘jquery’), $vn, true);
    avia_enqueue_script_conditionally( $condition , ‘avia-lightbox-activation’, $template_url.”/js/avia-snippet-lightbox.js”, array(‘avia-default’), $vn, true);

    //mega menu inclusion (only necessary with sub menu items)

    $condition = (avia_get_submenu_count(‘avia’) > 0);
    avia_enqueue_script_conditionally( $condition , ‘avia-megamenu’, $template_url.”/js/avia-snippet-megamenu.js”, array(‘avia-default’), $vn, true);

    //sidebar menu inclusion (only necessary when header position is set to be a sidebar)

    $condition = (isset($options[‘header_position’]) && $options[‘header_position’] != “header_top”);
    avia_enqueue_script_conditionally( $condition , ‘avia-sidebarmenu’, $template_url.”/js/avia-snippet-sidebarmenu.js”, array(‘avia-default’), $vn, true);

    //sticky header with header size calculator

    $condition = (isset($options[‘header_position’]) && $options[‘header_position’] == “header_top”);
    $condition2 = (isset($options[‘header_sticky’]) && $options[‘header_sticky’] == “header_sticky”) && $condition;
    avia_enqueue_script_conditionally( $condition2 , ‘avia-sticky-header’, $template_url.”/js/avia-snippet-sticky-header.js”, array(‘avia-default’), $vn, true);

    //site preloader

    $condition = (isset($options[‘preloader’]) && $options[‘preloader’] == “preloader”);
    avia_enqueue_script_conditionally( $condition , ‘avia-siteloader-js’, $template_url.”/js/avia-snippet-site-preloader.js”, array(‘avia-default’), $vn, true, false);
    avia_enqueue_style_conditionally( $condition , ‘avia-siteloader’, $template_url.”/css/avia-snippet-site-preloader.css”, array(‘avia-layout’), $vn, ‘screen’, false);

    //cookie consent

    $condition = (isset($options[‘cookie_consent’]) && $options[‘cookie_consent’] == “cookie_consent”);
    avia_enqueue_script_conditionally( $condition , ‘avia-cookie-js’ , $template_url.”/js/avia-snippet-cookieconsent.js”, array(‘avia-default’), $vn, true);
    avia_enqueue_style_conditionally( $condition , ‘avia-cookie-css’, $template_url.”/css/avia-snippet-cookieconsent.css”, array(‘avia-layout’), $vn, ‘screen’);

    //load widget css only if we got active widgets

    $condition = (avia_get_active_widget_count() > 0);
    avia_enqueue_style_conditionally( $condition , ‘avia-widget-css’, $template_url.”/css/avia-snippet-widget.css”, array(‘avia-layout’), $vn, ‘screen’);

    //load mediaelement js

    $condition = !( isset($options[‘disable_mediaelement’]) && $options[‘disable_mediaelement’] == “disable_mediaelement” ) && av_video_assets_required();
    $condition2 = ( version_compare( get_bloginfo( ‘version’ ), ‘4.9’, ‘>=’ ) ) && $condition;
    avia_enqueue_script_conditionally( $condition , ‘wp-mediaelement’);
    avia_enqueue_style_conditionally( $condition2 , ‘wp-mediaelement’); //With WP 4.9 we need to load the stylesheet seperately

    //comment reply script

    global $post;
    $condition = !( isset($options[‘disable_blog’]) && $options[‘disable_blog’] == “disable_blog” ) && $post && comments_open();
    $condition = ( is_singular() && get_option( ‘thread_comments’ ) ) && $condition;
    avia_enqueue_script_conditionally( $condition , ‘comment-reply’);

    //rtl inclusion

    avia_enqueue_style_conditionally( is_rtl() , ‘avia-rtl’, $template_url.”/css/rtl.css”, array(), $vn, ‘all’);

    //disable jquery migrate if no plugins are active (enfold does not need it) or if user asked for it in optimization options

    $condition = avia_count_active_plugins() == 0 || (isset($options[‘disable_jq_migrate’]) && $options[‘disable_jq_migrate’] != “disable_jq_migrate”);
    if(!$condition) avia_disable_query_migrate();

    //move jquery to footer if no unkown plugins are active

    if(av_count_untested_plugins() == 0 || (isset($options[‘jquery_in_footer’]) && $options[‘jquery_in_footer’] == “jquery_in_footer”) ){
    av_move_jquery_into_footer();
    }

    /************************************************************************
    Inclusion of the dynamic stylesheet
    *************************************************************************/

    global $avia;

    $safe_name = avia_backend_safe_string($avia->base_data[‘prefix’]);
    $safe_name = apply_filters(‘avf_dynamic_stylesheet_filename’, $safe_name);

    if( get_option(‘avia_stylesheet_exists’.$safe_name) == ‘true’ )
    {
    $avia_upload_dir = wp_upload_dir();

    /**
    * Change the default dynamic upload url
    *
    * @since 4.4
    */

    $avia_dyn_upload_path = apply_filters(‘avf_dyn_stylesheet_dir_url’, $avia_upload_dir[‘baseurl’] . ‘/dynamic_avia’ );
    $avia_dyn_upload_path = trailingslashit( $avia_dyn_upload_path );

    if( is_ssl() )
    {
    $avia_dyn_upload_path = str_replace( “http://&#8221;, “https://&#8221;, $avia_dyn_upload_path );
    }

    /**
    * Change the default dynamic stylesheet name
    *
    * @since 4.4
    */

    $avia_dyn_stylesheet_url = apply_filters( ‘avf_dyn_stylesheet_file_url’, $avia_dyn_upload_path . $safe_name . ‘.css’ );

    $version_number = get_option( ‘avia_stylesheet_dynamic_version’ . $safe_name );
    if( empty( $version_number ) )
    {
    $version_number = $vn;
    }

    wp_enqueue_style( ‘avia-dynamic’, $avia_dyn_stylesheet_url, array(), $version_number, ‘all’ );
    }

    wp_enqueue_style( ‘avia-custom’);

    if($child_theme_url != $template_url)
    {
    wp_enqueue_style( ‘avia-style’);
    }

    }
    }

    if(!function_exists(‘avia_remove_default_video_styling’))
    {
    if(!is_admin()){
    add_action(‘wp_footer’, ‘avia_remove_default_video_styling’, 1);
    }

    function avia_remove_default_video_styling()
    {
    /**
    * remove default style for videos
    *
    * With WP 4.9 we need to load the stylesheet seperately – therefore we must not remove it
    */

    if( version_compare( get_bloginfo( ‘version’ ), ‘4.9’, ‘<‘ ) )
    {
    wp_dequeue_style( ‘mediaelement’ );
    }

    // wp_dequeue_script( ‘wp-mediaelement’ );
    // wp_dequeue_style( ‘wp-mediaelement’ );
    }
    }

    /*
    * Activate native wordpress navigation menu and register a menu location
    */

    if(!function_exists(‘avia_nav_menus’))
    {
    function avia_nav_menus()
    {
    global $avia_config, $wp_customize;

    add_theme_support(‘nav_menus’);

    foreach($avia_config[‘nav_menus’] as $key => $value)
    {
    //wp-admin\customize.php does not support html code in the menu description – thus we need to strip it
    $name = (!empty($value[‘plain’]) && !empty($wp_customize)) ? $value[‘plain’] : $value[‘html’];
    register_nav_menu($key, THEMENAME.’ ‘.$name);
    }
    }

    $avia_config[‘nav_menus’] = array( ‘avia’ => array(‘html’ => __(‘Main Menu’, ‘avia_framework’)),
    ‘avia2’ => array(
    ‘html’ => ”.__(‘Secondary Menu’, ‘avia_framework’).’ <br/><small>(‘.__(‘Will be displayed if you selected a header layout that supports a submenu’, ‘avia_framework’).’ ‘.__(‘here’, ‘avia_framework’).’)</small>’,
    ‘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_nav_menus(); //call the function immediatly to activate
    }

    /*
    * load some frontend functions in folder include:
    */

    require_once( ‘includes/admin/register-portfolio.php’ ); // register custom post types for portfolio entries
    require_once( ‘includes/admin/register-widget-area.php’ ); // register sidebar widgets for the sidebar and footer
    require_once( ‘includes/loop-comments.php’ ); // necessary to display the comments properly
    require_once( ‘includes/helper-template-logic.php’ ); // holds the template logic so the theme knows which tempaltes to use
    require_once( ‘includes/helper-social-media.php’ ); // holds some helper functions necessary for twitter and facebook buttons
    require_once( ‘includes/helper-post-format.php’ ); // holds actions and filter necessary for post formats
    require_once( ‘includes/helper-markup.php’ ); // holds the markup logic (schema.org and html5)
    require_once( ‘includes/helper-assets.php’ ); // holds asset managment functions
    require_once( ‘includes/helper-privacy.php’ ); // holds privacy managment shortcodes and functions

    if(current_theme_supports(‘avia_conditionals_for_mega_menu’))
    {
    require_once( ‘includes/helper-conditional-megamenu.php’ ); // holds the walker for the responsive mega menu
    }

    require_once( ‘includes/helper-responsive-megamenu.php’ ); // holds the walker for the responsive mega menu

    //adds the plugin initalization scripts that add styles and functions

    require_once( ‘config-bbpress/config.php’ ); //compatibility with bbpress forum plugin
    require_once( ‘config-templatebuilder/config.php’ ); //templatebuilder plugin
    require_once( ‘config-gravityforms/config.php’ ); //compatibility with gravityforms plugin
    require_once( ‘config-woocommerce/config.php’ ); //compatibility with woocommerce plugin
    require_once( ‘config-wordpress-seo/config.php’ ); //compatibility with Yoast WordPress SEO plugin
    require_once( ‘config-menu-exchange/config.php’ ); //compatibility with Zen Menu Logic and Themify_Conditional_Menus plugin

    if(!current_theme_supports(‘deactivate_tribe_events_calendar’))
    {
    require_once( ‘config-events-calendar/config.php’ ); //compatibility with the Events Calendar plugin
    }

    // if(is_admin())
    require_once( ‘includes/admin/helper-compat-update.php’); // include helper functions for new versions

    /*
    * dynamic styles for front and backend
    */

    if(!function_exists(‘avia_custom_styles’))
    {
    function avia_custom_styles()
    {
    require_once( ‘includes/admin/register-dynamic-styles.php’ ); // register the styles for dynamic frontend styling
    avia_prepare_dynamic_styles();
    }

    add_action(‘init’, ‘avia_custom_styles’, 20);
    add_action(‘admin_init’, ‘avia_custom_styles’, 20);
    }

    /*
    * activate framework widgets
    */

    if(!function_exists(‘avia_register_avia_widgets’))
    {
    function avia_register_avia_widgets()
    {
    register_widget( ‘avia_newsbox’ );
    register_widget( ‘avia_portfoliobox’ );
    register_widget( ‘avia_socialcount’ );
    register_widget( ‘avia_partner_widget’ );
    register_widget( ‘avia_google_maps’ );
    register_widget( ‘avia_fb_likebox’ );
    register_widget( ‘avia_instagram_widget’ );

    }

    avia_register_avia_widgets(); //call the function immediatly to activate
    }

    /*
    * add post format options
    */

    add_theme_support( ‘post-formats’, array(‘link’, ‘quote’, ‘gallery’,’video’,’image’,’audio’ ) );

    /*
    * Remove the default shortcode function, we got new ones that are better ;)
    */

    add_theme_support( ‘avia-disable-default-shortcodes’, true);

    /*
    * compat mode for easier theme switching from one avia framework theme to another
    */

    add_theme_support( ‘avia_post_meta_compat’);

    /*
    * make sure that enfold widgets dont use the old slideshow parameter in widgets, but default post thumbnails
    */

    add_theme_support(‘force-post-thumbnails-in-widget’);

    /*
    * display page titles via wordpress default output
    *
    * @since 3.6
    */

    function av_theme_slug_setup()
    {
    add_theme_support( ‘title-tag’ );
    }

    add_action( ‘after_setup_theme’, ‘av_theme_slug_setup’ );

    /*title fallback (up to WP 4.1)*/

    if ( ! function_exists( ‘_wp_render_title_tag’ ) )
    {
    function av_theme_slug_render_title()
    {
    echo “<title>” . avia_set_title_tag() .”</title>”;
    }
    add_action( ‘wp_head’, ‘av_theme_slug_render_title’ );
    }

    /*
    * register custom functions that are not related to the framework but necessary for the theme to run
    */

    require_once( ‘functions-enfold.php’);

    /*
    * add option to edit elements via css class
    */
    // add_theme_support(‘avia_template_builder_custom_css’);

    // Defer Javascripts – added by #SG. Meant to be at the very end of the code.
    // Defer jQuery Parsing using the HTML5 defer property
    if (!(is_admin() )) {
    function defer_parsing_of_js ( $url ) {
    if ( FALSE === strpos( $url, ‘.js’ ) ) return $url;
    if ( strpos( $url, ‘jquery.js’ ) ) return $url;
    // return “$url’ defer “;
    return “$url’ defer onload='”;
    }
    add_filter( ‘clean_url’, ‘defer_parsing_of_js’, 11, 1 );
    }
    //End of added code by #SG

    #1005040

    Thanks, Ismail. I installed the plugin and regenerated the thumbnails (Tools > Regenerate) but as you can see, the pics are still blurry. https://www.screencast.com/t/4i0qfd8H39

    #1004909

    Hi,

    The single product pages are using images that are 100x100px in size. Please install the following plugin and then regenerate the thumbnails.

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

    Best regards,
    Ismael

    #1004769

    In reply to: Symmetrical portfolio

    Hi,

    Leave the default options and just tick or enable the crop parameter of the specified thumbnails above (“portfolio” and “portfolio_small”).
    Yes, you can delete the plugin after regenerating the thumbnails. If you want to test it first, edit one or two of the portfolio thumbnails, remove the current featured image and then re-upload it. You may need to remove the images directly in the Media > Library panel.

    Best regards,
    Ismael

    videotonart
    Participant

    Hi,

    I saw a couple of older posts with this problem, but could not find a solution.
    Problem: In portfolio grid, most images are cropped correctly, but some are longer or shorter. Width seems to be correct in all items. Tried to remove item picture and put it in again, no change.

    Wordpress 4.9.8
    Enfold 4.4.1

    #1004379

    Hi,
    You could use ajax to check if a preview image exists (see https://stackoverflow.com/questions/4301968/checking-a-url-in-jquery-javascript ). If yes, replace the img src (a.avia_image), otherwise don’t.

    it would be nice to have for the img alb an input field for external images.

    To be honest I’m not a big fan of this idea because we use some wordpress functions to fetch the image meta data (alt, title attributes, height, width of the image, etc.) and these functions won’t work with external images. Some users would then start to complain that no title, alt, etc. attributes are set. Also – as you pointed out – the textblock element with the “Add media” button can be used to embed external resources.

    If you’re familiar with php coding I’d recommend to create a new element based on the image element for youtube links. It would be much easier to modify the image and video urls with php, you could also use wp_remote_get ( https://codex.wordpress.org/Function_Reference/wp_remote_get ) to fetch the preview thumbnails. In addition this solution would be better for the website performance if you use a cache plugin because the user would just load static html files which already contain the right image/video urls (no injections, no ajax requests, etc.).

    By the way: there is actually no longer a contribution to featured Requests ?

    It depends on many factors but the most important one is time and/or if we’re busy or no. At the moment we’ve a backlog which does not allow us to spend time on “beyond the scope of support cases” (see https://themeforest.net/page/item_support_policy#whats-included-item-support ). If there’s a quick solution (let’s say up to 5 minutes of coding + research) we’ll help you, if it’s a “very interesting thing” which can or will be part of a future update, we’ll help you. Also if I know the answer because of a personal project, I’ll of course post it. However if I don’t have a quick answer and I don’t have time to tinker with the code I can’t help out because standard support requests and bug fixes have a higher priority than feature requests.

    Best regards,
    Dude

    #1004304

    so i got this code for now:
    (just for that test page-id: 33150)

    function youtube_fix(){
    if (is_page(33150)){
    ?>
    <script>
    (function($){ 
    
    		$('a.avia_image[href*="www.youtube"]').each(function() {
    			regex = /(?:youtube(?:-nocookie)?\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})/;
    			var ID = $(this).attr("href").match(regex)[1];
    			$(this).find('img').attr("src", 'https://img.youtube.com/vi/'+ ID +'/maxresdefault.jpg');
    		});
    
    	$('body').on('DOMNodeInserted', function(){
    		$('iframe.mfp-iframe[src*="youtube.com"]').each(function() {
    		var _src = $(this).attr("src")
    		$(this).attr("src", _src +  '&cc_load_policy=1&enablejsapi=1&ecver=2&playsinline=1&rel=0&showinfo=0&color=white&iv_load_policy=3')
    		});
    	})
    })(jQuery);
    </script>
    <?php
    }
    }
    add_action('wp_footer', 'youtube_fix');

    but if there was no maxresdefault.jpg it should show the originally used image – how can i insert here an if else ??
    see now test-page – the one on the left got a maxres Thumbnail – the right one not –
    the 0.jpg always exists – but has black bars top/bottom
    https://webers-testseite.de/youtube-videotestseite/

    #1004303

    Hey Blue_Bear,

    I looked into it and it’s not a theme issue. We use the woocommerce cart widget to display the cart items in the main menu. Normally the cart widget shows the number of items in a field called “quantity”. The html code then looks like:

    
    <ul class="woocommerce-mini-cart cart_list product_list_widget ">
     	<li class="woocommerce-mini-cart-item mini_cart_item">
    <a href="https://kriesi.at/themes/enfold/cart/?remove_item=51174add1c52758f33d414ceaf3fe6ba&_wpnonce=6a85a5a0bd" class="remove" aria-label="Remove this item" data-product_id="2114" data-product_sku="W009">×</a>													<a href="https://kriesi.at/themes/enfold/product/weber-one-touch-gold-premium-charcoal-grill-57cm/">
    <img width="120" height="120" src="//kriesi.at/themes/enfold/wp-content/uploads/sites/37/2013/05/13-120x120.jpg" class="attachment-shop_thumbnail size-shop_thumbnail wp-post-image" alt="">Summer Trend&nbsp;							</a>
    <span class="quantity">1 × <span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">£</span>225.00</span></span></li>
    </ul>
    

    In your case the cart widget code (with a pack) looks like:

    
    <ul class="woocommerce-mini-cart cart_list product_list_widget ">
     	<li class="woocommerce-mini-cart-item mini_cart_item">
    <a href="https://neo-peauapeau.com/panier/?remove_item=cd6f57c911180696a3e001f8a0b7d95d&_wpnonce=df2d4cec36" class="remove remove_from_cart_button" aria-label="Enlever cet élément" data-product_id="1122" data-cart_item_key="cd6f57c911180696a3e001f8a0b7d95d" data-product_sku="">×</a>													<a href="https://neo-peauapeau.com/produit/pack-duo/?wccp_component_selection%5B1535655890%5D=519&wccp_component_selection%5B1535655891%5D=519&wccp_component_quantity%5B1535655890%5D=1&wccp_component_quantity%5B1535655891%5D=1&wccp_variation_id%5B1535655890%5D=595&wccp_variation_id%5B1535655891%5D=595&wccp_attribute_taille%5B1535655890%5D=l&wccp_attribute_taille%5B1535655891%5D=l&update-composite=cd6f57c911180696a3e001f8a0b7d95d">
    <img width="300" height="300" src="https://i2.wp.com/neo-peauapeau.com/wp-content/uploads/2018/08/pack-duo.jpg?resize=300%2C300&ssl=1" class="attachment-woocommerce_thumbnail size-woocommerce_thumbnail wp-post-image" alt="Pack Duo - Néo peau à peau"><small class="avia-copyright">Néo peau à peau</small>Pack duo × 1&nbsp;</a>
    <span class="quantity"><span class="woocommerce-Price-amount amount">54,00<span class="woocommerce-Price-currencySymbol">€</span></span></span></li>
    </ul>
    

    and the quantity number is missing.

    I’d recommend to report this to the plugin developers. If they can provide a fix for the cart widget you can use Enfolder cart item counter.

    If not I’d recommend to hide the counter with following css code:

    
    #top #wrap_all .av-cart-counter.av-active-counter {
        display: none;
    }
    

    Best regards,
    Dude

    #1004300

    Hi,

    I fixed it for you. I used this code:

    
    <?php
    /**
     * Featured Image Slider
     * 
     * Display a Slideshow of featured images from various posts
     */
    if ( ! defined( 'ABSPATH' ) ) {  exit;  }    // Exit if accessed directly
    
    if ( !class_exists( 'avia_sc_featureimage_slider' ))
    {
    	class avia_sc_featureimage_slider extends aviaShortcodeTemplate
    	{
    
    		static $slide_count = 0;
    
    		/**
    		 * Create the config array for the shortcode button
    		 */
    		function shortcode_insert_button()
    		{
    			/**
    			 * inconsistent behaviour up to 4.2: a new element was created with a close tag, after editing it was self closing !!!
    			 * @since 4.2.1: We make new element self closing now because no id='content' exists.
    			 */
    			$this->config['self_closing']	=	'yes';
    
    			$this->config['name']		= __('Featured Image Slider', 'avia_framework' );
    			$this->config['tab']		= __('Media Elements', 'avia_framework' );
    			$this->config['icon']		= AviaBuilder::$path['imagesURL']."sc-postslider.png";
    			$this->config['order']		= 30;
    			$this->config['target']		= 'avia-target-insert';
    			$this->config['shortcode'] 	= 'av_feature_image_slider';
    			$this->config['tooltip'] 	= __('Display a Slideshow of featured images from various posts', 'avia_framework' );
    			$this->config['drag-level'] = 3;
    			$this->config['preview'] 		= 0;
    			$this->config['disabling_allowed'] = true;
    		}
    
    		function extra_assets()
    			{
    				//load css
    				wp_enqueue_style( 'avia-module-slideshow' , AviaBuilder::$path['pluginUrlRoot'].'avia-shortcodes/slideshow/slideshow.css' , array('avia-layout'), false );
    				wp_enqueue_style( 'avia-module-slideshow-feature-image' , AviaBuilder::$path['pluginUrlRoot'].'avia-shortcodes/slideshow_feature_image/slideshow_feature_image.css' , array('avia-module-slideshow'), false );
    
    					//load js
    				wp_enqueue_script( 'avia-module-slideshow' , AviaBuilder::$path['pluginUrlRoot'].'avia-shortcodes/slideshow/slideshow.js' , array('avia-shortcodes'), false, TRUE );
    
    			}
    
    		/**
    		 * Popup Elements
    		 *
    		 * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
    		 * opens a modal window that allows to edit the element properties
    		 *
    		 * @return void
    		 */
    		function popup_elements()
    		{
    			$this->elements = array(
    
    				array(
    					"type" 	=> "tab_container", 'nodescription' => true
    				),
    
    				array(
    					"type" 	=> "tab",
    					"name"  => __("Slider Content" , 'avia_framework'),
    					'nodescription' => true
    				),
    
    				array(
    						"name" 	=> __("Which Entries?", 'avia_framework' ),
    						"desc" 	=> __("Select which entries should be displayed by selecting a taxonomy", 'avia_framework' ),
    						"id" 	=> "link",
    						"fetchTMPL"	=> true,
    						"type" 	=> "linkpicker",
    						"subtype"  => array( __('Display Entries from:',  'avia_framework' )=>'taxonomy'),
    						"multiple"	=> 6,
    						"std" 	=> "category"
    				),
    
    				array(
    						"name" 	=> __("WooCommerce Product visibility?", 'avia_framework' ),
    						"desc" 	=> __("Select the visibility of WooCommerce products. Default setting can be set at Woocommerce -&gt Settings -&gt Products -&gt Inventory -&gt Out of stock visibility", 'avia_framework' ),
    						"id" 	=> "wc_prod_visible",
    						"type" 	=> "select",
    						"std" 	=> "",
    						"required" => array( 'link', 'parent_in_array', implode( ' ', get_object_taxonomies( 'product', 'names' ) ) ),
    						"subtype" => array(
    							__('Use default WooCommerce Setting (Settings -> Products -> Out of stock visibility)',  'avia_framework' ) => '',
    							__('Hide products out of stock',  'avia_framework' ) => 'hide',
    							__('Show products out of stock',  'avia_framework' )  => 'show')
    					),
    
    				array(
    						"name" 	=> __( "Sorting Options", 'avia_framework' ),
    						"desc" 	=> __( "Here you can choose how to sort the products. Default setting can be set at Woocommerce -&gt Settings -&gt Products -&gt Display -&gt Default product sorting", 'avia_framework' ),
    						"id" 	=> "prod_order_by",
    						"type" 	=> "select",
    						"std" 	=> "",
    						"required" => array( 'link', 'parent_in_array', implode( ' ', get_object_taxonomies( 'product', 'names' ) ) ),
    						"subtype" => array( 
    								__('Use defaut (defined at Woocommerce -> Settings -&gt Default product sorting) ', 'avia_framework' ) =>	'',
    								__('Sort alphabetically', 'avia_framework' )			=>	'title',
    								__('Sort by most recent', 'avia_framework' )			=>	'date',
    								__('Sort by price', 'avia_framework' )					=>	'price',
    								__('Sort by popularity', 'avia_framework' )				=>	'popularity',
    								__('Sort randomly', 'avia_framework' )					=>	'rand'
    							)
    					),
    
    				array(
    						"name" 	=> __( "Sorting Order", 'avia_framework' ),
    						"desc" 	=> __( "Here you can choose the order of the result products. Default setting can be set at Woocommerce -&gt Settings -&gt Products -&gt Display -&gt Default product sorting", 'avia_framework' ),
    						"id" 	=> "prod_order",
    						"type" 	=> "select",
    						"std" 	=> "",
    						"required" => array( 'link', 'parent_in_array', implode( ' ', get_object_taxonomies( 'product', 'names' ) ) ),
    						"subtype" => array( 
    								__('Use defaut (defined at Woocommerce -&gt Settings -&gt Default product sorting)', 'avia_framework' ) =>	'',
    								__('Ascending', 'avia_framework' )			=>	'ASC',
    								__('Descending', 'avia_framework' )			=>	'DESC'
    							)
    					),
    
    				array(
    						"name" 	=> __("Entry Number", 'avia_framework' ),
    						"desc" 	=> __("How many items should be displayed?", 'avia_framework' ),
    						"id" 	=> "items",
    						"type" 	=> "select",
    						"std" 	=> "3",
    						"subtype" => AviaHtmlHelper::number_array(1,100,1, array('All'=>'-1'))),
    
                    array(
                        "name" 	=> __("Offset Number", 'avia_framework' ),
                        "desc" 	=> __("The offset determines where the query begins pulling posts. Useful if you want to remove a certain number of posts because you already query them with another element.", 'avia_framework' ),
                        "id" 	=> "offset",
                        "type" 	=> "select",
                        "std" 	=> "enforce_duplicates",
                        "subtype" => AviaHtmlHelper::number_array(1,100,1, 
    
    	                    array(
    
    	                    __('Deactivate offset','avia_framework')=>'0', 
    	                    __('Do not allow duplicate posts on the entire page (set offset automatically)', 'avia_framework' ) =>'no_duplicates',
    	                    __('Enforce duplicates (if a blog element on the page should show the same entries as this slider use this setting)', 'avia_framework' ) =>'enforce_duplicates'
    
    	                    	)
                        )
                        ),
    
    				array(
    						"name" 	=> __("Title and Read More Button",'avia_framework' ),
    						"desc" 	=> __("Choose if you want to only display the post title or title and a call to action button",'avia_framework' ),
    						"id" 	=> "contents",
    						"type" 	=> "select",
    						"std" 	=> "title",
    						"subtype" => array(
    							__('Only Title',  'avia_framework' ) =>'title',
    							__('Title + Read More Button',  'avia_framework' ) =>'title_read_more',
    							__('Title + Excerpt + Read More Button',  'avia_framework' ) =>'title_excerpt_read_more',
    							)
    					),
    
    				array(
    		                    "name"  => __("Slider Width/Height Ratio", 'avia_framework' ),
    		                    "desc"  => __("The slider will always stretch the full available width. Here you can enter the corresponding height (eg: 4:3, 16:9) or a fixed height in px (eg: 300px)", 'avia_framework' ),
    		                    "id"    => "slider_size",
    		                    "type" 	=> "input",
    							"std" 	=> "16:9",
    					),				
    
    				array(
    							"name" 	=> __("Preview Image Size", 'avia_framework' ),
    							"desc" 	=> __("Set the image size of the preview images", 'avia_framework' ),
    							"id" 	=> "preview_mode",
    							"type" 	=> "select",
    							"std" 	=> "auto",
    							"subtype" => array(
    
    							__('Set the preview image size automatically based on slider height','avia_framework' ) =>'auto',
    							__('Choose the preview image size manually (select thumbnail size)','avia_framework' ) =>'custom')),
    
    				array(
    							"name" 	=> __("Select custom preview image size", 'avia_framework' ),
    							"desc" 	=> __("Choose image size for Preview Image", 'avia_framework' ),
    							"id" 	=> "image_size",
    							"type" 	=> "select",
    							"required" 	=> array('preview_mode','equals','custom'),
    							"std" 	=> "portfolio",
    							"subtype" =>  AviaHelper::get_registered_image_sizes(array('logo'))
    							),
    
    				array(	
    						"name" 	=> __("Slideshow control styling?",'avia_framework' ),
    						"desc" 	=> __("Here you can select if and how to display the slideshow controls",'avia_framework' ),
    						"id" 	=> "control_layout",
    						"type" 	=> "select",
    						"std" 	=> "",
    						"subtype" => array(__('Default','avia_framework' ) =>'av-control-default',__('Minimal White','avia_framework' ) =>'av-control-minimal', __('Minimal Black','avia_framework' ) =>'av-control-minimal av-control-minimal-dark',__('Hidden','avia_framework' ) =>'av-control-hidden')),	
    
    				array(
    				"type" 	=> "close_div",
    				'nodescription' => true
    					),
    
    				array(
    						"type" 	=> "tab",
    						"name"	=> __("Slider Transitions",'avia_framework' ),
    						'nodescription' => true
    					),
    
    				array(
    							"name" 	=> __("Transition", 'avia_framework' ),
    							"desc" 	=> __("Choose the transition for your Slider.", 'avia_framework' ),
    							"id" 	=> "animation",
    							"type" 	=> "select",
    							"std" 	=> "fade",
    							"subtype" => array(__('Slide','avia_framework' ) =>'slide',__('Fade','avia_framework' ) =>'fade'),
    							),
    
    				array(
    						"name" 	=> __("Autorotation active?",'avia_framework' ),
    						"desc" 	=> __("Check if the slideshow should rotate by default",'avia_framework' ),
    						"id" 	=> "autoplay",
    						"type" 	=> "select",
    						"std" 	=> "no",
    						"subtype" => array(__('Yes','avia_framework' ) =>'yes',__('No','avia_framework' ) =>'no')),
    
    				array(
    					"name" 	=> __("Slideshow autorotation duration",'avia_framework' ),
    					"desc" 	=> __("Slideshow will rotate every X seconds",'avia_framework' ),
    					"id" 	=> "interval",
    					"type" 	=> "select",
    					"std" 	=> "5",
    					"required" 	=> array('autoplay','equals','yes'),
    					"subtype" =>
    					array('3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7','8'=>'8','9'=>'9','10'=>'10','15'=>'15','20'=>'20','30'=>'30','40'=>'40','60'=>'60','100'=>'100')),
    
    				array(
    				"type" 	=> "close_div",
    				'nodescription' => true
    				),	
    
    				array(
    						"type" 	=> "tab",
    						"name"	=> __("Slide Overlay",'avia_framework' ),
    						'nodescription' => true
    					),	
    
    				array(	
    										"name" 	=> __("Enable Overlay?", 'avia_framework' ),
    										"desc" 	=> __("Check if you want to display a transparent color and/or pattern overlay above your slideshow image/video", 'avia_framework' ),
    										"id" 	=> "overlay_enable",
    										"std" 	=> "",
    										"type" 	=> "checkbox"),
    
    								 array(
    									"name" 	=> __("Overlay Opacity",'avia_framework' ),
    									"desc" 	=> __("Set the opacity of your overlay: 0.1 is barely visible, 1.0 is opaque ", 'avia_framework' ),
    									"id" 	=> "overlay_opacity",
    									"type" 	=> "select",
    									"std" 	=> "0.5",
    			                        "required" => array('overlay_enable','not',''),
    									"subtype" => array(   __('0.1','avia_framework' )=>'0.1',
    									                      __('0.2','avia_framework' )=>'0.2',
    									                      __('0.3','avia_framework' )=>'0.3',
    									                      __('0.4','avia_framework' )=>'0.4',
    									                      __('0.5','avia_framework' )=>'0.5',
    									                      __('0.6','avia_framework' )=>'0.6',
    									                      __('0.7','avia_framework' )=>'0.7',
    									                      __('0.8','avia_framework' )=>'0.8',
    									                      __('0.9','avia_framework' )=>'0.9',
    									                      __('1.0','avia_framework' )=>'1',
    									                      )
    							  		),
    
    							  	array(
    										"name" 	=> __("Overlay Color", 'avia_framework' ),
    										"desc" 	=> __("Select a custom  color for your overlay here. Leave empty if you want no color overlay", 'avia_framework' ),
    										"id" 	=> "overlay_color",
    										"type" 	=> "colorpicker",
    			                        	"required" => array('overlay_enable','not',''),
    										"std" 	=> "",
    									),
    
    							  	array(
    			                        "required" => array('overlay_enable','not',''),
    									"id" 	=> "overlay_pattern",
    									"name" 	=> __("Background Image", 'avia_framework'),
    									"desc" 	=> __("Select an existing or upload a new background image", 'avia_framework'),
    									"type" 	=> "select",
    									"subtype" => array(__('No Background Image', 'avia_framework')=>'',__('Upload custom image', 'avia_framework')=>'custom'),
    									"std" 	=> "",
    									"folder" => "images/background-images/",
    									"folderlabel" => "",
    									"group" => "Select predefined pattern",
    									"exclude" => array('fullsize-', 'gradient')
    								),
    
    							  	array(
    										"name" 	=> __("Custom Pattern",'avia_framework' ),
    										"desc" 	=> __("Upload your own seamless pattern",'avia_framework' ),
    										"id" 	=> "overlay_custom_pattern",
    										"type" 	=> "image",
    										"fetch" => "url",
    										"secondary_img"=>true,
    			                        	"required" => array('overlay_pattern','equals','custom'),
    										"title" => __("Insert Pattern",'avia_framework' ),
    										"button" => __("Insert",'avia_framework' ),
    										"std" 	=> ""),
    
    				array(
    				"type" 	=> "close_div",
    				'nodescription' => true
    				),
    
    				array(
    									"type" 	=> "tab",
    									"name"	=> __("Screen Options",'avia_framework' ),
    									'nodescription' => true
    								),
    
    								array(
    								"name" 	=> __("Element Visibility",'avia_framework' ),
    								"desc" 	=> __("Set the visibility for this element, based on the device screensize.", 'avia_framework' ),
    								"type" 	=> "heading",
    								"description_class" => "av-builder-note av-neutral",
    								),
    
    								array(	
    										"desc" 	=> __("Hide on large screens (wider than 990px - eg: Desktop)", 'avia_framework'),
    										"id" 	=> "av-desktop-hide",
    										"std" 	=> "",
    										"container_class" => 'av-multi-checkbox',
    										"type" 	=> "checkbox"),
    
    								array(	
    
    										"desc" 	=> __("Hide on medium sized screens (between 768px and 989px - eg: Tablet Landscape)", 'avia_framework'),
    										"id" 	=> "av-medium-hide",
    										"std" 	=> "",
    										"container_class" => 'av-multi-checkbox',
    										"type" 	=> "checkbox"),
    
    								array(	
    
    										"desc" 	=> __("Hide on small screens (between 480px and 767px - eg: Tablet Portrait)", 'avia_framework'),
    										"id" 	=> "av-small-hide",
    										"std" 	=> "",
    										"container_class" => 'av-multi-checkbox',
    										"type" 	=> "checkbox"),
    
    								array(	
    
    										"desc" 	=> __("Hide on very small screens (smaller than 479px - eg: Smartphone Portrait)", 'avia_framework'),
    										"id" 	=> "av-mini-hide",
    										"std" 	=> "",
    										"container_class" => 'av-multi-checkbox',
    										"type" 	=> "checkbox"),
    
    								array(
    									"name" 	=> __("Caption Title Font Size",'avia_framework' ),
    									"desc" 	=> __("Set the font size for the element title, based on the device screensize.", 'avia_framework' ),
    									"type" 	=> "heading",
    									"description_class" => "av-builder-note av-neutral",
    									),
    
    									array(	"name" 	=> __("Font Size for medium sized screens (between 768px and 989px - eg: Tablet Landscape)", 'avia_framework' ),
    						            "id" 	=> "av-medium-font-size-title",
    						            "type" 	=> "select",
    						            "subtype" => AviaHtmlHelper::number_array(10,120,1, array( __("Default", 'avia_framework' )=>'' , __("Hidden", 'avia_framework' )=>'hidden' ), "px"),
    						            "std" => ""),
    
    						            array(	"name" 	=> __("Font Size for small screens (between 480px and 767px - eg: Tablet Portrait)", 'avia_framework' ),
    						            "id" 	=> "av-small-font-size-title",
    						            "type" 	=> "select",
    						            "subtype" => AviaHtmlHelper::number_array(10,120,1, array( __("Default", 'avia_framework' )=>'', __("Hidden", 'avia_framework' )=>'hidden'), "px"),
    						            "std" => ""),
    
    									array(	"name" 	=> __("Font Size for very small screens (smaller than 479px - eg: Smartphone Portrait)", 'avia_framework' ),
    						            "id" 	=> "av-mini-font-size-title",
    						            "type" 	=> "select",
    						            "subtype" => AviaHtmlHelper::number_array(10,120,1, array( __("Default", 'avia_framework' )=>'', __("Hidden", 'avia_framework' )=>'hidden'), "px"),
    						            "std" => ""),
    
    						        array(
    									"name" 	=> __("Caption Content Font Size",'avia_framework' ),
    									"desc" 	=> __("Set the font size for the element content, based on the device screensize.", 'avia_framework' ),
    									"type" 	=> "heading",
    									"description_class" => "av-builder-note av-neutral",
    									),
    
    									array(	"name" 	=> __("Font Size for medium sized screens (between 768px and 989px - eg: Tablet Landscape)", 'avia_framework' ),
    						            "id" 	=> "av-medium-font-size",
    						            "type" 	=> "select",
    						            "subtype" => AviaHtmlHelper::number_array(10,120,1, array( __("Default", 'avia_framework' )=>'', __("Hidden", 'avia_framework' )=>'hidden'), "px"),
    						            "std" => ""),
    
    						            array(	"name" 	=> __("Font Size for small screens (between 480px and 767px - eg: Tablet Portrait)", 'avia_framework' ),
    						            "id" 	=> "av-small-font-size",
    						            "type" 	=> "select",
    						            "subtype" => AviaHtmlHelper::number_array(10,120,1, array( __("Default", 'avia_framework' )=>'', __("Hidden", 'avia_framework' )=>'hidden'), "px"),
    						            "std" => ""),
    
    									array(	"name" 	=> __("Font Size for very small screens (smaller than 479px - eg: Smartphone Portrait)", 'avia_framework' ),
    						            "id" 	=> "av-mini-font-size",
    						            "type" 	=> "select",
    						            "subtype" => AviaHtmlHelper::number_array(10,120,1, array( __("Default", 'avia_framework' )=>'', __("Hidden", 'avia_framework' )=>'hidden'), "px"),
    						            "std" => ""), 
    
    							array(
    									"type" 	=> "close_div",
    									'nodescription' => true
    								),
    
    				array(
    				"type" 	=> "close_div",
    				'nodescription' => true
    				),
    
    				);
    
    				if(current_theme_supports('add_avia_builder_post_type_option'))
                    {
                        $element = array(
                            "name" 	=> __("Select Post Type", 'avia_framework' ),
                            "desc" 	=> __("Select which post types should be used. Note that your taxonomy will be ignored if you do not select an assign post type.
                                          If yo don't select post type all registered post types will be used", 'avia_framework' ),
                            "id" 	=> "post_type",
                            "type" 	=> "select",
                            "multiple"	=> 6,
                            "std" 	=> "",
                            "subtype" => AviaHtmlHelper::get_registered_post_type_array()
                        );
    
                        array_unshift($this->elements, $element);
                    }
    		}
    
    		/**
    		 * Editor Element - this function defines the visual appearance of an element on the AviaBuilder Canvas
    		 * Most common usage is to define some markup in the $params['innerHtml'] which is then inserted into the drag and drop container
    		 * Less often used: $params['data'] to add data attributes, $params['class'] to modify the className
    		 *
    		 *
    		 * @param array $params this array holds the default values for $content and $args.
    		 * @return $params the return array usually holds an innerHtml key that holds item specific markup.
    		 */
    		function editor_element($params)
    			{	
    				$params['innerHtml'] = "<img src='".$this->config['icon']."' title='".$this->config['name']."' />";
    				$params['innerHtml'].= "
    <div class='avia-element-label'>".$this->config['name']."</div>
    ";
    
    				$params['innerHtml'].= "
    <div class='avia-flex-element'>"; 
    				$params['innerHtml'].= 		__('This element will stretch across the whole screen by default.','avia_framework')."
    ";
    				$params['innerHtml'].= 		__('If you put it inside a color section or column it will only take up the available space','avia_framework');
    				$params['innerHtml'].= "
    <div class='avia-flex-element-2nd'>".__('Currently:','avia_framework');
    				$params['innerHtml'].= "	<span class='avia-flex-element-stretched'>&laquo; ".__('Stretch fullwidth','avia_framework')." &raquo;</span>";
    				$params['innerHtml'].= "	<span class='avia-flex-element-content'>| ".__('Adjust to content width','avia_framework')." |</span>";
    				$params['innerHtml'].= "</div>
    </div>
    ";
    
    				return $params;
    			}
    
    		/**
    		 * Frontend Shortcode Handler
    		 *
    		 * @param array $atts array of attributes
    		 * @param string $content text within enclosing form of shortcode element
    		 * @param string $shortcodename the shortcode found, when == callback name
    		 * @return string $output returns the modified html string
    		 */
    		function shortcode_handler($atts, $content = "", $shortcodename = "", $meta = "")
    		{
    			if(isset($atts['link']))
    			{
    				$atts['link'] = explode(',', $atts['link'], 2 );
    				$atts['taxonomy'] = $atts['link'][0];
    
    				if(isset($atts['link'][1]))
    				{
    					$atts['categories'] = $atts['link'][1];
    				}
    			}
    
    			// $atts['class'] = $meta['el_class'];
    
    			extract(AviaHelper::av_mobile_sizes($atts)); //return $av_font_classes, $av_title_font_classes and $av_display_classes 
    			extract($atts);
    			$output  	= "";
    		    $class = "";
    
    			$skipSecond = false;
    			avia_sc_featureimage_slider::$slide_count++;
    
    			$params['class'] = "avia-featureimage-slider-wrap main_color  {$av_display_classes} ".$meta['el_class'].$class;
    			$params['open_structure'] = false;
    
    			$params['custom_markup'] = $atts['custom_markup'] = $meta['custom_markup'];
    
    			//we dont need a closing structure if the element is the first one or if a previous fullwidth element was displayed before
    			if($meta['index'] == 0) $params['close'] = false;
    			if(!empty($meta['siblings']['prev']['tag']) && in_array($meta['siblings']['prev']['tag'], AviaBuilder::$full_el_no_section )) $params['close'] = false;
    
    			if($meta['index'] != 0) $params['class'] .= " slider-not-first";
    
    			$params['id'] = "avia_feature_image_slider_".avia_sc_slider_full::$slide_count;
    
    			$slider  = new avia_feature_image_slider($atts);
    			$slider->query_entries();
    			$slide_html = $slider->html();
    
    			//if the element is nested within a section or a column dont create the section shortcode around it
    			if(!ShortcodeHelper::is_top_level()) return $slide_html;
    
    			// $slide_html  = "
    <div class='container'>" . $slide_html . "</div>
    ";
    
    			$output .=  avia_new_section($params);
    			$output .= 	$slide_html;
    			$output .= "</div>
    "; //close section
    
    			//if the next tag is a section dont create a new section from this shortcode
    			if(!empty($meta['siblings']['next']['tag']) && in_array($meta['siblings']['next']['tag'],  AviaBuilder::$full_el ))
    			{
    			    $skipSecond = true;
    			}
    
    			//if there is no next element dont create a new section.
    			if(empty($meta['siblings']['next']['tag']))
    			{
    			    $skipSecond = true;
    			}
    
    			if(empty($skipSecond)) {
    
    			$output .= avia_new_section(array('close'=>false, 'id' => "after_full_slider_".avia_sc_slider_full::$slide_count));
    
    			}
    
    			return $output;
    
    		}
    
    	}
    }
    
    if ( !class_exists( 'avia_feature_image_slider' ) )
    {
    	class avia_feature_image_slider
    	{
    		static  $slider = 0;
    		protected $slide_count = 0;
    		protected $atts;
    		protected $entries;
    
    		function __construct($atts = array())
    		{
    
    			$this->screen_options = AviaHelper::av_mobile_sizes($atts); //return $av_font_classes, $av_title_font_classes and $av_display_classes 
    
    			$this->atts = shortcode_atts(array(	'items' 		=> '16',
    		                                 		'taxonomy'  	=> 'category',
    		                                 		'post_type'		=> get_post_types(),
    		                                 		'contents' 		=> 'title',
    		                                 		'preview_mode' 	=> 'auto',
    												'image_size' 	=> 'portfolio',
    		                                 		'autoplay'  	=> 'no',
    												'animation' 	=> 'fade',
    												'paginate'		=> 'no',
                                                    'use_main_query_pagination' => 'no',
    												'interval'  	=> 5,
    												'class'			=> '',
    		                                 		'categories'	=> array(),
    												'wc_prod_visible'	=>	'',
    												'prod_order_by'		=>	'',
    												'prod_order'		=>	'',
    		                                 		'custom_query'	=> array(),
    		                                 		'lightbox_size' => 'large',
                                                    'offset' 		=> 0,
                                                    'bg_slider'		=>true,
                                                    'keep_pading' 	=> true,
                                                    'custom_markup' => '',
                                                    'slider_size' 	=> '16:9',
                                                    'control_layout'	=> '',
                                                    'overlay_enable' 	=> '',
    				    							'overlay_opacity' 	=> '',
    				    							'overlay_color' 	=> '',
    				    							'overlay_pattern' 	=> '',
    				    							'overlay_custom_pattern' => '',
    
    		                                 		), $atts, 'av_feature_image_slider');
    
    		   if($this->atts['autoplay'] == "no")   
    		   	$this->atts['autoplay'] = false;                               		
    
    		}
    
    		public function html()
    		{
    			$html 		= "";
    			$counter 	= 0;
    			$style   	= "";
    			$extraClass = "";
    			$style 		= "";
    			avia_feature_image_slider::$slider++;
    
    			if($this->slide_count == 0) return $html;
    
    			if(!empty($this->atts['default-height']))
    			{
    				$style = "style='padding-bottom: {{av-default-heightvar}}%;'";
    				$extraClass .= " av-default-height-applied";
    			}
    
    			if(strpos( $this->atts['slider_size'] , ":") !== false)
    			{
    				$ratio = explode(':',trim($this->atts['slider_size']));
    				if(empty($ratio[0])) $ratio[0] = 16;
    				if(empty($ratio[1])) $ratio[1] = 9;
    				$final_ratio = ((int) $ratio[0] / (int) $ratio[1]);
    				$def_height = "padding-bottom:" . (100/$final_ratio). "%";
    
    			}
    			else
    			{
    				$def_height  = (int) $this->atts['slider_size'];
    				$def_height  = "height: {$def_height}px";
    			}
    
    			extract($this->screen_options);
    
    			$style = "style='{$def_height}'";
    			if(!empty($this->atts['control_layout'])) $extraClass .= " ".$this->atts['control_layout'];
    
                $markup = avia_markup_helper(array('context' => 'image','echo'=>false, 'custom_markup'=>$this->atts['custom_markup']));
    
    			$data = AviaHelper::create_data_string($this->atts);
    
    			$html .= "
    <div {$data} class='avia-slideshow avia-featureimage-slideshow avia-animated-caption {$av_display_classes} avia-slideshow-".avia_sc_featureimage_slider::$slide_count." {$extraClass} avia-slideshow-".$this->atts['image_size']."  ".$this->atts['class']." avia-".$this->atts['animation']."-slider ' $markup>";
    
    			$html .= "
    <ul class='avia-slideshow-inner avia-slideshow-fixed-height' {$style}>";
    
    			$html .= $this->default_slide();
    
    			$html .= "</ul>
    ";
    
    			if($this->slide_count > 1)
    			{
    				$html .= $this->slide_navigation_arrows();
    				$html .= $this->slide_navigation_dots();
    			}
    
    			if(!empty($this->atts['caption_override'])) $html .= $this->atts['caption_override'];
    
    			$html .= "</div>
    ";
    
    			if(!empty($this->atts['default-height']))
    			{
    				$html = str_replace('{{av-default-heightvar}}', $this->atts['default-height'], $html);
    			}
    
    			return $html;
    		}
    
    		//function that renders the usual slides. use when we didnt use sub-shorcodes to define the images but ids
    		protected function default_slide()
    		{
    			$html = "";
    			$counter = 0;
    
    			extract($this->screen_options);
    
                $markup_url = avia_markup_helper(array('context' => 'image_url','echo'=>false, 'custom_markup'=>$this->atts['custom_markup']));
    
    			foreach ($this->entries->posts as $slide)
    			{
    					$counter ++;
    					$thumb_id = get_post_thumbnail_id( $slide->ID );
    					$slide_class = "";
    
    					$img 	 = wp_get_attachment_image_src($thumb_id, $this->atts['image_size']);
    					$link	 = get_post_meta( $slide->ID ,'_portfolio_custom_link', true ) != "" ? get_post_meta( $slide->ID ,'_portfolio_custom_link_url', true ) : get_permalink( $slide->ID );
    					$title	 = get_the_title( $slide->ID );
    
    					$caption  = "";
     					$caption .= '
    <div class="caption_fullwidth av-slideshow-caption caption_center">';
    					$caption .= '
    <div class="container caption_container">';
    					$caption .= '
    <div class="slideshow_caption">';
    					$caption .= '
    <div class="slideshow_inner_caption">';
    					$caption .= '
    <div class="slideshow_align_caption">';
    					//$caption .= '
    <h2 class="avia-caption-title"><a href="'.$link.'">'.$title.'</a></h2>
    ';
    
    					if(strpos($this->atts['contents'], 'excerpt')  !== false)
    					{
    						$excerpt = !empty($slide->post_excerpt) ? $slide->post_excerpt : avia_backend_truncate($slide->post_content, apply_filters( 'avf_feature_image_slider_excerpt_length' , 320) , apply_filters( 'avf_feature_image_slider_excerpt_delimiter' , " "), "…", true, '');
    
    						if(!empty($excerpt)){
    							$caption .= '
    <div class="avia-caption-content '.$av_font_classes.'" itemprop="description">';
    							$caption .= wpautop($excerpt);
    							$caption .= '</div>
    ';
    						}
    					}
    
    					if(strpos($this->atts['contents'], 'read_more')  !== false)
    					{
    						$caption .= ' <a href="'.$link.'" class="avia-slideshow-button avia-button avia-color-light " data-duration="800" data-easing="easeInOutQuad">'.__('Read more', 'avia_framework').'</a>';
    
    					}
    					$caption .= '</div>
    ';
    					$caption .= '</div>
    ';
    					$caption .= '</div>
    ';
    					$caption .= '</div>
    ';
    					$caption .= $this->create_overlay();
    					$caption .= '</div>
    ';
    
    					$slide_data = "data-img-url='".$img[0]."'";
    
    					if(empty($img)) $slide_class .= " av-no-image-slider";
    
    					$html .= "<a href=".$link.">
     	<li {$slide_data} class='slide-{$counter} {$slide_class} slide-id-".$slide->ID."'>";
    					$html .= $caption;
    					$html .= "</a></li>
    ";
    			}
    
    			return $html;
    		}
    
    		protected function slide_navigation_dots()
    		{
    			$html   = "";
    			$html  .= "
    <div class='avia-slideshow-dots avia-slideshow-controls'>";
    			$active = "active";
    
    			for($i = 1; $i <= $this->slide_count; $i++)
    			{
    				$html .= "<a href='#{$i}' class='goto-slide {$active}' >{$i}</a>";
    				$active = "";
    			}
    
    			$html .= "</div>
    ";
    
    			return $html;
    		}
    
    		protected function slide_navigation_arrows()
    		{
    			$html  = "";
    			$html .= "
    <div class='avia-slideshow-arrows avia-slideshow-controls'>";
    			$html .= 	"<a href='#prev' class='prev-slide' ".av_icon_string('prev_big').">".__('Previous','avia_framework' )."</a>";
    			$html .= 	"<a href='#next' class='next-slide' ".av_icon_string('next_big').">".__('Next','avia_framework' )."</a>";
    			$html .= "</div>
    ";
    
    			return $html;
    		}
    
    		protected function create_overlay()
    		{
    			extract($this->atts);
    
    			/*check/create overlay*/
    			$overlay = "";
    			if(!empty($overlay_enable))
    			{
    				$overlay_src = "";
    				$overlay = "opacity: {$overlay_opacity}; ";
    				if(!empty($overlay_color)) $overlay .= "background-color: {$overlay_color}; ";
    				if(!empty($overlay_pattern))
    				{
    					if($overlay_pattern == "custom")
    					{
    						$overlay_src = $overlay_custom_pattern;
    					}
    					else
    					{
    						$overlay_src = str_replace('{{AVIA_BASE_URL}}', AVIA_BASE_URL, $overlay_pattern);
    					}
    				}
    
    				if(!empty($overlay_src)) $overlay .= "background-image: url({$overlay_src}); background-repeat: repeat;";
    				$overlay = "
    <div class='av-section-color-overlay' style='{$overlay}'></div>
    ";
    			}
    
    			return $overlay;
    		}
    
    		//fetch new entries
    		public function query_entries($params = array())
    		{
    			global $avia_config;
    
    			if(empty($params)) $params = $this->atts;
    
    			if(empty($params['custom_query']))
                {
    				$query = array();
    
    				if(!empty($params['categories']))
    				{
    					//get the portfolio categories
    					$terms 	= explode(',', $params['categories']);
    				}
    
    				$page = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : get_query_var( 'page' );
    				if(!$page || $params['paginate'] == 'no') $page = 1;
    
    				//if we find no terms for the taxonomy fetch all taxonomy terms
    				if(empty($terms[0]) || is_null($terms[0]) || $terms[0] === "null")
    				{
    					$terms = array();
    					$allTax = get_terms( $params['taxonomy']);
    					foreach($allTax as $tax)
    					{
    						$terms[] = $tax->term_id;
    					}
    
    				}
    
    				if($params['offset'] == 'no_duplicates')
                    {
                        $params['offset'] = 0;
                        $no_duplicates = true;
                    }
    
                    if($params['offset'] == 'enforce_duplicates')
                    {
                        $params['offset'] = 0;
                        $no_duplicates = false;
                    }
    
                    if(empty($params['post_type'])) $params['post_type'] = get_post_types();
                    if(is_string($params['post_type'])) $params['post_type'] = explode(',', $params['post_type']);
    
    				$orderby = 'date';
    				$order = 'DESC';
    
    				// Meta query - replaced by Tax query in WC 3.0.0
    				$meta_query = array();
    				$tax_query = array();
    
    				// check if taxonomy are set to product or product attributes
    				$tax = get_taxonomy( $params['taxonomy'] );
    
    				if( class_exists( 'WooCommerce' ) && is_object( $tax ) && isset( $tax->object_type ) && in_array( 'product', (array) $tax->object_type ) )
    				{
    					$avia_config['woocommerce']['disable_sorting_options'] = true;
    
    					avia_wc_set_out_of_stock_query_params( $meta_query, $tax_query, $params['wc_prod_visible'] );
    
    						//	sets filter hooks !!
    					$ordering_args = avia_wc_get_product_query_order_args( $params['prod_order_by'], $params['prod_order'] );
    
    					$orderby = $ordering_args['orderby'];
    					$order = $ordering_args['order'];
    				}	
    
    				if( ! empty( $terms ) )
    				{
    					$tax_query[] =  array(
    										'taxonomy' 	=>	$params['taxonomy'],
    										'field' 	=>	'id',
    										'terms' 	=>	$terms,
    										'operator' 	=>	'IN'
    								);
    				}				
    
    				$query = array(	'orderby'		=>	$orderby,
    								'order'			=>	$order,
    								'paged'			=>	$page,
    								'post_type'		=>	$params['post_type'],
    //								'post_status'	=>	'publish',
    								'offset'		=>	$params['offset'],
    								'posts_per_page' =>	$params['items'],
    								'post__not_in'	=>	( ! empty( $no_duplicates ) ) ? $avia_config['posts_on_current_page'] : array(),
    								'meta_query'	=>	$meta_query,
    								'tax_query'		=>	$tax_query
    							);
    
    			}
    			else
    			{
    				$query = $params['custom_query'];
    			}
    
    			$query = apply_filters('avia_feature_image_slider_query', $query, $params);
    
    			$this->entries = new WP_Query( $query );
    
    			$this->slide_count = count($this->entries->posts);
    
    		    // store the queried post ids in
                if( $this->entries->have_posts() && $params['offset'] != 'enforce_duplicates')
                {
                    while( $this->entries->have_posts() )
                    {
                        $this->entries->the_post();
                        $avia_config['posts_on_current_page'][] = get_the_ID();
                    }
                }
    
    			if( function_exists( 'WC' ) )
    			{
    				avia_wc_clear_catalog_ordering_args_filters();
    				$avia_config['woocommerce']['disable_sorting_options'] = false;
    			}
    
    		}
    	}
    }
    
    

    Best regards,
    Dude

    #1004293

    Hey Eric,

    Probably the easiest solution would be to create a tab section (Layout Elements). Set an image for each tab (preview image/thumbnail) an add a video element (Media Elements) to each tab.

    Best regards,
    Dude

    Munford
    Participant

    HI
    I have a big map on the page below with lots of links to other pages. It looks like there is a jquery error when the page loads, and the map is a little flickery and it’s giving me some errors in the inspector:

    You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.

    http://www.andesworldtravel.com/:1023 A parser-blocking, cross site (i.e. different eTLD+1) script, https://maps.google.com/maps/api/js?v=3.31&key=AIzaSyCAFgHY_Hsa-1qemzuo32fA3lOmBzrdQ5M&language=en_US&libraries=places,visualization, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.

    Mixed Content: The page at ‘https://www.andesworldtravel.com/destination-map/?
    preview_id=23319&preview_nonce=fb8e7a7f24&_thumbnail_id=-1&preview=true’ was loaded over HTTPS, but requested an insecure image ‘http://andesworldtravel.com/wp-content/uploads/2015/06/Climbing-Bolivia-Sajama-Volcano-6588-m-JCG-80×80.jpg&#8217;. This content should also be served over HTTPS.

    can you take a look? I am at present using a plugin to catch the insecure content, but would like to have a more permanent fix.
    thanks for your help
    Nancy

    • This topic was modified 7 years, 7 months ago by Munford.
    #1004088

    Thanks for the clarification!
    Did the settings (Think blog page was the defauld for Wordpres settings…).

    I disabled the Avator but still some grey signs are left but they now do not link to the user but to the post.
    If the post has a thumbnail then this is shown above the grey ones, but if it is not a square, some grey remains.
    How to stop this? ( Remark: in the meantime I was able to adapt the css in a way that the grey ones are not visible and the fact that some thumbnails did not fully occupy the space might come from the fact that we importet data and maybe settings for thums where different there… right?)

    Why do our setting for maual thumbnail size have no effect, we did now via css.. ?

    I will have a close look into the docu!

    Thanks!

    • This reply was modified 7 years, 7 months ago by sthubertus.
Viewing 30 results - 2,761 through 2,790 (of 10,096 total)