Forum Replies Created
-
AuthorPosts
-
February 28, 2019 at 8:50 am in reply to: Google Search Console: Either "offers", "review", or "aggregateRating" should b #1072545
I do get the same issue when using Enfold and WooCommerce.
Adittional
,”description”:”<\/div>\n<\/div>\n<\/div>\n<p><!– closeIs 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, 8 months ago by BlutVampir.
February 27, 2019 at 9:53 am in reply to: Event Date in Post Slider sometimes displaying and sometimes not #1072225Did work, thanks
December 17, 2018 at 3:41 pm in reply to: Event Date in Post Slider sometimes displaying and sometimes not #1046338When I copy the file:
/themes/enfold/config-templatebuilder/avia-shortcodes/postslider/postslider.phpto here:
/themes/enfold-child/config-templatebuilder/avia-shortcodes/postslider/postslider.phpand 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?
December 7, 2018 at 5:38 pm in reply to: Event Date in Post Slider sometimes displaying and sometimes not #1042131Enfold 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…
This reply has been marked as private.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 ;)
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 ;) )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, 3 months ago by BlutVampir.
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.
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 :(Is there a demo where I can see that in Action?
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, 6 months ago by BlutVampir.
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.
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?
August 4, 2017 at 11:02 am in reply to: Text Block empty instead filled with content in backend #834278Sorry, is disabled.
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.
Neither will solve the issue. if lightbox is enabled or disabled. Mansory is not showing up…
restriction removed.
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.
or use the filters ‘avf_form_send’ for others that search for the hook.
easy archivable.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.
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.
December 12, 2016 at 4:59 pm in reply to: Visual Module "Entries Slider" for Portfolio Items? #723231short additional question, is it possible to have the Order of the portfolios random that they change each page reload?
It is working again. dont know why….
should work now.
should work now, sorry, was thinking I disabled it ;)
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.
testuser instead of testadmin… sorry
You can change the to adress to whatever you want:
http://test.wuk.ch/kontakt/Is a testside, nothing is used or real there!
Calibri is available and working:
https://fonts.googleapis.com/css?family=Calibri:400,700,400italic,700italic -
AuthorPosts