Forum Replies Created

Viewing 30 posts - 1 through 30 (of 30 total)
  • Author
    Posts
  • 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 2 weeks, 3 days 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
    in reply to: custom font slabo 27px #688549

    Really?

    Are the fonts working? Only one…

    Please find code:

    <!-- google webfont font replacement -->
    <link rel='stylesheet' id='avia-google-webfont' href='//fonts.googleapis.com/css?family=Slabo+27px:300%7CCalibri' type='text/css' media='all'/> 
    		<script type="text/javascript">

    Open URL in browser:
    http://fonts.googleapis.com/css?family=Slabo+27px:300%7CCalibri

    Returned is only one font:

    /* latin */
    @font-face {
      font-family: 'Calibri';
      font-style: normal;
      font-weight: 400;
      src: local('Calibri'), url(https://fonts.gstatic.com/l/font?kit=YH3ek_qpdaY7ILI-bfzlYQ&skey=a1029226f80653a8&v=v8) format('woff2');
      unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
    }

    not both. new issue.. no solution

    in reply to: custom font slabo 27px #688538

    enfold-child/functions.php was writeable…
    enfold/functions.php not..

    Now both folders and all files are.

    in reply to: custom font slabo 27px #688518

    now it is from web.

    in reply to: custom font slabo 27px #688511

    I did quick install enfold on test domain: same issue.

    child theme. the code can be found in the functions.php of the child theme.

    in reply to: custom font slabo 27px #688494

    Please read carefully the posts…
    As said, it WORKS if I add only 1 font. Equalless if its “Slabo 27px:300” or “Slabo 27px”.

    As soon as I add a secound font:

    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts) {
    	$fonts['Slabo 27px'] = 'Slabo 27px:300';
    	$fonts['Calibri'] = 'Calibri';
    	return $fonts;
    } 

    It dowsn’t work anymore. Issue is, within the sourcecode, following line can be found then:
    <link rel='stylesheet' id='avia-google-webfont' href='//fonts.googleapis.com/css?family=Calibri%7CSlabo+27px' type='text/css' media='all'/>
    The issue is the following code: %7C as it should be a | char. Google is delivering back a 404 page instead of the CSS code for multiple fonts.
    I did disable all Plugins, same issue…

    in reply to: custom font slabo 27px #686257

    I did found more bugs…

    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    	$fonts['Slabo 27px'] = 'Slabo 27px';
    	$fonts['Calibri'] = 'Calibri';
    	return $fonts;
    } 

    When adding 2 fonts, the issue is that enfold try to load them via such an URL
    http://fonts.googleapis.com/css?family=Calibri%7CSlabo+27px

    should be:
    http://fonts.googleapis.com/css?family=Calibri|Slabo+27px
    something distrory the special char (on a new installed wp)

    This leads to an error instead of the css files.
    That need to be fixed!

    • This reply was modified 1 year, 8 months ago by  BlutVampir.
    in reply to: custom font slabo 27px #686253

    ok, it seams the font is correctly loaded. But equalless when I select it in the backend of Enfold Theme Options to use that font, it is never shown.
    I did select Slabo 27px by “Heading Font” and “Defines the Font for your body text”

    I need to manually add a CSS code that it works:

    body {
        font-family: 'Slabo 27px';
    }

    What doing Im wrong?

    in reply to: Issue with loop on #683617

    and the page with the issue is the MANSORY element of enfold. 1:1 unchanged out of the demo.

    in reply to: Issue with loop on #683615

    Thats the case but not the problem.

    Also the ones which showing the dates are made with visual builder.

    Issue is:
    3 posts on the 24.8. => only the last is showing date.
    2 posts on 25.8. => only the last is showing the date

    When I open a post which downt show the date, I change NOTHING, except the “published date” on a separate day and save, it works and shows the date.
    Customer can only publish 1 post / day to see date and comment links or live with the error?

    in reply to: Issue with loop on #683227

    please find the credentials.

Viewing 30 posts - 1 through 30 (of 30 total)