Forum Replies Created

Viewing 30 posts - 31 through 60 (of 70 total)
  • Author
    Posts
  • I do get the same issue when using Enfold and WooCommerce.

    Adittional
    ,”description”:”<\/div>\n<\/div>\n<\/div>\n<p><!– close

    Is not good, you could apply a short filter to remove all HTML code in the description etc… Im searching the hook or function where that code is implemented.

    • This reply was modified 5 years, 9 months ago by BlutVampir.

    Did work, thanks

    When I copy the file:
    /themes/enfold/config-templatebuilder/avia-shortcodes/postslider/postslider.php

    to here:
    /themes/enfold-child/config-templatebuilder/avia-shortcodes/postslider/postslider.php

    and make changes, they are not applied!

    So I edited the ORIGINAL FILE directly:
    /themes/enfold/config-templatebuilder/avia-shortcodes/postslider/postslider.php Line 618
    if(1==1 OR ($show_meta && !empty($excerpt)))

    The 1==1 makes that its everythime valid and ALWAYS the date is shown below the posttitle. Otherwise, It gets shown from time to time. ALL posts have empty excerpt.

    The show_meta is loaded via:
    $show_meta = !is_post_type_hierarchical($entry->post_type);
    But, all posts are the same. No hierarchical as I would say.

    I do not have any filter or actions to say there “Always” true.

    How can I copy the shortcode correctly, that the one from child-theme gets loaded and not from original folder?

    Enfold 5.0 same issue, but diffrent file.

    I did copy the hole folder structure and the file, but the file is not beeing load in the child theme folder.

    Please fix as this is not only strange but stupid.

    I did disable:

    if(1==1 OR ($show_meta && !empty($excerpt)))

    as: $show_meta, where is that defined? excerpt is empty by all my posts. 3 have date shown, 8 not. Everything with the same setup. I can clone posts, some have, some not of them…

    in reply to: HREFLANG missing in Blog Element with pagination #1040386
    This reply has been marked as private.
    in reply to: Request change in avia_google_maps_api.js #995885

    Make an Global Array where the maps are in and increase x with every map.

    var global_maps[x] = new_map;

    As said, I know that it only works with one map as said. You will find a solution ;)

    in reply to: do_shortcode issue on visual builder #990226

    I did add it in the product single template. The site is only reachable internally yet.

    woocommerce/template/content-single-product.php
    (of corse in a copy in the child theme ;) )

    in reply to: do_shortcode issue on visual builder #990074

    Yes and no.

    $post = get_post(126);
    $content = str_replace("min_height='av-equal-height-column'","",$post->post_content);
    $content = do_shortcode($content);

    Show me the page without a sidebar, as the layout is set up.

    $post = get_post(126);
    $content = Avia_Builder()->compile_post_content( $post );

    Does work, but show me the product page with a sidebar. where can I disable the sidebar?
    Page 126 doesn’t have one set. Product page cannot be “changed” anywhere…

    Default Page Layout of enfold is set without sidebar…

    • This reply was modified 6 years, 4 months ago by BlutVampir.
    in reply to: do_shortcode issue on visual builder #989219

    well….

    I removed:
    min_height='av-equal-height-column'
    from the shortcode, as in an other thread somebody said that this is causing the issue… The response of the moderator was “not Enfold standard, work please get a developer”

    I did:

    $post = get_post(126); 
    $content = str_replace("min_height='av-equal-height-column'","",$post->post_content);
    echo do_shortcode($content);

    now its working again.

    But that is clearly somewhere a big bug in your code, that this property in the shortcode breaks the complete responsiveness. It seams the “equal height” detects every part as “own” part and splitts them, instead of aligning them besides each other.

    So, the output is working, but not the equal height… lesser problem, perhaps you have a fix.

    in reply to: do_shortcode issue on visual builder #989214

    I also tried to use:

    $content = apply_filters('avia_builder_precompile', get_post_meta(126, '_aviaLayoutBuilderCleanData', true));
    		$content = apply_filters('the_content', $content );
    		$content = apply_filters('avf_template_builder_content', $content);
    		echo $content;

    Without luck, same issue. all 1/2, 1/3, etc are 100% wide…

    I did also remove all newlines and returnes from content and tried then to “convert it via do_shortcode() without luck.
    Code used:
    $content = preg_replace(array("/\][\r\n\s\t]*/m","/[\r\n\s\t]*\[/m"),array("]","["),$post->post_content);
    How does enfold detect if a colum table need to be closed or not.. frustrating really :(

    in reply to: Multiline Navigation (Enfold) #956412

    Is there a demo where I can see that in Action?

    in reply to: Layerslider not showing after update to [4.3.1] #951392

    I did an new Visual Element.

    add following codes in your child theme:

    functions.php

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

    ad shortcodes/slideshow_layerslider.php in your childtheme:

    <?php
    /**
     * Advanced Layerslider
     * 
     * Display a Layerslider Slideshow
     * @modified 4.2.1, 4.2.7
     * @modified_by Günter
     */
    if ( ! defined( 'ABSPATH' ) ) {  exit;  }    // Exit if accessed directly
    
    if( ! Avia_Config_LayerSlider()->is_active() )
    {
    	return;
    }
    
    if ( ! class_exists( 'avia_sc_layersliderB' ) ) 
    {
    	class avia_sc_layersliderB extends aviaShortcodeTemplate
    	{		
    			static $slide_count = 0;
    			
    			/**
    			 * Create the config array for the shortcode button
    			 */
    			public function shortcode_insert_button()
    			{
    				$this->config['self_closing']			=	'yes';
    				$class->config['forced_load_objects']	=	array( 'layerslider' );		//	fallback only to make sure we load in case user overwrites this class and direct checks for shortcode might fail
    				
    				$this->config['name']		= __('Modified Layerslider', 'avia_framework' );
    				$this->config['tab']		= __('Media Elements', 'avia_framework' );
    				$this->config['icon']		= AviaBuilder::$path['imagesURL']."sc-slideshow-layer.png";
    				$this->config['order']		= 10;
    				$this->config['target']		= 'avia-target-insert';
    				$this->config['shortcode'] 	= 'av_layerslider';
    				$this->config['tooltip'] 	= __('Display a Layerslider Slideshow', 'avia_framework' );
    				$this->config['tinyMCE'] 	= array('disable' => "true");
    				//$this->config['drag-level'] = 1;
    			}
    			
    			function extra_assets()
    			{
    				//load css
    				wp_enqueue_style( 'avia-module-slideshow-ls' , AviaBuilder::$path['pluginUrlRoot'].'avia-shortcodes/slideshow_layerslider/slideshow_layerslider.css' , array('avia-layout'), false );
    				
    					//load js
    				wp_enqueue_script( 'avia-module-slideshow-ls' , AviaBuilder::$path['pluginUrlRoot'].'avia-shortcodes/slideshow_layerslider/slideshow_layerslider.js' , array('avia-shortcodes'), false, 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.
    			 */
    			public function editor_element($params)
    			{	
    				//fetch all registered slides and save them to the slides array
    				$slides = Avia_Config_LayerSlider()->find_layersliders( true );
    				if(empty($params['args']['id']) && is_array($slides)) $params['args']['id'] = reset($slides);				
    				if(empty($params['args']['id'])) $params['args']['id'] = "";				
    				
    				$element = array(
    					'subtype' => $slides, 
    					'type'=>'select', 
    					'std' => $params['args']['id'], 
    					'class' => 'avia-recalc-shortcode',
    					'data'	=> array('attr'=>'id')
    				);
    				
    				$inner		 = "<img src='".$this->config['icon']."' title='".$this->config['name']."' />";
    				
    				
    				if(empty($slides))
    				{
    					$inner.= "<div><a target='_blank' href='".admin_url( 'admin.php?page=layerslider' )."'>".__('No Layer Slider Found. Click here to create one','avia_framework' )."</a></div>";
    				}
    				else
    				{
    					$inner .= "<div class='avia-element-label'>".$this->config['name']."</div>";
    					$inner .= AviaHtmlHelper::render_element($element);
    					$inner .= "<a target='_blank' href='".admin_url( 'admin.php?page=layerslider' )."'>".__('Edit Layer Slider here','avia_framework' )."</a>";
    				}
    				
    				$params['class'] = "av_sidebar";
    				$params['innerHtml'] = $inner;
    				
    				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
    			 * @param array $meta
    			 * @return string $output returns the modified html string 
    			 */
    			public function shortcode_handler($atts, $content = "", $shortcodename = "", $meta = array() )
    			{
    				 $atts = shortcode_atts( array(
    												'id'	=>	0
    											), $atts, $this->config['shortcode'] );
    				
    				$output  = "";
    				
    				avia_sc_layersliderB::$slide_count++;
    				
    				$skipSecond = false;
    				$params = array();
    
    				/**
    				 * Get selected slider or last slider
    				 */
    				$slider = Avia_Config_LayerSlider()->get_default_slider( $atts['id'] );
    				
    				if( ! empty( $slider ) )
    				{		
    					$atts['id'] = $slider['id'];
    					$slides = json_decode( $slider['data'], true );	
    					$height = $slides['properties']['height'];	
    					$width  = $slides['properties']['width'];	
    					$responsive = ! empty( $slides['properties']['responsive'] ) ? $slides['properties']['responsive'] : '';
    					$responsiveunder = ! empty( $slides['properties']['responsiveunder'] ) ? $slides['properties']['responsiveunder'] : '';
    
    					$params['style'] = " style='height: ".($height+1)."px;' ";
    				}
    				else
    				{
    					/**
    					 * Force an error message in frontend for admins
    					 */
    					$atts['id'] = 0;
    				}
    				
    				
    				$params['class'] = "avia-layerslider main_color avia-shadow ".$meta['el_class'];
    				$params['open_structure'] = false;
    				
    				//we dont need a closing structure if the element is the first one or if a previous fullwidth element was displayed before
    				if(empty($meta['index'])) $params['close'] = false;
    				if(!empty($meta['siblings']['prev']['tag']) && in_array($meta['siblings']['prev']['tag'], AviaBuilder::$full_el_no_section )) $params['close'] = false;
    				
    				if(!empty($meta['index'])) $params['class'] .= " slider-not-first";
    				$params['id'] = "layer_slider_".( avia_sc_layersliderB::$slide_count );
    				
    				
    				$output .=  avia_new_section($params);
    				
    				if(class_exists('LS_Shortcode') && method_exists('LS_Shortcode', 'handleShortcode')) //fix for search results page - only works with latest LayerSlider versions
    				{
    					$output .= LS_Shortcode::handleShortcode( $atts );
    				}
    				else if(function_exists('layerslider_init')) //fix for search results page - only works with older LayerSlider versions
    				{
    					$output .= layerslider_init( $atts );
    				}
    				
    				$output .= "</div>"; //close section
    				
    				
    				//if the next tag is a section dont create a new section from this shortcode
    				if(!empty($meta['siblings']['next']['tag']) && in_array($meta['siblings']['next']['tag'], AviaBuilder::$full_el ))
    				{
    				    $skipSecond = true;
    				}
    
    				//if there is no next element dont create a new section.
    				if(empty($meta['siblings']['next']['tag']))
    				{
    				    $skipSecond = true;
    				}
    				
    				if(empty($skipSecond)) {
    				
    				$output .= avia_new_section(array('close'=>false, 'id' => "after_layer_slider_".avia_sc_layersliderB::$slide_count));
    				
    				}
    				
    				return $output = preg_replace("#</div>.*?</div>.*?</main>.*?</div>.*?</div>#","",$output);
    			}
    			
    	}
    }

    Then you will have a Modified Layerslider. You can use this code in any playcement, like 2/3 or 1/3 rows. And its working too. But this is also a very unnice solution to update it everywhere as the main slider shortcode not working anymore. Somewhere is a “if used load the js for the slider” and it doesn’t recognise the shortcode as a slider.
    I cant find that stuff yet.

    Would be awesome if Kiersi would beta test such stuff and not releasing such a big update, without any good support. Is somebody alive in this board except customer complaining?

    PS: I don’t know if it is working with all LAyout possibilities. PErhaps the avia_new_section function dioes the closing of all section which needts to be removed, instead of my replace… But your feedback will show me if its working everywhere or not.

    • This reply was modified 6 years, 7 months ago by BlutVampir.
    in reply to: Layerslider not showing after update to [4.3.1] #950922

    It can be solved that way on most of the sites, but others not. I do have at least 3 pages where its not working when I add it via the builder.

    in reply to: Layerslider not showing after update to [4.3.1] #950358

    Same issue here.

    On some pages not even the normal “advanced Layerslider” from Visual Element is working.
    Shortcode is not working at all since last 2 updates. Very frustrating. a lot of people complaining.

    When can we hope on a fix?

    in reply to: Text Block empty instead filled with content in backend #834278

    Sorry, is disabled.

    in reply to: Mansonry not showing up?!? #769100

    also 4.0.4 update didnt fix the issu. Can you please have a look on the page what is wrong otherwise I need to edit all pages.

    in reply to: Mansonry not showing up?!? #769094

    Neither will solve the issue. if lightbox is enabled or disabled. Mansory is not showing up…

    in reply to: Mansonry not showing up?!? #766991

    restriction removed.

    in reply to: Hook for Form "To Adress" #746318

    at the end, I used a little diffrent hook:

    add_filter('avf_form_sendto','avia_change_mail_subject');
    function avia_change_mail_subject($to){
    	$toid = intval($_GET['fid']);
    	if ($toid != '0') { $to = array(get_post_meta($toid, 'email', true)); }
    	return $to;
    }

    So I change based on a int variable the to adress. Topic can be closed.

    in reply to: Hook for Form "To Adress" #744829

    or use the filters ‘avf_form_send’ for others that search for the hook.
    easy archivable.

    in reply to: Enfold Slideshow Sizes #739283

    Could you not add a fitler there too?

    Code today:

    $avia_config['imgSize']['widget'] 			 	= array('width'=>36,  'height'=>36);						// small preview pics eg sidebar news
    $avia_config['imgSize']['square'] 		 	    = array('width'=>180, 'height'=>180);		                 // small image for blogs
    $avia_config['imgSize']['featured'] 		 	= array('width'=>1500, 'height'=>430 );						// images for fullsize pages and fullsize slider
    $avia_config['imgSize']['featured_large'] 		= array('width'=>1500, 'height'=>630 );						// images for fullsize pages and fullsize slider
    $avia_config['imgSize']['extra_large'] 		 	= array('width'=>1500, 'height'=>1500 , 'crop' => false);	// images for fullscrren slider
    $avia_config['imgSize']['portfolio'] 		 	= array('width'=>495, 'height'=>400 );						// images for portfolio entries (2,3 column)
    $avia_config['imgSize']['portfolio_small'] 		= array('width'=>260, 'height'=>185 );						// images for portfolio 4 columns
    $avia_config['imgSize']['gallery'] 		 		= array('width'=>845, 'height'=>684 );						// images for portfolio entries (2,3 column)
    $avia_config['imgSize']['magazine'] 		 	= array('width'=>710, 'height'=>375 );						// images for magazines
    $avia_config['imgSize']['masonry'] 		 		= array('width'=>705, 'height'=>705 , 'crop' => false);		// images for fullscreen masonry
    $avia_config['imgSize']['entry_with_sidebar'] 	= array('width'=>845, 'height'=>321);		            	// big images for blog and page entries
    $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423 );						// images for fullsize pages and fullsize slider
    $avia_config['imgSize'] = apply_filters('avf_modify_thumb_size', $avia_config['imgSize']);
    
    $avia_config['selectableImgSize'] = array(
    	'square' 				=> __('Square','avia_framework'),
    	'featured'  			=> __('Featured Thin','avia_framework'),
    	'featured_large'  		=> __('Featured Large','avia_framework'),
    	'portfolio' 			=> __('Portfolio','avia_framework'),
    	'gallery' 				=> __('Gallery','avia_framework'),
    	'entry_with_sidebar' 	=> __('Entry with Sidebar','avia_framework'),
    	'entry_without_sidebar'	=> __('Entry without Sidebar','avia_framework'),
    	'extra_large' 			=> __('Fullscreen Sections/Sliders','avia_framework'),
    	
    );

    code new:

    $avia_config['imgSize']['widget'] 			 	= array('width'=>36,  'height'=>36);						// small preview pics eg sidebar news
    $avia_config['imgSize']['square'] 		 	    = array('width'=>180, 'height'=>180);		                 // small image for blogs
    $avia_config['imgSize']['featured'] 		 	= array('width'=>1500, 'height'=>430 );						// images for fullsize pages and fullsize slider
    $avia_config['imgSize']['featured_large'] 		= array('width'=>1500, 'height'=>630 );						// images for fullsize pages and fullsize slider
    $avia_config['imgSize']['extra_large'] 		 	= array('width'=>1500, 'height'=>1500 , 'crop' => false);	// images for fullscrren slider
    $avia_config['imgSize']['portfolio'] 		 	= array('width'=>495, 'height'=>400 );						// images for portfolio entries (2,3 column)
    $avia_config['imgSize']['portfolio_small'] 		= array('width'=>260, 'height'=>185 );						// images for portfolio 4 columns
    $avia_config['imgSize']['gallery'] 		 		= array('width'=>845, 'height'=>684 );						// images for portfolio entries (2,3 column)
    $avia_config['imgSize']['magazine'] 		 	= array('width'=>710, 'height'=>375 );						// images for magazines
    $avia_config['imgSize']['masonry'] 		 		= array('width'=>705, 'height'=>705 , 'crop' => false);		// images for fullscreen masonry
    $avia_config['imgSize']['entry_with_sidebar'] 	= array('width'=>845, 'height'=>321);		            	// big images for blog and page entries
    $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423 );						// images for fullsize pages and fullsize slider
    $avia_config['imgSize'] = apply_filters('avf_modify_thumb_size', $avia_config['imgSize']);
    
    $avia_config['selectableImgSize'] = array(
    	'square' 				=> __('Square','avia_framework'),
    	'featured'  			=> __('Featured Thin','avia_framework'),
    	'featured_large'  		=> __('Featured Large','avia_framework'),
    	'portfolio' 			=> __('Portfolio','avia_framework'),
    	'gallery' 				=> __('Gallery','avia_framework'),
    	'entry_with_sidebar' 	=> __('Entry with Sidebar','avia_framework'),
    	'entry_without_sidebar'	=> __('Entry without Sidebar','avia_framework'),
    	'extra_large' 			=> __('Fullscreen Sections/Sliders','avia_framework'),
    	
    );
    
    $avia_config = apply_filters('avf_modify_config', $avia_config);
    
    avia_backend_add_thumbnail_size($avia_config);

    then it would be possible to add everything.

    in reply to: Enfold Slideshow Sizes #730388

    I could change that code, easly within the child theme. As you check if the class is existing, I define it before your parent theme is loaded and it works.

    thx for help.

    in reply to: Visual Module "Entries Slider" for Portfolio Items? #723231

    short additional question, is it possible to have the Order of the portfolios random that they change each page reload?

    in reply to: Page shows a lot of errors since last update #707058

    It is working again. dont know why….

    in reply to: Page shows a lot of errors since last update #707056

    should work now.

    in reply to: Page shows a lot of errors since last update #706679

    should work now, sorry, was thinking I disabled it ;)

    in reply to: Vowel issues ion forms #691370

    with cf7 it works yes, but I would like to use the build in feature, otherwise I will need to replace forms on mutliple sites.

    in reply to: Vowel issues ion forms #691025

    testuser instead of testadmin… sorry

    in reply to: Vowel issues ion forms #690846

    You can change the to adress to whatever you want:
    http://test.wuk.ch/kontakt/

    Is a testside, nothing is used or real there!

    in reply to: custom font slabo 27px #688587
Viewing 30 posts - 31 through 60 (of 70 total)