Forum Replies Created

Viewing 30 posts - 91 through 120 (of 133 total)
  • Author
    Posts
  • Then check your capabilities or maybe it is a software bug. Placed it 3 times already to be precise.
    Anyway, i know this fixes it. The problem is that when you leave the seo field empty, the tags don’t seem to be used.

    Ow come on. The login url has been in the private datafield multiple times already.

    Did you use the support code in the functions?

    //Show Advanced Layout Builder on Woocommerce Shop overview
    add_theme_support( 'avia_custom_shop_page' );

    Did you use the avl for the shop page?
    To be clear; the rewriting works when you set an actual seo title for the shop page but, as i said in my second post, when you leave the title tag empty (thus: %%title%% – %%page%% – %%sitename%%) no seo tag is given. This means that the %%title%% is not replaced by the page title of the shop overview page.

    I have enfold 4.2.5 and yoast seo up to date.
    See the login link for my installation.
    Thanks

    Hi,
    As I said this does not happen when I switch off avl. The problem does not remain when I use a default theme

    No I have not, since this is only happening when the advanced layout builder is enabled.
    Therefore I guess it might be an enfold bug?

    Thanks

    Check out the private content to see the problem live and check out the backend.
    Let me know. Thanks

    in reply to: BUG – Enfold support wake up??!! #919548

    Thats what you guys said last time but nothing happened. I am still hoping for a proper fix.
    Thanks

    in reply to: BUG – Enfold support wake up??!! #919539

    Hi,
    Hope this time support is proper, as i already did that before.

    Hi,
    Found out this happens with the newest Yoast update.
    I can set manually the shop page title with no problem, but yoast won’t get parameters like %%title%% - %%page%% - %%sitename%%

    Might be a Yoast issue. It happens however only when advanced layout builder is enabled.

    • This reply was modified 6 years, 8 months ago by wzshop.
    in reply to: CSS issue with audio player on WP 4.9.1 #886448

    Hi,
    Thanks that almost fixed it. Only the volume slider is now slightly lower than the ‘progress’ slider.
    See private content.

    Also, will a fix be released?

    in reply to: Import a custom made demo? #886418

    Ok thank you!

    in reply to: CSS issue with audio player on WP 4.9.1 #886417

    See private content

    • This reply was modified 6 years, 11 months ago by wzshop.

    I guess that’s for your own good, so please do so.

    Hi, that is my own fix, see here: https://kriesi.at/support/topic/facebook-widget-showing-up-on-single-product-page/

    I was hoping this bug would be fixed in a new enfold update.

    Again, check the private content box. The extra floating facebook like widget is still there.
    It happens when setting the sidebarsettings to ‘no sidebar’.
    Apparently the hidden class on the <aside> is not working for the floating FB like box.

    Can this be Fixed asap??

    Hi, no that is not the case.
    As mentioned, i downgraded it again to an older version and the problem is still gone/fixed.

    Hi,
    It is fixed now, maybe i had an old cache.
    But what exactly did (you) change? I tried the old enfold version and the widget is still gone (problem is fixed).
    Did you change something?

    Greetings

    See here: https://kriesi.at/themes/enfold-shop/product/red-velvet/
    Yes, the problem is still there and i am still waiting for a solution.

    • This reply was modified 6 years, 12 months ago by wzshop.

    Ive just updated to the latest version. Problem is still there.
    Also if you don’t want users to use ALB on product pages, then don’t use it in your demos.

    Ive had better support before.

    Here you go

    in reply to: Add a custom item to Advanced Layout Builder #879783

    Please close it, thanks!

    in reply to: Add a custom item to Advanced Layout Builder #877994

    Awesome, that worked! Thanks :)

    in reply to: Image hover causes 100 width? #768777

    Anyway, adding overflow:visible !important;} to the css of the image link solved the issue.

    in reply to: Image hover causes 100 width? #768307

    Ah, i am busy on it now thats why,
    Should be ok now…?

    in reply to: How to place product hover image? #766558

    Sure, please close

    in reply to: How to place product hover image? #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;
    }
    in reply to: How to place product hover image? #765989

    Haha no, this is an example of how i want it;)

    in reply to: How to place product hover image? #765761

    Thanks,
    Hmm I thought it would be possible through some CSS modification or a custom function?

    Anyone who can help me out on this?
    Thanks a million!

    in reply to: Get a Tab field value in a custom shortcode #762107

    Pff, sorry did not know it was as easy as using $global.
    See https://codex.wordpress.org/Global_Variables and also: http://stackoverflow.com/questions/18517705/pass-php-variable-created-in-one-function-to-another

    • This reply was modified 7 years, 8 months ago by wzshop.
    in reply to: Tabs with image + Title. How to create extra field? #761362

    Hi,
    Ok got it fixed. Below the code. This is a quick fix and might not be the most straightforward one.

    Create a file in your child template folder/shortcodes/tabs.php

    <?php
    if ( !class_exists( 'avia_sc_tab' ) )
    {
        class avia_sc_tab extends aviaShortcodeTemplate
        {
            static $tab_id = 1;
            static $counter = 1;
            static $initial = 1;
    
            /**
             * Create the config array for the shortcode button
             */
            function shortcode_insert_button()
            {
                $this->config['name']		= __('Tabs', 'avia_framework' );
                $this->config['tab']		= __('Content Elements', 'avia_framework' );
                $this->config['icon']		= AviaBuilder::$path['imagesURL']."sc-tabs.png";
                $this->config['order']		= 75;
                $this->config['target']		= 'avia-target-insert';
                $this->config['shortcode'] 	= 'av_tab_container';
                $this->config['shortcode_nested'] = array('av_tab');
                $this->config['tooltip'] 	= __('Creates a tabbed content area', 'avia_framework' );
            }
    
            function extra_assets()
            {
                if(is_admin())
                {
                    $ver = AviaBuilder::VERSION;
                    wp_enqueue_script('avia_tab_toggle_js' , AviaBuilder::$path['assetsURL'].'js/avia-tab-toggle.js' , array('avia_modal_js'), $ver, 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(
                        "name" 	=> __("Tab Position", 'avia_framework' ),
                        "desc" 	=> __("Where should the tabs be displayed", 'avia_framework' ),
                        "id" 	=> "position",
                        "type" 	=> "select",
                        "std" 	=> "top_tab",
                        'container_class' =>"avia-element-fullwidth",
                        "target"  => array('#aviaTBcontent-form-container', 'class'),
                        "subtype" => array( __('Display tabs at the top', 'avia_framework' ) =>'top_tab',
                            __("Display Tabs on the left", 'avia_framework' ) => 'sidebar_tab sidebar_tab_left',
                            __("Display Tabs on the right", 'avia_framework' ) => 'sidebar_tab sidebar_tab_right')
                    ),
    
                    array(
                        "name" 	=> __("Boxed Tabs", 'avia_framework' ),
                        "desc" 	=> __("Do you want to display a border around your tabs or without border", 'avia_framework' ),
                        "id" 	=> "boxed",
                        "type" 	=> "select",
                        "std" 	=> "no",
                        "required" => array('position','contains','sidebar_tab'),
                        "subtype" => array(
                            __('With border',  'avia_framework' ) =>'border_tabs',
                            __('Without border',  'avia_framework' ) =>'noborder_tabs')),
    
                    array(
                        "name" => __("Add/Edit Tabs", 'avia_framework' ),
                        "desc" => __("Here you can add, remove and edit the Tabs you want to display.", 'avia_framework' ),
                        "type" 			=> "modal_group",
                        "id" 			=> "content",
                        'container_class' =>"avia-element-fullwidth avia-tab-container",
                        "modal_title" 	=> __("Edit Form Element", 'avia_framework' ),
                        "std"			=> array(
    
                            array('title'=>__('Tab 1', 'avia_framework' )),
                            array('title'=>__('Tab 2', 'avia_framework' )),
    
                        ),
    
                        'subelements' 	=> array(
    
                            array(
                                "name" 	=> __("Tab Title", 'avia_framework' ),
                                "desc" 	=> __("Enter the tab title here (Better keep it short)", 'avia_framework' ) ,
                                "id" 	=> "title",
                                "std" 	=> "Tab Title",
                                "type" 	=> "input"),
    
    						array(
                                "name" 	=> __("Tab Symbol", 'avia_framework' ),
                                "desc" 	=> __("Should an icon or image be displayed at the top of the tab title?", 'avia_framework' ),
                                "id" 	=> "icon_select",
                                "type" 	=> "select",
                                "std" 	=> "no",
                                "subtype" => array(
                                    __('No icon or image',  'avia_framework' ) =>'no',
                                    __('Display icon',  'avia_framework' ) =>'icon_top',
                                    __('Display image',  'avia_framework' ) =>'image_top')),
    
                            array(
                                "name" 	=> __("Tab Icon",'avia_framework' ),
                                "desc" 	=> __("Select an icon for your tab title below",'avia_framework' ),
                                "id" 	=> "icon",
                                "type" 	=> "iconfont",
                                "std" 	=> "",
                                "required" => array('icon_select','equals','icon_top')
                            ),
                            
                            array(
    									"name" 	=> __("Tab Image",'avia_framework' ),
    									"desc" 	=> __("Either upload a new, or choose an existing image from your media library",'avia_framework' ),
    									"id" 	=> "tab_image",
    									"type" 	=> "image",
    									"fetch" => "id",
    									"secondary_img" => true,
    									"force_id_fetch"=> true,
    									"title" =>  __("Insert Image",'avia_framework' ),
    									"button" => __("Insert",'avia_framework' ),
    									"required" => array('icon_select','equals','image_top'),
    									"std" 	=> ""),
    					
    						
    						array(
                                "name" 	=> __("Tab Image Style", 'avia_framework' ),
                                "id" 	=> "tab_image_style",
                                "type" 	=> "select",
                                "std" 	=> "",
    							"required" => array('icon_select','equals','image_top'),
                                "subtype" => array(
                                    __('No special style',  'avia_framework' ) =>'',
                                    __('Rounded Borders',  'avia_framework' ) =>'av-tab-image-rounded',
                                    __('Circle',  'avia_framework' ) =>'av-tab-image-circle',
                                   )),
    						
    						
    					array(
    							"type" 	=> "close_div",
    							'nodescription' => true
    						), 
    
                            array(
                                "name" 	=> __("Tab Content", 'avia_framework' ),
                                "desc" 	=> __("Enter some content here", 'avia_framework' ) ,
                                "id" 	=> "content",
                                "type" 	=> "tiny_mce",
                                "std" 	=> __("Tab Content goes here", 'avia_framework' ),
                            ),
    
                        )
                    ),
    
                    array(
                        "name" 	=> __("Initial Open", 'avia_framework' ),
                        "desc" 	=> __("Enter the Number of the Tab that should be open initially.", 'avia_framework' ),
                        "id" 	=> "initial",
                        "std" 	=> "1",
                        "type" 	=> "input"),
    
                );
    
                if(current_theme_supports('avia_template_builder_custom_tab_toogle_id'))
                {
                    $this->elements[2]['subelements'][] = array(
                        "name" 	=> __("For Developers: Custom Tab ID",'avia_framework' ),
                        "desc" 	=> __("Insert a custom ID for the element here. Make sure to only use allowed characters.",'avia_framework' ),
                        "id" 	=> "custom_id",
                        "type" 	=> "input",
                        "std" 	=> "");
                }
    
            }
    
            /**
             * 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}}");
                $content  = $this->update_template("content", "{{content}}");
    
    			extract(av_backend_icon($params)); // creates $font and $display_char if the icon was passed as param "icon" and the font as "font" 
                
    			
                $params['innerHtml']  = "";
                $params['innerHtml'] .= "<div class='avia_title_container'>";
                /*$params['innerHtml'] .= "	<span ".$this->class_by_arguments('icon_select' ,$params['args']).">";
    			$params['innerHtml'] .= "		<span ".$this->class_by_arguments('font' ,$font).">";
                $params['innerHtml'] .= "			<span data-update_with='icon_fakeArg' class='avia_tab_icon' >{$display_char}</span>";
                $params['innerHtml'] .= "		</span>";
                $params['innerHtml'] .= "	</span>";*/
                $params['innerHtml'] .= "	<span class='avia_title_container_inner' {$template} >".$params['args']['title']."</span>";
                $params['innerHtml'] .= "</div>";
    
                $params['innerHtml'] .= "<div class='avia_content_container' {$content}>".stripcslashes( $params['content'] )."</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('initial' => '1', 'position' => 'top_tab', 'boxed'=>'border_tabs'), $atts, $this->config['shortcode']);
                extract($atts);
    
                $boxed   = $position != "top_tab" ? $boxed : "";
                $output  = '<div class="tabcontainer  '.$position.' '.$boxed.' '.$meta['el_class'].'">'."\n";
                $counter = 1;
    
                avia_sc_tab::$counter = 1;
                avia_sc_tab::$initial = $initial;
    
                $output .= ShortcodeHelper::avia_remove_autop($content, true);
    
                $output .= '</div>'."\n";
    
                return $output;
            }
    
            function av_tab($atts, $content = "", $shortcodename = "")
            {
                
                $output = $titleClass  = $contentClass = $icon = "";
                $tab_atts = shortcode_atts(array('title' => '', 'icon_select'=>'no', 'icon' =>"", 'custom_id' =>'', 'font' =>'', 'custom_markup' => '','tab_image' =>"",'tab_image_style' =>""), $atts, 'av_tab');
                
    				$display_char 	= av_icon($tab_atts['icon'], $tab_atts['font']);
    				$icon			= "";
    				$image 			= "";
    
                if(is_numeric(avia_sc_tab::$initial) && avia_sc_tab::$counter == avia_sc_tab::$initial)
                {
                    $titleClass   = "active_tab";
                    $contentClass = "active_tab_content";
                }
    
                if(empty($tab_atts['title']))
                {
                    $tab_atts['title'] = avia_sc_toggle::$counter;
                }
    
                /*if($tab_atts['icon_select'] == "yes")
                {
                    $icon = "<span class='tab_icon' {$display_char}></span>";
                }*/
    			if($tab_atts['icon_select'] == "icon_top")
    	            {
    	                //avia_sc_tab_section::$tab_icons[ avia_sc_tab_section::$tab ] = "<span class='av-tab-section-icon' {$display_char}></span>";
    	            $myccicon ="<span class='av-tab-section-icon maxwwicon' {$display_char}></span>";
    				}
    	            
    	            if($tab_atts['icon_select'] == "image_top")
    	            {
    	            	if(!empty($tab_atts['tab_image']))
    	            	{
    	            		$src = wp_get_attachment_image_src($tab_atts['tab_image'], 'square');
    	            		
    	            		if(!empty($src[0])){
    	            	    	$myccimage = "<img class='av-tab-section-image' src='".$src[0]."' alt='' title='' />";
    						}
    					}
    				}
    
                if(empty($tab_atts['custom_id']))
                {
                    $tab_atts['custom_id'] = 'tab-id-'.avia_sc_tab::$tab_id++;
                }
    
                $markup_tab = avia_markup_helper(array('context' => 'entry','echo'=>false, 'custom_markup'=>$tab_atts['custom_markup']));
                $markup_title = avia_markup_helper(array('context' => 'entry_title','echo'=>false, 'custom_markup'=>$tab_atts['custom_markup']));
                $markup_text = avia_markup_helper(array('context' => 'entry_content','echo'=>false, 'custom_markup'=>$tab_atts['custom_markup']));
    
                $output .= '<section class="av_tab_section" '.$markup_tab.'>';
                $output .= '    <div data-fake-id="#'.$tab_atts['custom_id'].'" class="tab '.$titleClass.'" '.$markup_title.'>'.$myccimage.$myccicon.$tab_atts['title'].'</div>'."\n";
                $output .= '    <div id="'.$tab_atts['custom_id'].'-container" class="tab_content '.$contentClass.'">'."\n";
                $output .= '        <div class="tab_inner_content invers-color" '.$markup_text.'>'."\n";
    			$output .= ShortcodeHelper::avia_apply_autop(ShortcodeHelper::avia_remove_autop($content))."\n";
                $output .= '        </div>'."\n";
                $output .= '    </div>'."\n";
                $output .= '</section>'."\n";
    
                avia_sc_tab::$counter ++;
    
                return $output;
            }
    	}
    }
    ?>

    Then call this file in your child functions.php

    add_filter( 'avia_load_shortcodes', 'mmx_modify_shortcodes', 15, 1 );
    function mmx_modify_shortcodes( $paths ){
    	$template_url = get_stylesheet_directory();
    	array_unshift( $paths, $template_url.'/shortcodes/');
    	return $paths;
    }
    

    Any remarks or tips are welcome.
    Thanks

Viewing 30 posts - 91 through 120 (of 133 total)