Viewing 30 results - 331 through 360 (of 612 total)
  • Author
    Search Results
  • Hi,

    Please add this script in the functions.php file.

    function ava_custom_script_fix(){
    ?>
    <script>
    (function($){
    	$('.avia-image-container-inner a').on('touchstart', function (e) {
    	    'use strict';
    	    var link = $(this);
    	    if (link.hasClass('hover')) {
    	        return true;
    	    } else {
    	        link.addClass('hover');
    	        $('.avia-image-container-inner a').not(this).removeClass('hover');
    	        e.preventDefault();
    	        return false; 
    	    }
    	});
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'ava_custom_script_fix');

    And then insert the following css code in the Quick CSS field.

    .avia-image-container-inner .hover .av-image-caption-overlay {
        opacity: 1;
        filter: alpha(opacity=100);
    }

    Best regards,
    Ismael

    #852405
    #851109
    nordkamm
    Participant

    Hi

    I know this topic has been discussed already but the solution is not working for us.

    Issue: We have a full screen slider on the start page and this is not scaling on mobile. I read that we have to
    turn on Custom CSS Class field for all ALB Elements by adding “add_theme_support(‘avia_template_builder_custom_css’);” Afterwards in the custom CSS we can enable/disable desktop and mobile.

    The issue is that already by changing the custom CSS we receive an error message “Fatal error …. ”

    We want to add to the START page.

    Can help updating the functions.php and advice what are the next steps to show an alternative image for mobile?

    Thanks,
    Bernhard

    #840004
    JenToronto
    Participant

    I’ve got a custom element in the Avia Layout Builder that I’m needing to add link text to.
    Meaning that every time a link is added, I’d like “Know More” text to display under the description.
    Can anyone give me a hand?
    Thanks!!
    The current code for the custom block is:

    <?php
    
    /**
     * Slider
     * Shortcode that allows to slide some content
     */
    if (!class_exists('avia_sc_offerings_blocks')) {
    
        class avia_sc_offerings_blocks extends aviaShortcodeTemplate {
    
            /**
             * Create the config array for the shortcode button
             */
            function shortcode_insert_button() {
                $this->config['name'] = __('Offerings Block', 'avia_framework');
                $this->config['tab'] = __('Custom Blocks', 'avia_framework');
                $this->config['icon'] = AviaBuilder::$path['imagesURL'] . "sc-contentslider.png";
                $this->config['order'] = 83;
                $this->config['target'] = 'avia-target-insert';
                $this->config['shortcode'] = 'av_offerings_block';
                $this->config['shortcode_nested'] = array('avia_offerings_block');
                $this->config['tooltip'] = __('Display a content slider element', 'avia_framework');
            }
    
            /**
             * 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" => __("Content", 'avia_framework'),
                        'nodescription' => true
                    ),
                    array(
                        "name" => __("Add/Edit Blocks", 'avia_framework'),
                        "desc" => __("Here you can add, remove and edit the blocks you want to display.", 'avia_framework'),
                        "type" => "modal_group",
                        "id" => "content",
                        "modal_title" => __("Edit Form Element", 'avia_framework'),
                        "std" => array(
                            array('title' => __('Block 1', 'avia_framework'), 'tags' => '')
                        ),
                        'subelements' => array(
                            array(
                                "name" => __("Block Title", 'avia_framework'),
                                "desc" => __("Enter the block title here (Better keep it short)", 'avia_framework'),
                                "id" => "title",
                                "std" => "Block Title",
                                "type" => "input"),
                            array(
                                "name" => __("Title Link?", 'avia_framework'),
                                "desc" => __("Where should your title link to?", 'avia_framework'),
                                "id" => "link",
                                "type" => "linkpicker",
                                "fetchTMPL" => true,
                                "std" => "",
                                "subtype" => array(
                                    __('No Link', 'avia_framework') => '',
                                    __('Set Manually', 'avia_framework') => 'manually',
                                    __('Single Entry', 'avia_framework') => 'single',
                                    __('Taxonomy Overview Page', 'avia_framework') => 'taxonomy',
                                ),
                                "std" => ""),
                            array(
                                "name" => __("Open in new window", 'avia_framework'),
                                "desc" => __("Do you want to open the link in a new window", 'avia_framework'),
                                "id" => "linktarget",
                                "required" => array('link', 'not', ''),
                                "type" => "select",
                                "std" => "",
                                "subtype" => AviaHtmlHelper::linking_options()),
                            array(
                                "name" 	=> __("Description",'avia_framework' ),
                                "desc" 	=> __("Enter description",'avia_framework' ),
                                "id" 	=> "content",
                                "type" 	=> "textarea",
                                "std" 	=> ""
                                ),
                            array(
                                "name" => __("Choose Image", 'avia_framework'),
                                "desc" => __("Either upload a new, or choose an existing image from your media library", 'avia_framework'),
                                "id" => "src",
                                "type" => "image",
                                "title" => __("Insert Image", 'avia_framework'),
                                "button" => __("Insert", 'avia_framework'),
                                "std" => AviaBuilder::$path['imagesURL'] . "placeholder.jpg"),
                        )
                    ),
                    array(
                        "name" => __("Heading", 'avia_framework'),
                        "desc" => __("Do you want to display a heading above the images?", 'avia_framework'),
                        "id" => "heading",
                        "type" => "input",
                        "std" => "",
                    ),
                    array(
                        "name" => __("CSS ID", 'avia_framework'),
                        "desc" => __("Custom ID for the block container", 'avia_framework'),
                        "id" => "css_id",
                        "type" => "input",
                        "std" => "",
                    ),
                    array(
                        "name" => __("CSS Class", 'avia_framework'),
                        "desc" => __("Custom Class for the block container", 'avia_framework'),
                        "id" => "css_class",
                        "type" => "input",
                        "std" => "",
                    ),
                    array(
                        "type" => "close_div",
                        'nodescription' => true
                    ),
                    array(
                        "type" => "tab",
                        "name" => __("Colors", 'avia_framework'),
                        'nodescription' => true
                    ),
                    array(
                        "name" => __("Font Colors", 'avia_framework'),
                        "desc" => __("Either use the themes default colors or apply some custom ones", 'avia_framework'),
                        "id" => "font_color",
                        "type" => "select",
                        "std" => "",
                        "subtype" => array(__('Default', 'avia_framework') => '',
                            __('Define Custom Colors', 'avia_framework') => 'custom'),
                    ),
                    array(
                        "name" => __("Custom Font Color", 'avia_framework'),
                        "desc" => __("Select a custom font color. Leave empty to use the default", 'avia_framework'),
                        "id" => "color",
                        "type" => "colorpicker",
                        "std" => "",
                        "container_class" => 'av_half av_half_first',
                        "required" => array('font_color', 'equals', 'custom')
                    ),
                    array(
                        "type" => "close_div",
                        'nodescription' => true
                    ),
                    array(
                        "type" => "close_div",
                        'nodescription' => true
                    ),
                );
            }
    
            /**
             * 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) {
                $heading = "";
                $template = $this->update_template("heading", " - <strong>{{heading}}</strong>");
                if (!empty($params['args']['heading']))
                    $heading = "- <strong>" . $params['args']['heading'] . "</strong>";
    
                $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-element-label' {$template}>" . $heading . "</div>";
                return $params;
            }
    
            /**
             * Editor Sub Element - this function defines the visual appearance of an element that is displayed within a modal window and on click opens its own modal window
             * Works in the same way as Editor Element
             * @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_sub_element($params) {
                $template = $this->update_template("title", "{{title}}");
    
                $params['innerHtml'] = "";
                $params['innerHtml'] .= "<div class='avia_title_container' {$template}>" . $params['args']['title'] . "</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 = "") {
    
                $atts = shortcode_atts(array(
                    'type' => 'slider',
                    'autoplay' => 'false',
                    'animation' => 'fade',
                    'interval' => 5,
                    'navigation' => 'arrows',
                    'heading' => '',
                    'columns' => 3,
                    "css_id" => "",
                    "css_class" => "",
                    'handle' => $shortcodename,
                    'content' => ShortcodeHelper::shortcode2array($content, 1),
                    'class' => $meta['el_class'],
                    'custom_markup' => $meta['custom_markup'],
                    'font_color' => '',
                    'color' => '',
                    'styling' => ''
                        ), $atts, $this->config['shortcode']);
    
                if ($atts['font_color'] == "custom") {
                    $atts['class'] .= " av_inherit_color";
                    $atts['styling'] .=!empty($atts['color']) ? " color:" . $atts['color'] . "; " : "";
                    if ($atts['styling'])
                        $atts['styling'] = " style='" . $atts['styling'] . "'";
                }
    
                $slider = new avia_offerings_block($atts);
                return $slider->html();
            }
    
        }
    
    }
    
    if (!class_exists('avia_offerings_block')) {
    
        class avia_offerings_block {
    
            static $slider = 0;     //slider count for the current page
            protected $config;      //base config set on initialization
    
            function __construct($config) {
                global $avia_config;
                $output = "";
    
                $this->config = array_merge(array(
                    'type' => 'grid',
                    'autoplay' => 'false',
                    'animation' => 'fade',
                    'handle' => '',
                    'heading' => '',
                    'navigation' => 'arrows',
                    'columns' => 3,
                    'interval' => 5,
                    'class' => "",
                    'custom_markup' => "",
                    'css_id' => "",
                    'css_class' => "",
                    'content' => array(),
                    'styling' => ""
                        ), $config);
            }
    
            public function html() {
                $output = "";
                $counter = 0;
                avia_offerings_block::$slider++;
                if (empty($this->config['content']))
                    return $output;
    
                //$html .= empty($this->subslides) ? $this->default_slide() : $this->advanced_slide();
    
                extract($this->config);
    
                $columns = 3;
                $extraClass = 'first';
                $slide_loop_count = 1;
                $loop_counter = 1;
                $total = $columns % 2 ? "odd" : "even";
                $heading = !empty($this->config['heading']) ? '<h2>' . $this->config['heading'] . '</h2>' : "&nbsp;";
                $slide_count = count($content);
                $grid = 'av_one_fifth';
    
                $data = AviaHelper::create_data_string(array('autoplay' => $autoplay, 'interval' => $interval, 'animation' => $animation, 'show_slide_delay' => 30));
    
                $id = 'id="'.$css_id.'"';
                $thumb_fallback = "";
                $output .= "<div  {$id} class='{$css_class} col-centered offerings custom-block' {$styling}>";
    
                $heading_class = '';
                if ($navigation == 'no')
                    $heading_class .= ' no-content-slider-navigation ';
                if ($heading == '&nbsp;')
                    $heading_class .= ' no-content-slider-heading ';
    
                $output .= "<div class='avia-smallarrow-slider-heading $heading_class'>";
                $output .= "<div class='new-special-heading'>" . $heading . "</div>";
                $output .= "</div>";
    
                $output .= "<div class='avia-content-slider-inner'>";
    
                foreach ($content as $key => $value) {
                    $link = $linktarget = "";
    
                    extract($value['attr']);
    
                    $link = aviaHelper::get_url($link);
                    $blank = (strpos($linktarget, '_blank') !== false || $linktarget == 'yes') ? ' target="_blank" ' : "";
                    $blank .= strpos($linktarget, 'nofollow') !== false ? ' rel="nofollow" ' : "";
    
                    $parity = $loop_counter % 2 ? 'odd' : 'even';
                    $last = $slide_count == $slide_loop_count ? " post-entry-last " : "";
                    $post_class = "post-entry slide-entry-overview slide-loop-{$slide_loop_count} slide-parity-{$parity} {$last}";
    
                    if ($loop_counter == 1)
                        $output .= "<div class='block-entry-wrap col-centered'>";
    
                    $markup = avia_markup_helper(array('context' => 'entry', 'echo' => false, 'custom_markup' => $custom_markup));
                    $output .= "<section class='flex_column av_one_third col-centered {$post_class} {$grid} {$extraClass}' $markup>";
    
                    $markup = avia_markup_helper(array('context' => 'entry_title', 'echo' => false, 'custom_markup' => $custom_markup));
                    if(!empty($src)){
                        $img = "<img src='".$src."' alt='" . esc_attr($title) . "'  />";
                    } else {
                        $img = "<img src='".AviaBuilder::$path['imagesURL'] . "placeholder.jpg"."' alt='" . esc_attr($title) . "'  />";
                    }
                    if(!empty($link)){
                        $output .= "<a href='{$link}' $blank title='" . esc_attr($title) . "'>"."<div class='avia_image_container'>{$img}</div>"."</a>";
                    } else {
                        $output .= "<div class='avia_image_container'>{$img}</div>";
                    }
                    $output .=!empty($title) ? "<h3 class='slide-entry-title entry-title' $markup>" : '';
                    $output .= (!empty($link) && !empty($title)) ? "<a href='{$link}' $blank title='" . esc_attr($title) . "'>" . $title . "</a>" : $title;
                    $output .=!empty($title) ? '</h3>' : '';
    
                    $markup = avia_markup_helper(array('context' => 'entry_content', 'echo' => false, 'custom_markup' => $custom_markup));
                    $output .=!empty($value['content']) ? "<div class='slide-entry-excerpt entry-content' $markup>" . ShortcodeHelper::avia_apply_autop(ShortcodeHelper::avia_remove_autop($value['content'])) . "</div>" : "";
    
                    $output .= '</section>';
    
                    $loop_counter ++;
                    $slide_loop_count ++;
                    $extraClass = "";
    
                    if ($loop_counter > $columns) {
                        $loop_counter = 1;
                        $extraClass = 'first';
                    }
    
                    if ($loop_counter == 1 || !empty($last)) {
                        $output .="</div>";
                    }
                }
    
                $output .= "</div>";
    
                $output .= "</div>";
    
                return $output;
            }
        }
    
    }

    Thanks!

    #838713
    nicolai_schellmann
    Participant

    Hello,
    I am not able to assign a custom CSS class to newly created Image Elements via the Avia Layoutbuilder anymore.
    It used to work in the past, since I also have image elements with a functioning assigned custom css class on the same layout site, that I have created a month ago or so.
    However, it’s still working to assign them to other elements, such as text block for example.

    My PHP error log shows this:
    [14-Aug-2017 13:28:44 UTC] PHP Notice: Undefined index: id in /is/htdocs/wp12827462_8OV8RWT8TN/www.getready.digital/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_layerslider.php on line 47
    Is it even somehow related to my problem?

    Debug Information:
    Wordpress: 4.8.1.
    Enfold Theme: Version: 4.0.7

    • This topic was modified 8 years, 5 months ago by nicolai_schellmann. Reason: Added wordpress and enfold version information
    #837995

    Hi,
    Here is a solution, use this code as your button:

    <a href="http://yoursite.com/newsletter-signup/?iframe=true&width=100%&height=100%" rel="prettyPhoto[iframes]"" class="avia-button   avia-icon_select-no avia-color-light avia-size-large avia-position-center "><span class="avia_iconbox_title">SUBSCRIBE</span></a>

    For other links change the url, but leave the ?iframe=…
    Then on the page that the url points to hide the Header, Footer & Title Bar:
    2017-08-12_131046
    Then to make the Code Block button align center I added the custom class “lbb”
    2017-08-12_132629
    And added this code in the General Styling > Quick CSS field:

    .avia_codeblock.lbb {text-align: center;}

    2017-08-12_132923
    2017-08-12_133629

    Best regards,
    Mike

    #823481

    @S4racen

    Did you figure out your UberMenu issues mentioned above yet?
    I have it working correctly in 2 different ways with Enfold 4.1.2.

    The 1st where it just straight up replaces the Enfold Menu/burger with UberMenu using custom helper-main-menu.php

    The 2nd where it acts in a secondary sticky location below the Enfold header (logo left, menu right) with the normal Enfold menu showing alternative content on desktop only (hidden on mobile). Example here http://www.westoninnandsuites.com/
    You do not have to add anything custom in helper-main-menu.php to do this. Just add your UberMenu via short code in a Grid Row right above your content on each page and do not set it to replace anything in Enfold under the UberMenu settings. Requires the UberMenu sticky extension to be sticky.
    To customize the standard Enfold menu you can paste your html code for an image, ect into the field label area of a menu item in a menu menu and set as at Main Enfold Menu. Then hide it on mobile adding the CSS class of only-dt, if you don’t see CSS class you have to enable it in the Screen Options above the menu page of the dashboard. Then you have to add this to your quick css under General Styling

    @media only screen and (max-width: 990px) {
    .only-dt { display: none !important; }}

    and add this to the bottom of your functions.php preferable in a child theme
    add_theme_support('avia_template_builder_custom_css');

    and lastly to hide the Enfold Burger Menu on mobile/tablet so only your UberMenu will show you need to add this to your quick CSS

    @media only screen and (max-width: 1000px) {
    .av-burger-menu-main {display: none!important; }
    #top .av_mobile_menu_tablet .av-main-nav .menu-item {
        display: none!important;
    }}

    Jon

    • This reply was modified 8 years, 6 months ago by millertimesites. Reason: incomplete info
    #815760

    Hi!

    If you would like the image, text, and button to be together when on mobile, the best way is to put them in the same column. Then, add this in Quick CSS to add the border to your image:

    .avia-image-container {border:10px solid white !important;}

    Note that this will affect all images in your website. If you only want to do this for specific images, please turn on the Custom CSS field for ALB elements by following this tutorial, then use this code in CSS instead:

    .white-border.avia-image-container  {border:10px solid white !important;}

    Please replace white-border with the custom class that you used.

    Can you try that and let us know how it goes?

    Best regards,
    Sarah

    #807965

    Hey famewebdesign,

    Hi there! Can you please try this in Quick CSS?

    .main_color.iconbox_top .iconbox_icon {
    background-image: url('imagepath.png');
    }

    Please replace imagepath.png with the full filepath of the background you want to use.

    Please note that this will affect ALL your iconboxes in your site. If you want to only do this for the two iconboxes you specified, please use this code instead:

    
    .avia-builder-el-6 .main_color.iconbox_top .iconbox_icon,
    .avia-builder-el-8 .main_color.iconbox_top .iconbox_icon {
    background-image: url('imagepath.png');
    

    We also recommend taking a look at using Custom Classes for ALB elements: http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/

    This can help you easily specify styles for your elements. :)

    Best regards,
    Sarah

    bbbfg
    Participant

    I’ve added two input fields for a custom search function to my page. The first field is an autocomplete plugin, the second one a calendar. Both plugins do create a div with ‘position:absolute’ on the fly.

    Now I have z-index problems in two situations and increasing the z-index of these plugin wrappers doesn’t help:

    1. First I added a “color section” using the “Avia Layout Architect” and inserted both input fields to it. Below the color section there are many 1/3 boxes containing simple text boxes and buttons simulating the search output. When I click on the input fields, it looks like this:

    Screenshot

    I’ve tracked down the problem to the CSS ‘unit’ class:

    .unit, .units {
      float: left;
      display: inline;
      margin-left: 50px;
      position: relative;
      z-index: 1;
      min-height: 1px;
    }

    When I remove the ‘position: relative’ my problem is solved, but I think this will cause problems somewhere else. Is there another solution for this?

    2. Situation:

    I want to have those two input boxes at the front page on top of the slider, so I’ve added it to the text caption of an aria slider image, but the text caption box has some overflow scroll logic and my position:absolute boxes are truncated:

    Screenshot

    Is there a way to open up something, that is bigger than the slider caption box and lays above all other content?

    Thanks!

    #805582

    Hi Yigit, sorry but I already tried that way but it didn’t work. I try to duplicate here what I did so you can correct me where I was wrong.

    In my enfold-child theme I created the following directories

    child-theme/includes/gnmenu-walker.php
    child-theme/includes/helper-main-menu-php
    child-theme/fucntions.php

    File gnmenu-walker.php

    <?php
    // Custom Walker Class for Bootstrap Menu
    add_action( 'after_setup_theme', 'gnmenu_setup' );
     
    if ( ! function_exists( 'gnmenu_setup' ) ):
     
    	function gnmenu_setup(){
     
    		class GnMenu_Walker_Nav_Menu extends Walker_Nav_Menu {
     
     
    			function start_lvl( &$output, $depth = 0, $args = array() ) {
     
    				$indent = str_repeat( "\t", $depth );
    				$output	   .= "\n$indent<ul class=\"gn-submenu\">\n";
     
    			}
     
    			function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
     
    				$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
     
    				$li_attributes = '';
    				$class_names = $value = '';
     
    				$classes = empty( $item->classes ) ? array() : (array) $item->classes;
    				$classes[] = ($args->has_children) ? 'gn-submenu' : '';
    				$classes[] = ($item->current || $item->current_item_ancestor) ? 'active' : '';
    				$classes[] = 'menu-item-' . $item->ID;
     
     
    				$class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args ) );
    				$class_names = ' class="' . esc_attr( $class_names ) . '"';
     
    				$id = apply_filters( 'nav_menu_item_id', 'menu-item-'. $item->ID, $item, $args );
    				$id = strlen( $id ) ? ' id="' . esc_attr( $id ) . '"' : '';
     
    				$output .= $indent . '<li' . $id . $value . $class_names . $li_attributes . '>';
     				
     				$iconClasses ='';
    				if ($item->ID == 1265)
    				{
    					$iconClasses = 'gn-icon-home';
    				}
    				elseif ($item->ID == 1266)
    				{
    					$iconClasses = 'gn-icon-cog';
    				}
    				elseif ($item->ID == 1267)
    				{
    					$iconClasses = 'gn-icon-about';
    				}
    				elseif ($item->ID == 1273)
    				{
    					$iconClasses = 'gn-icon-portfolio';
    				}
    				elseif ($item->ID == 1274)
    				{
    					$iconClasses = 'gn-icon-marble';
    				}
    				elseif ($item->ID == 1275)
    				{
    					$iconClasses = 'gn-icon-wood';
    				}
    				elseif ($item->ID == 1276)
    				{
    					$iconClasses = 'gn-icon-meta';
    				}
    				elseif ($item->ID == 1282)
    				{
    					$iconClasses = 'gn-icon-design';
    				}
    				;
    
    				$attributes  = ! empty( $item->attr_title ) ? ' title="'  . esc_attr( $item->attr_title ) .'"' : '';
    				//$attributes .= ' class="gn-icon gn-icon-download"'; 
    				$attributes .= ! empty( $item->target )     ? ' target="' . esc_attr( $item->target     ) .'"' : '';
    				$attributes .= ! empty( $item->xfn )        ? ' rel="'    . esc_attr( $item->xfn        ) .'"' : '';
    				$attributes .= ! empty( $item->url )        ? ' href="'   . esc_attr( $item->url        ) .'"' : '';
    				//$attributes .= ($args->has_children) 	    ? ' class="dropdown-toggle" data-toggle="dropdown"' : '';
    				//$attributes .= ' class="gn-icon gn-icon-download ' . ( $depth > 0 ? 'sub-menu-link' : 'main-menu-link' ) . '"';
     				$attributes .= ' class= "gn-icon ' . $iconClasses . '"';
    
    				$item_output = $args->before;
    				$item_output .= '<a'. $attributes .'>';
    				$item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
    				$item_output .= ($args->has_children) ? ' <b class="caret"></b></a>' : '</a>';
    				$item_output .= $args->after;
     
    				$output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
    			}
     
    			function display_element( $element, &$children_elements, $max_depth, $depth=0, $args, &$output ) {
     
    				if ( !$element )
    					return;
     
    				$id_field = $this->db_fields['id'];
     
    				//display this element
    				if ( is_array( $args[0] ) ) 
    					$args[0]['has_children'] = ! empty( $children_elements[$element->$id_field] );
    				else if ( is_object( $args[0] ) ) 
    					$args[0]->has_children = ! empty( $children_elements[$element->$id_field] ); 
    				$cb_args = array_merge( array(&$output, $element, $depth), $args);
    				call_user_func_array(array(&$this, 'start_el'), $cb_args);
     
    				$id = $element->$id_field;
     
    				// descend only when the depth is right and there are childrens for this element
    				if ( ($max_depth == 0 || $max_depth > $depth+1 ) && isset( $children_elements[$id]) ) {
     
    					foreach( $children_elements[ $id ] as $child ){
     
    						if ( !isset($newlevel) ) {
    							$newlevel = true;
    							//start the child delimiter
    							$cb_args = array_merge( array(&$output, $depth), $args);
    							call_user_func_array(array(&$this, 'start_lvl'), $cb_args);
    						}
    						$this->display_element( $child, $children_elements, $max_depth, $depth + 1, $args, $output );
    					}
    						unset( $children_elements[ $id ] );
    				}
     
    				if ( isset($newlevel) && $newlevel ){
    					//end the child delimiter
    					$cb_args = array_merge( array(&$output, $depth), $args);
    					call_user_func_array(array(&$this, 'end_lvl'), $cb_args);
    				}
     
    				//end this element
    				$cb_args = array_merge( array(&$output, $element, $depth), $args);
    				call_user_func_array(array(&$this, 'end_el'), $cb_args);
     
    			}
     
    		}
     
    	}
     
    endif;

    FILE helper-main-menu.php

    <?php 
    global $avia_config;
    
    $responsive		= avia_get_option('responsive_active') != "disabled" ? "responsive" : "fixed_layout";
    $headerS 		= avia_header_setting();
    $social_args 	= array('outside'=>'ul', 'inside'=>'li', 'append' => '');
    $icons 			= !empty($headerS['header_social']) ? avia_social_media_icons($social_args, false) : "";
    
    if(isset($headerS['disabled'])) return;
    
    ?>
    
    <header id='header' class='all_colors header_color <?php avia_is_dark_bg('header_color'); echo " ".$headerS['header_class']; ?>' <?php avia_markup_helper(array('context' => 'header','post_type'=>'forum'));?>>
    
    <?php
    
    if($responsive)
    {
    	echo '<a id="advanced_menu_toggle" href="#" '.av_icon_string('mobile_menu').'></a>';
    	echo '<a id="advanced_menu_hide" href="#" 	'.av_icon_string('close').'></a>';
    }
    
    //subheader, only display when the user chooses a social header
    if($headerS['header_topbar'] == true)
    {
    ?>
    		<div id='header_meta' class='container_wrap container_wrap_meta <?php echo avia_header_class_string(array('header_social', 'header_secondary_menu', 'header_phone_active'), 'av_'); ?>'>
    		
    			      <div class='container'>
    			      <?php
    			            /*
    			            *	display the themes social media icons, defined in the wordpress backend
    			            *   the avia_social_media_icons function is located in includes/helper-social-media-php
    			            */
    						$nav = "";
    						
    						//display icons
    			            if(strpos( $headerS['header_social'], 'extra_header_active') !== false) echo $icons;
    					
    						//display navigation
    						if(strpos( $headerS['header_secondary_menu'], 'extra_header_active') !== false )
    						{
    			            	//display the small submenu
    			                $avia_theme_location = 'avia2';
    			                $avia_menu_class = $avia_theme_location . '-menu';
    			                $args = array(
    			                    'theme_location'=>$avia_theme_location,
    			                    'menu_id' =>$avia_menu_class,
    			                    'container_class' =>$avia_menu_class,
    			                    'fallback_cb' => '',
    			                    'container'=>'',
    			                    'echo' =>false
    			                );
    			                
    			                $nav = wp_nav_menu($args);
    						}
    			                
    						if(!empty($nav) || apply_filters('avf_execute_avia_meta_header', false))
    						{
    							echo "<nav class='sub_menu' ".avia_markup_helper(array('context' => 'nav', 'echo' => false)).">";
    							echo $nav;
    		                    do_action('avia_meta_header'); // Hook that can be used for plugins and theme extensions (currently: the wpml language selector)
    							echo '</nav>';
    						}
    						
    						
    						//phone/info text	
    						$phone			= $headerS['header_phone_active'] != "" ? $headerS['phone'] : "";
    						$phone_class 	= !empty($nav) ? "with_nav" : "";
    						if($phone) 		{ echo "<div class='phone-info {$phone_class}'><span>".do_shortcode($phone)."</span></div>"; }
    							
    							
    			        ?>
    			      </div>
    		</div>
    
    <?php } 
    	
    	
    	
    	$output 	 = "";
    	$temp_output = "";
    	$icon_beside = "";
    	
    	if($headerS['header_social'] == 'icon_active_main' && empty($headerS['bottom_menu']))
    	{
    		$icon_beside = " av_menu_icon_beside"; 
    	}
    	
    	
    	
    	
    	
    	
    ?>
    		<div  id='header_main' class='container_wrap container_wrap_logo'>
    	
            <?php
            /*
            * Hook that can be used for plugins and theme extensions (currently:  the woocommerce shopping cart)
            */
            do_action('ava_main_header');
            
            if($headerS['header_position'] != "header_top") do_action('ava_main_header_sidebar');
    		
    
    		if( function_exists( 'gnmenu_setup' ) ){
    			   
    			    $output.="<div class='container-menu'>
    						<ul id='gn-menu' class='gn-menu-main'>
    							<li class='gn-trigger'>
    								<a class='gn-icon gn-icon-menu'><span>Menu</span></a>
    								<nav class='gn-menu-wrapper'>
    									<div class='gn-scroller'>";
    
    									$args = array(
    									'theme_location' => $avia_theme_location,
    									'depth'      => 2,
    									'container'  => false,
    									'menu_class'     => ' gn-menu',
    									'walker'     => new GnMenu_Walker_Nav_Menu()
    									);
    			 
    								if (has_nav_menu('menu-1')) {
    									wp_nav_menu($args);
    								}
    			 	$output.= "</div><!-- /gn-scroller -->	</nav></li><li><a href=' " . echo esc_url( home_url( '/' ) ); . " ' title= ' ". bloginfo( 'name' ) . " ' rel='homepage'> " .  bloginfo( 'name' ) . "</a></li>
    
    								<li><a class='codrops-icon codrops-icon-drop' href='#''><span>Back to the Codrops Article</span></a></li>
    							</ul>
    						</div><!-- /container -->"
    								
    			}
    			else{
    
    				 $output .= "<div class='container av-logo-container'>";
    				 
    					$output .= "<div class='inner-container'>";
    						
    						/*
    						*	display the theme logo by checking if the default logo was overwritten in the backend.
    						*   the function is located at framework/php/function-set-avia-frontend-functions.php in case you need to edit the output
    						*/
    						$addition = false;
    						if( !empty($headerS['header_transparency']) && !empty($headerS['header_replacement_logo']) )
    						{
    							$addition = "<img src='".$headerS['header_replacement_logo']."' class='alternate' alt='' title='' />";
    						}
    						
    						$output .= avia_logo(AVIA_BASE_URL.'images/layout/logo.png', $addition, 'span', true);
    						
    							if(!empty($headerS['bottom_menu']))
    							{
    								ob_start();
    								do_action('ava_before_bottom_main_menu'); // todo: replace action with filter, might break user customizations
    								$output .= ob_get_clean();
    							}
    							
    						    if($headerS['header_social'] == 'icon_active_main' && !empty($headerS['bottom_menu']))
    						    {
    							    $output .= $icons;
    						    }
    						    
    						
    						/*
    						*	display the main navigation menu
    						*   modify the output in your wordpress admin backend at appearance->menus
    						*/
    						    
    						    if($headerS['bottom_menu'])
    						    { 
    							    $output .= "</div>";  
    								$output .= "</div>";
    								
    								if( !empty( $headerS['header_menu_above'] ))
    								{
    									$avia_config['temp_logo_container'] = "<div class='av-section-bottom-logo header_color'>".$output."</div>";
    									$output = "";
    								}
    								
    								$output .= "<div id='header_main_alternate' class='container_wrap'>";
    								$output .= "<div class='container'>";
    							}
    						
    							
    							    $output .= "<nav class='main_menu' data-selectname='".__('Select a page','avia_framework')."' ".avia_markup_helper(array('context' => 'nav', 'echo' => false)).">";
    							        $avia_theme_location = 'avia';
    							        $avia_menu_class = $avia_theme_location . '-menu';
    							        $args = array(
    							            'theme_location'	=> $avia_theme_location,
    							            'menu_id' 			=> $avia_menu_class,
    							            'menu_class'		=> 'menu av-main-nav',
    							            'container_class'	=> $avia_menu_class.' av-main-nav-wrap'.$icon_beside,
    							            'fallback_cb' 		=> 'avia_fallback_menu',
    							            'echo' 				=>	false, 
    							            'walker' 			=> new avia_responsive_mega_menu()
    							        );
    							
    							        $main_nav = wp_nav_menu($args);
    							        $output .= $main_nav;
    							        
    							      
    								    /*
    								    * Hook that can be used for plugins and theme extensions
    								    */
    								    ob_start();
    								    do_action('ava_inside_main_menu'); // todo: replace action with filter, might break user customizations
    								    $output .= ob_get_clean();
    								    
    								    if($icon_beside)
    								    {
    									    $output .= $icons; 
    								    }
    								        
    								    $output .= '</nav>';
    								
    								    /*
    								    * Hook that can be used for plugins and theme extensions
    								    */
    								    ob_start();
    								    do_action('ava_after_main_menu'); // todo: replace action with filter, might break user customizations
    									$output .= ob_get_clean();
    							
    				
    					 /* inner-container */
    			        $output .= "</div>";
    						
    		        /* end container */
    		        $output .= " </div> ";
    		   		
    		   		}
    
    		   		//output the whole menu     
    		        echo $output; 
    		        
    		        
    		   ?>
    
    		<!-- end container_wrap-->
    		</div>
    		
    		<div class='header_bg'></div>
    
    <!-- end header -->
    </header>

    FILE functions.php

    /**
     * Load GnMenu.
     */
    require get_template_directory() . '/includes/gnmenu-walker.php';

    Actually I also tried to simplify the helper-main-menu.php, by deleting everything and adding only the core part I am interested in that is the one reported in my first question, but still didn’t work:

    Thanks for any help you could provide

    nyloc
    Participant

    Hi,

    I would like to have a button that opens a lightbox with some images (a gallery). I read a lot of support posts and came to the conclusion that it’s best to use Magnific Popup functions for that. So I came up with the following.

    in my functions.php of my enfold-child theme I added:

    wp_enqueue_script('fs-custom-js', get_stylesheet_directory_uri().'/js/custom.js', array('jquery'), null, true);
    add_theme_support('avia_template_builder_custom_css');

    to add my custom javascript file and have custom css feature in the ui builder. That works fine.

    In my script file I did:

    jQuery(document).ready(function( $ ) {
      $('.fs-gallery-button').magnificPopup({
        items: {
          src: 'link/to/my/image.jpg'
        },
        type: 'image' // this is default type
      });
    });

    I added the fs-gallery-button class to the button and now if I click it it opens the lightbox image for about 1ms and then some css sets the opacity to 0.
    This is just a one image test, but I want to add multiple images (hence a complete gallery) later.

    I hope you can give me some hints what I’m doing wrong.

    PS: I checked the generated html of your lightbox (if used via a masonry gallery) here is the comparison for completeness. First is “my” code second is yours.

    <body id="top" class="home page-template-default page page-id-812 logged-in admin-bar stretched roboto open_sans  customize-support mfp-zoom-out-cur" itemscope="itemscope" itemtype="https://schema.org/WebPage" style="">
      <div class="mfp-bg mfp-ready"></div>
      <div class="mfp-wrap mfp-close-btn-in mfp-auto-cursor mfp-ready" tabindex="-1" style="overflow-x: hidden; overflow-y: auto;">
        <div class="mfp-container mfp-s-ready mfp-image-holder">
          <div class="mfp-content">
            <div class="mfp-figure"><button title="Close (Esc)" type="button" class="mfp-close">×</button>
              <figure><img class="mfp-img" src="url/to/image.jpg" style="max-height: 471px;">
                <figcaption>
                  <div class="mfp-bottom-bar">
                    <div class="mfp-title"></div>
                    <div class="mfp-counter"></div>
                  </div>
                </figcaption>
              </figure>
            </div>
          </div>
          <div class="mfp-preloader">Loading...</div>
        </div>
      </div>
    </body>
    
    <body id="top" class="home page-template-default page page-id-812 logged-in admin-bar stretched roboto open_sans  customize-support mfp-zoom-out-cur" itemscope="itemscope" itemtype="https://schema.org/WebPage" style="">
      <div class="mfp-bg avia-popup mfp-zoom-in mfp-ready" style="height: 17269px; position: absolute;"></div>
      <div class="mfp-wrap mfp-gallery mfp-close-btn-in mfp-auto-cursor avia-popup mfp-zoom-in mfp-ready mfp-image-loaded" tabindex="-1" style="top: 11658px; position: absolute; height: 471px;">
        <div class="mfp-container mfp-image-holder mfp-s-ready">
          <div class="mfp-content">
            <div class="mfp-figure"><button title="" type="button" class="mfp-close">×</button>
              <figure><img class="mfp-img" src="url/to/image.jpg" style="max-height: 471px;">
                <figcaption>
                  <div class="mfp-bottom-bar">
                    <div class="mfp-title">Some Title</div>
                    <div class="mfp-counter">2 / 3</div>
                  </div>
                </figcaption>
              </figure>
            </div>
          </div>
          <div class="mfp-preloader"></div><button title="" type="button" class="mfp-arrow mfp-arrow-left mfp-prevent-close"></button><button title="" type="button" class="mfp-arrow mfp-arrow-right mfp-prevent-close"></button></div>
      </div>
    </body>
    perfectword
    Participant

    Hi Kriesi,

    Currently, when one writes a description for a category (wp-admin > WC > Edit Category), any html or css is stripped from the description field.

    I see by viewing the source of a Woo Commerce product archive page that currently the description defaults to a paragraph inside H1 tags, such as

    <div id="av_product_description" class="avia-section main_color avia-section-large 
    avia-no-border-styling avia-full-stretch av-parallax-section 
    av-section-color-overlay-active avia-bg-style-parallax container_wrap fullsize" 
    data-section-bg-repeat="stretch" style='color:#dd3333;'><div class="av-parallax 
    avia-full-stretch" data-avia-parallax-ratio="0.3"><div class="av-parallax-inner 
    av-parallax-woo" style="background-image: url(https://domain/wp-content/uploads/image.png);
     main_color background-attachment: scroll; background-position: 50% 50%; 
    background-repeat: no-repeat;"></div></div><div class="av-section-color-overlay-wrap">
    <div class="av-section-color-overlay" style="opacity: 0.5; background-color: #ffffff; "></div>
    <div class="container"><main class="template-page content av-content-full alpha
    units"><h1><p>This is a description of this category. This is a description of this 
    category. This is a description of this category.</p>
    </h1></main></div></div></div>

    My question is: is there a way to (1) remove the <h1> and <p> markup, while (2) also allowing the description field in wp-admin > WC > Edit Category to accept new html or css markup without removing it upon saving? I would just like to this area to be more flexible by adding custom styles and layout.

    Thanks!

    • This topic was modified 8 years, 8 months ago by perfectword.

    Dear Andy

    “I copied all your content into my own installation to reproduce the issue on my end, but it doesn’t happen for me on my end. So something must cause it especially on your end. Please remove your child theme and any other customization you’ve done so far, as well as deactivate all your plugins, to check if one of those things are causing the issue. Also have in mind that maybe it’s just a caching issue on your end. So switch off any caching you’re using, clear browser cache and hard refresh a few times.”

    All this we did several times before. I believe sometimes this issues are caused by other systems. But even with all deactivated plugins, except woocommerce, and deleted custom css and child-theme the product-slider behaviour stays the same. Also as I see the forum we are not the only ones with this problem or very similar problems.

    –>https://kriesi.at/support/topic/product-slider-problem-2/

    css of the second slide looks like this –> class is .products slide-entry-wrap

    <ul class="products slide-entry-wrap" style="visibility: hidden; opacity: 0; transition: none; transform: translateZ(0px); z-index: 2;"><li class="post-907 product type-product status-publish has-post-thumbnail product_cat-rfid-tag product_tag-auto-id product_tag-rfid-identifizierung product_tag-rfid-objektkennzeichnung product_tag-rfid-tag product_tag-rfid-technologie product_tag-rfid-transponder product_tag-uhf pa_anwendungsbereich-auftragsidentifikation pa_anwendungsbereich-produktkennzeichnung pa_anwendungsbereich-werkzeugkennzeichnung pa_befestigungsart-aufkleben pa_betriebstempbereich_maximum-439 pa_betriebstempbereich_minimum-_25 pa_betriebstemperatur_maximum-320 pa_betriebstemperatur_minimum-_25 pa_breite-302 pa_chip_typ-nxp_i_code_sli pa_form-rechteck pa_hoehe-2_5 pa_laenge-267 pa_lagertempbereich_maximum-442 pa_lagertempbereich_minimum-_30 pa_lagertempbereich_minimum-_60 pa_lagertemperatur_maximum-189 pa_lagertemperatur_minimum-_40 pa_rfid_frequenz-uhf pa_untergrund-esd pa_untergrund-glas pa_untergrund-kunststoff pa_untergrund-pappe first instock shipping-taxable product-type-simple">
    	<div class="inner_product main_color wrapped_style noLightbox  av-product-class-"><a href="http://rfid-finder.com/produkt/rfid-tag-lm1000-uhf/" class="woocommerce-LoopProduct-link"><div class="thumbnail_container"><img width="450" height="450" src="http://rfid-finder.com/wp-content/uploads/2016/05/1000-450x450.jpg" class="attachment-shop_catalog size-shop_catalog wp-post-image" alt="RFID-Tag LM1000 UHF" srcset="http://rfid-finder.com/wp-content/uploads/2016/05/1000-450x450.jpg 450w, http://rfid-finder.com/wp-content/uploads/2016/05/1000-80x80.jpg 80w, http://rfid-finder.com/wp-content/uploads/2016/05/1000-300x300.jpg 300w, http://rfid-finder.com/wp-content/uploads/2016/05/1000-36x36.jpg 36w, http://rfid-finder.com/wp-content/uploads/2016/05/1000-180x180.jpg 180w, http://rfid-finder.com/wp-content/uploads/2016/05/1000-120x120.jpg 120w, http://rfid-finder.com/wp-content/uploads/2016/05/1000.jpg 600w" sizes="(max-width: 450px) 100vw, 450px" style="left: 0px;"><span class="cart-loading"></span></div><div class="inner_product_header"><div class="avia-arrow"></div><div class="inner_product_header_table"><div class="inner_product_header_cell"><h2 class="woocommerce-loop-product__title">RFID-Tag LM1000 UHF</h2>
    </div></div></div></a><div class="avia_cart_buttons "><a rel="nofollow" href="http://rfid-finder.com/produkt/rfid-tag-lm1000-uhf/" data-quantity="1" data-product_id="907" data-product_sku="LM1000-ST" class="button product_type_simple ajax_add_to_cart"><span aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span> Weiterlesen</a><a class="button show_details_button" href="http://rfid-finder.com/produkt/rfid-tag-lm1000-uhf/"><span aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span>  Zeige Details</a> <span class="button-mini-delimiter"></span></div></div></li>
    <li class="post-914 product type-product status-publish has-post-thumbnail product_cat-rfid-tag product_tag-auto-id product_tag-rfid-identifizierung product_tag-rfid-objektkennzeichnung product_tag-rfid-tag product_tag-rfid-technologie product_tag-rfid-transponder product_tag-uhf pa_anwendungsbereich-auftragsidentifikation pa_anwendungsbereich-c_teile_management pa_anwendungsbereich-materialflussverfolgung pa_anwendungsbereich-produktkennzeichnung pa_anwendungsbereich-werkzeugkennzeichnung pa_bedruckbare_oberflaeche-seriennummer pa_befestigungsart-aufkleben pa_betriebstempbereich_maximum-439 pa_betriebstempbereich_minimum-_25 pa_betriebstemperatur_maximum-446 pa_betriebstemperatur_minimum-_25 pa_breite-302 pa_chip_typ-impinj_monza_4 pa_epc_memory-96_bits_480_bits pa_form-rechteck pa_hoehe-2_5 pa_laenge-264 pa_lagertempbereich_maximum-442 pa_lagertempbereich_minimum-_30 pa_lagertempbereich_minimum-_60 pa_lagertemperatur_maximum-189 pa_lagertemperatur_minimum-_40 pa_rfid_frequenz-uhf pa_untergrund-esd pa_untergrund-glas pa_untergrund-kunststoff pa_untergrund-pappe pa_user_memory-512_bits  instock shipping-taxable product-type-simple">
    	<div class="inner_product main_color wrapped_style noLightbox  av-product-class-"><a href="http://rfid-finder.com/produkt/rfid-tag-lm1001-uhf-bedruckbar/" class="woocommerce-LoopProduct-link"><div class="thumbnail_container"><img width="450" height="450" src="http://rfid-finder.com/wp-content/uploads/2016/05/1001-450x450.jpg" class="attachment-shop_catalog size-shop_catalog wp-post-image" alt="RFID-Tag LM1001 UHF bedruckbar" srcset="http://rfid-finder.com/wp-content/uploads/2016/05/1001-450x450.jpg 450w, http://rfid-finder.com/wp-content/uploads/2016/05/1001-80x80.jpg 80w, http://rfid-finder.com/wp-content/uploads/2016/05/1001-300x300.jpg 300w, http://rfid-finder.com/wp-content/uploads/2016/05/1001-36x36.jpg 36w, http://rfid-finder.com/wp-content/uploads/2016/05/1001-180x180.jpg 180w, http://rfid-finder.com/wp-content/uploads/2016/05/1001-120x120.jpg 120w, http://rfid-finder.com/wp-content/uploads/2016/05/1001.jpg 600w" sizes="(max-width: 450px) 100vw, 450px" style="left: 0px;"><span class="cart-loading"></span></div><div class="inner_product_header"><div class="avia-arrow"></div><div class="inner_product_header_table"><div class="inner_product_header_cell"><h2 class="woocommerce-loop-product__title">RFID-Tag LM1001 UHF bedruckbar</h2>
    </div></div></div></a><div class="avia_cart_buttons "><a rel="nofollow" href="http://rfid-finder.com/produkt/rfid-tag-lm1001-uhf-bedruckbar/" data-quantity="1" data-product_id="914" data-product_sku="LM1001-ST" class="button product_type_simple ajax_add_to_cart"><span aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span> Weiterlesen</a><a class="button show_details_button" href="http://rfid-finder.com/produkt/rfid-tag-lm1001-uhf-bedruckbar/"><span aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span>  Zeige Details</a> <span class="button-mini-delimiter"></span></div></div></li>
    <li class="post-909 product type-product status-publish has-post-thumbnail product_cat-rfid-tag product_tag-auto-id product_tag-hf product_tag-rfid-identifizierung product_tag-rfid-objektkennzeichnung product_tag-rfid-tag product_tag-rfid-technologie product_tag-rfid-transponder pa_anwendungsbereich-auftragsidentifikation pa_anwendungsbereich-fahrzeugidentifikation pa_anwendungsbereich-ladungstraegeridentifikation pa_anwendungsbereich-maschinen_service pa_anwendungsbereich-materialflussverfolgung pa_anwendungsbereich-produktkennzeichnung pa_anwendungsbereich-werkzeugkennzeichnung pa_bedruckbare_oberflaeche-logo pa_befestigungsart-aufkleben pa_betriebstempbereich_maximum-439 pa_betriebstempbereich_minimum-_25 pa_betriebstemperatur_maximum-446 pa_betriebstemperatur_minimum-_25 pa_breite-299 pa_chip_typ-mifare_1k pa_form-rund pa_hoehe-2_5 pa_laenge-266 pa_lagertempbereich_maximum-442 pa_lagertempbereich_minimum-_30 pa_lagertempbereich_minimum-_60 pa_lagertemperatur_maximum-189 pa_lagertemperatur_minimum-_40 pa_rfid_frequenz-hf pa_untergrund-esd pa_untergrund-glas pa_untergrund-kunststoff pa_untergrund-pappe  instock shipping-taxable product-type-simple">
    	<div class="inner_product main_color wrapped_style noLightbox  av-product-class-"><a href="http://rfid-finder.com/produkt/rfid-tag-lm1002-hf-bedruckbar/" class="woocommerce-LoopProduct-link"><div class="thumbnail_container"><img width="450" height="450" src="http://rfid-finder.com/wp-content/uploads/2016/05/1002-450x450.jpg" class="attachment-shop_catalog size-shop_catalog wp-post-image" alt="RFID-Tag LM1002 HF bedruckbar" srcset="http://rfid-finder.com/wp-content/uploads/2016/05/1002-450x450.jpg 450w, http://rfid-finder.com/wp-content/uploads/2016/05/1002-80x80.jpg 80w, http://rfid-finder.com/wp-content/uploads/2016/05/1002-300x300.jpg 300w, http://rfid-finder.com/wp-content/uploads/2016/05/1002-36x36.jpg 36w, http://rfid-finder.com/wp-content/uploads/2016/05/1002-180x180.jpg 180w, http://rfid-finder.com/wp-content/uploads/2016/05/1002-120x120.jpg 120w, http://rfid-finder.com/wp-content/uploads/2016/05/1002.jpg 600w" sizes="(max-width: 450px) 100vw, 450px" style="left: 0px;"><span class="cart-loading"></span></div><div class="inner_product_header"><div class="avia-arrow"></div><div class="inner_product_header_table"><div class="inner_product_header_cell"><h2 class="woocommerce-loop-product__title">RFID-Tag LM1002 HF bedruckbar</h2>
    </div></div></div></a><div class="avia_cart_buttons "><a rel="nofollow" href="http://rfid-finder.com/produkt/rfid-tag-lm1002-hf-bedruckbar/" data-quantity="1" data-product_id="909" data-product_sku="LM1002-ST" class="button product_type_simple ajax_add_to_cart"><span aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span> Weiterlesen</a><a class="button show_details_button" href="http://rfid-finder.com/produkt/rfid-tag-lm1002-hf-bedruckbar/"><span aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span>  Zeige Details</a> <span class="button-mini-delimiter"></span></div></div></li>
    </ul>

    it loads 4 products.

    first slide looks like this –> class is .products slide-entry-wrap active-slide

    <ul class="products slide-entry-wrap active-slide" style="visibility: visible; opacity: 1; transition: none; transform: translateZ(0px); z-index: 3;"><li class="post-907 product type-product status-publish has-post-thumbnail product_cat-rfid-tag product_tag-auto-id product_tag-rfid-identifizierung product_tag-rfid-objektkennzeichnung product_tag-rfid-tag product_tag-rfid-technologie product_tag-rfid-transponder product_tag-uhf pa_anwendungsbereich-auftragsidentifikation pa_anwendungsbereich-produktkennzeichnung pa_anwendungsbereich-werkzeugkennzeichnung pa_befestigungsart-aufkleben pa_betriebstempbereich_maximum-439 pa_betriebstempbereich_minimum-_25 pa_betriebstemperatur_maximum-320 pa_betriebstemperatur_minimum-_25 pa_breite-302 pa_chip_typ-nxp_i_code_sli pa_form-rechteck pa_hoehe-2_5 pa_laenge-267 pa_lagertempbereich_maximum-442 pa_lagertempbereich_minimum-_30 pa_lagertempbereich_minimum-_60 pa_lagertemperatur_maximum-189 pa_lagertemperatur_minimum-_40 pa_rfid_frequenz-uhf pa_untergrund-esd pa_untergrund-glas pa_untergrund-kunststoff pa_untergrund-pappe first instock shipping-taxable product-type-simple">
    	<div class="inner_product main_color wrapped_style noLightbox  av-product-class-"><a href="http://rfid-finder.com/produkt/rfid-tag-lm1000-uhf/" class="woocommerce-LoopProduct-link"><div class="thumbnail_container"><img width="450" height="450" src="http://rfid-finder.com/wp-content/uploads/2016/05/1000-450x450.jpg" class="attachment-shop_catalog size-shop_catalog wp-post-image" alt="RFID-Tag LM1000 UHF" srcset="http://rfid-finder.com/wp-content/uploads/2016/05/1000-450x450.jpg 450w, http://rfid-finder.com/wp-content/uploads/2016/05/1000-80x80.jpg 80w, http://rfid-finder.com/wp-content/uploads/2016/05/1000-300x300.jpg 300w, http://rfid-finder.com/wp-content/uploads/2016/05/1000-36x36.jpg 36w, http://rfid-finder.com/wp-content/uploads/2016/05/1000-180x180.jpg 180w, http://rfid-finder.com/wp-content/uploads/2016/05/1000-120x120.jpg 120w, http://rfid-finder.com/wp-content/uploads/2016/05/1000.jpg 600w" sizes="(max-width: 450px) 100vw, 450px" style="left: 0px;"><span class="cart-loading"></span></div><div class="inner_product_header"><div class="avia-arrow"></div><div class="inner_product_header_table"><div class="inner_product_header_cell"><h2 class="woocommerce-loop-product__title">RFID-Tag LM1000 UHF</h2>
    </div></div></div></a><div class="avia_cart_buttons "><a rel="nofollow" href="http://rfid-finder.com/produkt/rfid-tag-lm1000-uhf/" data-quantity="1" data-product_id="907" data-product_sku="LM1000-ST" class="button product_type_simple ajax_add_to_cart"><span aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span> Weiterlesen</a><a class="button show_details_button" href="http://rfid-finder.com/produkt/rfid-tag-lm1000-uhf/"><span aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span>  Zeige Details</a> <span class="button-mini-delimiter"></span></div></div></li>
    <li class="post-914 product type-product status-publish has-post-thumbnail product_cat-rfid-tag product_tag-auto-id product_tag-rfid-identifizierung product_tag-rfid-objektkennzeichnung product_tag-rfid-tag product_tag-rfid-technologie product_tag-rfid-transponder product_tag-uhf pa_anwendungsbereich-auftragsidentifikation pa_anwendungsbereich-c_teile_management pa_anwendungsbereich-materialflussverfolgung pa_anwendungsbereich-produktkennzeichnung pa_anwendungsbereich-werkzeugkennzeichnung pa_bedruckbare_oberflaeche-seriennummer pa_befestigungsart-aufkleben pa_betriebstempbereich_maximum-439 pa_betriebstempbereich_minimum-_25 pa_betriebstemperatur_maximum-446 pa_betriebstemperatur_minimum-_25 pa_breite-302 pa_chip_typ-impinj_monza_4 pa_epc_memory-96_bits_480_bits pa_form-rechteck pa_hoehe-2_5 pa_laenge-264 pa_lagertempbereich_maximum-442 pa_lagertempbereich_minimum-_30 pa_lagertempbereich_minimum-_60 pa_lagertemperatur_maximum-189 pa_lagertemperatur_minimum-_40 pa_rfid_frequenz-uhf pa_untergrund-esd pa_untergrund-glas pa_untergrund-kunststoff pa_untergrund-pappe pa_user_memory-512_bits  instock shipping-taxable product-type-simple">
    	<div class="inner_product main_color wrapped_style noLightbox  av-product-class-"><a href="http://rfid-finder.com/produkt/rfid-tag-lm1001-uhf-bedruckbar/" class="woocommerce-LoopProduct-link"><div class="thumbnail_container"><img width="450" height="450" src="http://rfid-finder.com/wp-content/uploads/2016/05/1001-450x450.jpg" class="attachment-shop_catalog size-shop_catalog wp-post-image" alt="RFID-Tag LM1001 UHF bedruckbar" srcset="http://rfid-finder.com/wp-content/uploads/2016/05/1001-450x450.jpg 450w, http://rfid-finder.com/wp-content/uploads/2016/05/1001-80x80.jpg 80w, http://rfid-finder.com/wp-content/uploads/2016/05/1001-300x300.jpg 300w, http://rfid-finder.com/wp-content/uploads/2016/05/1001-36x36.jpg 36w, http://rfid-finder.com/wp-content/uploads/2016/05/1001-180x180.jpg 180w, http://rfid-finder.com/wp-content/uploads/2016/05/1001-120x120.jpg 120w, http://rfid-finder.com/wp-content/uploads/2016/05/1001.jpg 600w" sizes="(max-width: 450px) 100vw, 450px" style="left: 0px;"><span class="cart-loading"></span></div><div class="inner_product_header"><div class="avia-arrow"></div><div class="inner_product_header_table"><div class="inner_product_header_cell"><h2 class="woocommerce-loop-product__title">RFID-Tag LM1001 UHF bedruckbar</h2>
    </div></div></div></a><div class="avia_cart_buttons "><a rel="nofollow" href="http://rfid-finder.com/produkt/rfid-tag-lm1001-uhf-bedruckbar/" data-quantity="1" data-product_id="914" data-product_sku="LM1001-ST" class="button product_type_simple ajax_add_to_cart"><span aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span> Weiterlesen</a><a class="button show_details_button" href="http://rfid-finder.com/produkt/rfid-tag-lm1001-uhf-bedruckbar/"><span aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span>  Zeige Details</a> <span class="button-mini-delimiter"></span></div></div></li>
    <li class="post-909 product type-product status-publish has-post-thumbnail product_cat-rfid-tag product_tag-auto-id product_tag-hf product_tag-rfid-identifizierung product_tag-rfid-objektkennzeichnung product_tag-rfid-tag product_tag-rfid-technologie product_tag-rfid-transponder pa_anwendungsbereich-auftragsidentifikation pa_anwendungsbereich-fahrzeugidentifikation pa_anwendungsbereich-ladungstraegeridentifikation pa_anwendungsbereich-maschinen_service pa_anwendungsbereich-materialflussverfolgung pa_anwendungsbereich-produktkennzeichnung pa_anwendungsbereich-werkzeugkennzeichnung pa_bedruckbare_oberflaeche-logo pa_befestigungsart-aufkleben pa_betriebstempbereich_maximum-439 pa_betriebstempbereich_minimum-_25 pa_betriebstemperatur_maximum-446 pa_betriebstemperatur_minimum-_25 pa_breite-299 pa_chip_typ-mifare_1k pa_form-rund pa_hoehe-2_5 pa_laenge-266 pa_lagertempbereich_maximum-442 pa_lagertempbereich_minimum-_30 pa_lagertempbereich_minimum-_60 pa_lagertemperatur_maximum-189 pa_lagertemperatur_minimum-_40 pa_rfid_frequenz-hf pa_untergrund-esd pa_untergrund-glas pa_untergrund-kunststoff pa_untergrund-pappe  instock shipping-taxable product-type-simple">
    	<div class="inner_product main_color wrapped_style noLightbox  av-product-class-"><a href="http://rfid-finder.com/produkt/rfid-tag-lm1002-hf-bedruckbar/" class="woocommerce-LoopProduct-link"><div class="thumbnail_container"><img width="450" height="450" src="http://rfid-finder.com/wp-content/uploads/2016/05/1002-450x450.jpg" class="attachment-shop_catalog size-shop_catalog wp-post-image" alt="RFID-Tag LM1002 HF bedruckbar" srcset="http://rfid-finder.com/wp-content/uploads/2016/05/1002-450x450.jpg 450w, http://rfid-finder.com/wp-content/uploads/2016/05/1002-80x80.jpg 80w, http://rfid-finder.com/wp-content/uploads/2016/05/1002-300x300.jpg 300w, http://rfid-finder.com/wp-content/uploads/2016/05/1002-36x36.jpg 36w, http://rfid-finder.com/wp-content/uploads/2016/05/1002-180x180.jpg 180w, http://rfid-finder.com/wp-content/uploads/2016/05/1002-120x120.jpg 120w, http://rfid-finder.com/wp-content/uploads/2016/05/1002.jpg 600w" sizes="(max-width: 450px) 100vw, 450px" style="left: 0px;"><span class="cart-loading"></span></div><div class="inner_product_header"><div class="avia-arrow"></div><div class="inner_product_header_table"><div class="inner_product_header_cell"><h2 class="woocommerce-loop-product__title">RFID-Tag LM1002 HF bedruckbar</h2>
    </div></div></div></a><div class="avia_cart_buttons "><a rel="nofollow" href="http://rfid-finder.com/produkt/rfid-tag-lm1002-hf-bedruckbar/" data-quantity="1" data-product_id="909" data-product_sku="LM1002-ST" class="button product_type_simple ajax_add_to_cart"><span aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span> Weiterlesen</a><a class="button show_details_button" href="http://rfid-finder.com/produkt/rfid-tag-lm1002-hf-bedruckbar/"><span aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span>  Zeige Details</a> <span class="button-mini-delimiter"></span></div></div></li>
    </ul>

    it loads only 3 products? Somewhere this must be defined. The problem harms only the first slide load, second third, etc. all have four products….

    Best regards Marc

    • This reply was modified 8 years, 8 months ago by L-mobileGroup.
    #782167

    Thanks Mike,

    I still need help on this.

    I added this:

    “Turn on Custom CSS Class field for all ALB Elements

    December 3, 2013/in CSS Snippets, PHP Snippets /by Devin/Last Updated: April 9, 2014
    Once enabled, the following function adds a new field to each of your Advanced Layout Builder element’s pop up menu.

    First Add this line of PHP to your functions.php file so that the custom class field is enabled:”

    add_theme_support('avia_template_builder_custom_css');

    In the full width easy slider I added this @media only screen and (min-width: 990px) { .only-mobile { display: none !important; }}

    In the video, I added this @media only screen and (max-width: 990px) { .only-desktop { display: none !important; }}

    Nothing changed. Thanks for your help on this.

    I have been wanting to have more mobile friendly images, etc. for a long time. This will be great once I learn how to do it!

    #781914

    Hi,

    Thanks for the info :) I solved your problem adding these custom CSS code:

    .image-hover-garagedoors:hover {
      background-image: url('https://www.mesagaragedoors.com/wp-
      content/uploads/2017/04/garagedoors_hover.png') !important;
      background-repeat: no-repeat;
      display: block;
      width: 148px;
      height: 139px;
    }
    
    .image-hover-garagedoors:hover .avia_image {
      display: none !important;
    } 
    

    Just repeat the custom class process and replace the “image-hover-garagedoors” and the background-image url.

    Best regards,
    John Torvik

    #781759

    Yo John,

    I added a custom class to the image and added that code but it didnt seem to work… Here is what I did:

    I added this custom class to the image (screenshot 1)

    Than I added this code to the quick CSS (private)

    I also have this bit of quick css to hide the old rollover icon. If I remove this the old icon shows.

    .avia_image .image-overlay {
        display: none !important;
    }

    Also when I add the .image-hover-garagedoors css it changes the styling on my page and creates white space on both sides of page. As you can see it moves the side margins in the screenshots.

    Let me know how to solve this, I have to make 5 rollover icons. I included a login just in case you need it.

    #781575

    Hi,

    The Yigits code doesnt work because you`re using an image, so, you need to follow this steps:

    Enable the custom css class field: http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and then edit your image elements and give them a custom CSS class (“your-custom-class” in example below) and then add following code to Quick CSS in Enfold theme options under General Styling tab

    .your-custom-class .avia_image:hover img {
        background-image: url('your-green-image.png);
        background-repeat: no-repeat;
    }
    

    P.S: Youll need to create the same image, but its should be green.

    Best regards,
    John Torvik

    #781221

    Hey

    Please enable the custom css class field: http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and then edit your image elements and give them a custom CSS class (“your-custom-class” in example below) and then add following code to Quick CSS in Enfold theme options under General Styling tab

    .your-custom-class .avia_image:hover img {
        background-color: #e2e2e2;
        border-radius: 100%;
    }

    Best regards,
    Yigit

    #779136
    epoludnie
    Participant

    I have the following css code in my child theme style.css:

    
    .epx-smooth_image {
    	image-rendering: auto !important;
    }
    

    I set epx-smooth_image as Custom Css Class for image but as a result I see only
    <div class="avia-image-container-inner"><img class="avia_image " ... ></div>

    I’ve tried to put css class to quick css but the result is just the same.

    What am I doing wrong or is there a bug in theme code?

    #774649

    In reply to: H1 doubled in Posts

    BACK AGAIN

    Before i become crazy about that ……
    There are so many strange dependencys (H1 in title depending from “Don’t display image on single post” / H1 in Content depending from using ALB or not / H1 in title depending from using ALB or not….) that i have no other idea than to suspect a huge bug.
    This is so strange that i cant decide where to begin

    Maybe its better to start from scratch.
    What i want:
    1: using ALB
    2: No H1 in Content
    3: H1 in title

    What do we already got in functions.php

    <?php
    add_filter('avf_title_args', 'change_title_tag', 10, 2);
    function change_title_tag($args,$id)
    {
            $args['link'] = get_permalink($id);
            $args['heading'] = 'div';
        return $args;
    }
    add_filter('avf_title_args', 'fix_single_post_title', 10, 2);
    function fix_single_post_title($args,$id)
    {
        if ( $args['title'] == 'Blog - Die aktuellsten Neuigkeiten' )
        {
            $args['title'] = get_the_title($id);
            $args['link'] = get_permalink($id);
            $args['heading'] = 'h1';
        }
    
        return $args;
    }
    //$avia_config['imgSize']['square-custom'] = array('width'=>300, 'height'=>300); // small image for blogs
    //$avia_config['imgSize']['square2'] = array('width'=>400, 'height'=>400); // small image for blogs
    
    function enqueue_parent_theme_style() {
          wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
    }
    add_action( 'wp_enqueue_scripts', 'enqueue_parent_theme_style');
    
    function theme_name_scripts() {
    	wp_enqueue_style( 'style-name', get_stylesheet_uri() );
    }
    add_action( 'wp_enqueue_scripts', 'theme_name_scripts' );
    
    /* Activate Avia debug mode */
    add_action('avia_builder_mode', "builder_set_debug");
    function builder_set_debug()
    {
    	return "debug";
    }
    /* excerpt lenght */
    add_filter('avf_postgrid_excerpt_length','avia_change_postgrid_excerpt_length', 10, 1);
    function avia_change_postgrid_excerpt_length($length)
    {
       $length = 150;
       return $length;
    }
    
    //removes comments from Combo Widget  // 
    
    class avia_combo_widget extends WP_Widget {
    
    		function avia_combo_widget() {
    			//Constructor
    			$widget_ops = array('classname' => 'avia_combo_widget', 'description' => 'A widget that displays your popular posts, recent posts, recent comments and a tagcloud' );
    			$this->WP_Widget( 'avia_combo_widget', THEMENAME.' Combo Widget', $widget_ops );
    		}
    
    		function widget($args, $instance)
    		{
    			// prints the widget
    
    			extract($args, EXTR_SKIP);
    			$posts = empty($instance['count']) ? 4 : $instance['count'];
    
    			echo $before_widget;
    			echo "<div class='tabcontainer border_tabs top_tab tab_initial_open tab_initial_open__1'>";
    
    			echo '<div class="tab first_tab active_tab widget_tab_popular"><span>'.__('Popular', 'avia_framework').'</span></div>';
    			echo "<div class='tab_content active_tab_content'>";
    			avia_get_post_list('cat=&orderby=comment_count&posts_per_page='.$posts);
    			echo "</div>";
    
    			echo '<div class="tab widget_tab_recent"><span>'.__('Recent', 'avia_framework').'</span></div>';
    			echo "<div class='tab_content'>";
    			avia_get_post_list('showposts='. $posts .'&orderby=post_date&order=desc');
    			echo "</div>";
    
    			echo '<div class="tab last_tab widget_tab_tags"><span>'.__('Tags', 'avia_framework').'</span></div>';
    			echo "<div class='tab_content tagcloud'>";
    			wp_tag_cloud('smallest=12&largest=12&unit=px');
    			echo "</div>";
    
    			echo "</div>";
    			echo $after_widget;
    		}
    
    		function update($new_instance, $old_instance)
    		{
    			$instance = $old_instance;
    			foreach($new_instance as $key=>$value)
    			{
    				$instance[$key]	= strip_tags($new_instance[$key]);
    			}
    
    			return $instance;
    		}
    
    		function form($instance) {
    			//widgetform in backend
    
    			$instance = wp_parse_args( (array) $instance, array('count' => 4) );
    			if(!is_numeric($instance['count'])) $instance['count'] = 4;
    
    	?>
    			<p>
    			<label for="<?php echo $this->get_field_id('count'); ?>">Number of posts you want to display:
    			<input class="widefat" id="<?php echo $this->get_field_id('count'); ?>" name="<?php echo $this->get_field_name('count'); ?>" type="text" value="<?php echo esc_attr($instance['count']); ?>" /></label></p>
    
    		<?php
    		}
    	}
    	add_action( 'ava_after_main_menu', 'enfold_customization_header_widget_area' );
    function enfold_customization_header_widget_area() {
    	dynamic_sidebar( 'header' );
    }
    add_action( 'wp_enqueue_scripts', 'enqueue_font_awesome' );
    function enqueue_font_awesome() {
     
    	wp_enqueue_style( 'font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css' );
     
    }
    add_filter('avf_which_archive_output','avf_change_which_archive', 10, 3);
    function avf_change_which_archive($output)
    {
    	if(is_category())
    	{
    		$output = single_cat_title('',false);
    	}
    
    	return $output;
    }

    Please help me not to end up in a psychward and let me know how i can achieve that (which by the way should not be that complicate, right?)

    #774201

    The following solution removes Enfolds custom functions for the image display of products and variations to restore the new image display starting from WooCommerce 3.0.0 including the new zoom feature and the WooCommerce native lightbox.

    • Use only with WooCommerce Version 3.x.x
    • Use only with Enfold version 4 to 4.0.5

    If you just want to fix the basic image issue please stick with my first solution.

    If you are curious and want to use the new zoom and lightbox feature from woocommerce continue reading.

    —————————————————————————–
    If you do NOT have a Child Theme

    1. Download https://mensmaximus.de/dokumente/enfold/enfold-child-wc3.zip
    2. Login to wordpress and select Appearance -> Themes in the admin menu
    3. Click on ‘add new’ (top left of the theme page)
    4. Click on ‘upload theme’ (top left of the theme page)
    5. Click on the file select button and choose the enfold-child.zip file from step 1
    6. Click on ‘Install now’
    7. Activate the Enfold Child Theme after the installation has finished
    8. Follow the instructions from http://kriesi.at/documentation/enfold/using-a-child-theme/
    9. You are done. Have fun with the new features

    —————————————————————————–
    If you already have a Child Theme

    1. Copy the following code block to the functions.php file of your child theme

    
    /*
    	Woocommerce 3.0.0 Compatibility Fix
    	Remove Enfold's custom functions that conflict with the new image display in WooCommerce 3.0.0
    */
    global $woocommerce;
    
    if( version_compare( $woocommerce->version, '3.0.0', ">=" ) ) {
    
    	add_theme_support( 'wc-product-gallery-zoom' );
    	add_theme_support( 'wc-product-gallery-lightbox' );
    
    	function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id, $image_class ) {
    	    return $img;
    	}
    	function avia_woocommerce_post_thumbnail_description($img, $post_id){
    	    return $img;
    	}
    
    }
    

    2. Copy the following code block to the style.css file of your child theme

    
    .woocommerce-product-gallery__trigger{
        position: absolute !important;
        top: 1em;
        left: 1em;
        z-index: 99;
    }
    

    3. Download https://mensmaximus.de/dokumente/enfold/enfold-child-wc3.zip and unpack the file
    4. Connect to your hosting account via ftp and navigate to your child themes directory
    5. If the child theme directory does not contain a directory called woocommerce you can simply copy the woocommerce directory from my child theme (step 3) to your child themes directory. Otherwise you need to check whether the woocommerce directory in your child theme contains a directory named ‘single-product’. If not you can copy the ‘single-product’ directory contained in the ‘woocommerce’ directory from my child theme (step 3) to your child themes ‘woocommerce directory’. If you already have a directory called ‘single-product’ you have to check wether the files contained in my child theme exist in your child theme. If not copy theme. If they do you need to merge the modifications (Hint: search for ‘noLightbox noHover’ and most likely you will know what to do).
    6. You are done. Have fun with the new features

    @dandelion222 this is by default in Enfold because the lightbox function is missing the .gallery class in the groups property. The script tries to catch the closest group (css class) wrapped around the image that has been clicked on. Unfortunately without .gallery this is .post-entry. The jQuery script will than pick up all images within the div with class .post-entry. You can verify this by adding some more single images to the post content. They all will appear in the gallery popup.

    If you have a child theme you could use a monkey patch in a custom jquery script:

    (function($){
    
        var _old_avia_lightbox = $.fn.avia_activate_lightbox;
        $.fn.avia_activate_lightbox = function( variables ){
        if ( ! variables ) {
            var variables = {};
        }
    
        variables.groups = ['.gallery', '.avia-slideshow', '.avia-gallery', '.av-instagram-pics', '.portfolio-preview-image', '.portfolio-preview-content', '.isotope', '.post-entry', '.sidebar', '#main', '.main_menu'];
    
        return _old_avia_lightbox.call( this, variables );
    
        };
    
    })(jQuery);

    Put the code above in a file called mmx.js and put the file in the child theme directory. In the functions.php file of your child you would than add the following lines:

    add_action( 'wp_enqueue_scripts', 'mmx_load_scripts', '99' );
    function mmx_load_scripts() {
        wp_enqueue_script( 'mmx', get_stylesheet_directory_uri() . '/mmx.js', array( 'jquery', 'avia-default' ) );
    }

    Good afternoon Mike. Your quick response is unreal! Wow!

    You do not see a code snippet because I did not not have any to add. Tried numerous times running through the code in the forums with no luck so gave up.

    (I guess my class=”custom-image”> can be whatever I decide to reference?

    Here is all the CSS Code I have at the moment – nothing that would effect the Title Caption.

    .current_page_item a > .avia-menu-text {color:#a4a4a4!important;}
    }
    #advanced_menu_toggle, #advanced_menu_hide {
    background-color: #a4a4a4!important;
    }
    .sub_menu_socket {
    display:none !important;
    }
    .phone-info {
    font-size: 14px;
    }
    @media only screen and (max-width: 767px) {
    .responsive #scroll-top-link {
    display: block !important;
    }}
    .av_promobox {
    background-color: transparent!important;
    }
    .avia-promocontent p {
    font-size: 21px;
    }

    #766423

    Hi Victoria,

    thank you very much for your answer and your efforts! Unfortunately it didn’t change anything. On the PC Browser everything is still fine, but if you take a look at the pages by smartphone you will see a lot of empty space underneath the header image (coming from the color section / Farb-Sektion).

    I would have been surprised if it worked, because the CSS selectors fullscreen_slider_0 .avia-slideshow-inner are not part of the soucecode environment of the image on the html/php page, which looks like this on http://www.bafatex.com/wordpress/de/das-unternehmen/:

    <div id=”av_section_1″ class=”avia-section main_color avia-section-no-padding avia-no-border-styling avia-full-contain avia-bg-style-scroll avia-builder-el-0 el_before_av_one_full avia-builder-el-first av-minimum-height av-minimum-height-custom container_wrap sidebar_right” style=”background-repeat: no-repeat; background-image: url(http://www.bafatex.com/wordpress/wp-content/uploads/2017/03/bg_unternehmen-1.jpg); background-attachment: scroll; background-position: top center; ” data-section-bg-repeat=”contain”><div class=”container” style=”height:250px”><main role=”main” itemprop=”mainContentOfPage” class=”template-page content av-content-small alpha units”><div class=”post-entry post-entry-type-page post-entry-257″><div class=”entry-content-wrapper clearfix”></div></div></main><!– close content main element –></div></div>

    You can see the empty space underneath the image grow when you just grab the right border of the browser window with your mouse. Pull it to the left to decrease the width of the window. Do you see what happens underneath the image?

    Could the solution lie in altering some of the CSS selectors above? Or a media query? Or does it have to be an “add filter” php extension to the functions.php file of the child theme? If so, it would probably be quite difficult to define images and their display formats for each single page.

    Best regards

    • This reply was modified 8 years, 10 months ago by JGastmann.
    #766035

    Hi,
    Ok figured it out. First remove the thumbnail function and create your own:

    add_action( 'after_setup_theme', 'remove_thumbnail_enfold', 0 );
    
    function remove_thumbnail_enfold($asdf) {
    
        remove_action( 'woocommerce_before_shop_loop_item_title', 'avia_woocommerce_thumbnail' );
    }
    
    add_action( 'woocommerce_before_shop_loop_item_title', 'avia_woocommerce_thumbnail_custom', 10);
    function avia_woocommerce_thumbnail_custom()
    {
    	global $product, $avia_config;
    	$rating = $product->get_rating_html(); //get rating
    
    	$id = get_the_ID();
    	$size = 'shop_catalog';
    
    	echo "<div class='thumbnail_container'>";
    		echo avia_woocommerce_gallery_first_thumbnail( $id , $size);
    		echo get_the_post_thumbnail( $id , $size );
    		echo "<div class='middle'><div class='hover'><img src='http://domain.com/link-to-your-image.png'></div></div>";
    		if(!empty($rating)) echo "<span class='rating_container'>".$rating."</span>";
    		if($product->product_type == 'simple') echo "<span class='cart-loading'></span>";
    	echo "</div>";
    }

    Then in CSS:

    .attachment-shop_catalog {
      opacity: 1;
      display: block;
      width: 100%;
      height: auto;
      transition: .5s ease;
      backface-visibility: hidden;
    }
    
    .middle {
      transition: .5s ease;
      opacity: 0;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%)
    }
    
    .thumbnail_container:hover .attachment-shop_catalog {
      opacity: 0.3;
    }
    
    .thumbnail_container:hover .middle {
      opacity: 1;
    }
    #764012

    Hi,

    This should work for the image element.

    function ava_custom_script_fix(){
    ?>
    <script>
    (function($){
    	$('.avia-image-container-inner a').on('touchstart', function (e) {
    	    'use strict'; //satisfy code inspectors
    	    var link = $(this); //preselect the link
    	    if (link.hasClass('hover')) {
    	        return true;
    	    } else {
    	        link.addClass('hover');
    	        $('.avia-image-container-inner a').not(this).removeClass('hover');
    	        e.preventDefault();
    	        return false; //extra, and to make sure the function has consistent return points
    	    }
    	});
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'ava_custom_script_fix');

    Add this css code:

    .avia-image-container-inner .hover .av-image-caption-overlay {
        opacity: 1;
        filter: alpha(opacity=100);
    }

    Reference: http://jsfiddle.net/c_kick/s9rB4/

    Best regards,
    Ismael

    #762243
    webWahine
    Participant

    Hello

    My page is below, in the private area. I have looked at lots of posts and tried the css below. I have added the class ttDescr to just the first hotspot, which is the top left. Its supposed to be centered text, not justified, and it should also have a tight line height and be bold but for some reason these are not being applied. Please advise and thanks in advance!

    .av-hotspot-container .av-image-hotspot_inner {
    	text-align: center;	
    }
    
    /* hotspot tooltip hover */
    
    .avia-tooltip .avia-arrow {
    	display: none;
    }
    
    .avia-tooltip {
    	/* dk grey */
    	background: rgba(51, 51, 51, 1) !important;
    	border: solid 1px #fff !important;
    }
    
    /* custom class to style text */
    
    .ttDescr {
    	font-size: 14px !important;
    	line-height: 14px !important;
    	color: #fff !important;
    	font-style: normal;
    	font-weight: bold;
    	text-align: center !important;	
    }
    
    #760961

    by the way placing the svg to the image box – give the image box a custom class and f.e. svgimg

    than place in your quick css:

    .svgimg .avia_image {
        height: auto;
        width: 350px;
    }

    or 100%

    #754404

    Hey Johan,

    It appears you got this one sorted? I checked the link on which you have mentioned not okey and the button appears full width.

    If you have any issue

    1. Please enable the custom css class field: http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/
    2. Give the button element a class name of “btn-fullwidth”.
    3. Add this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:

    /* Full width button */
    
    .btn-fullwidth .avia-button {
    width: 100%;
    font-size:30px; /* Make font large */
    }

    Best regards,
    Vinay

Viewing 30 results - 331 through 360 (of 612 total)