Forum Replies Created
-
AuthorPosts
-
November 18, 2017 at 3:40 pm in reply to: Burger menu do not work when items have submenu children pages #878579
No I am sorry, but it did not resolve the problem. I already tried it and indeed it made it worse: actually the link appeared as http://www.domain.com/page#top
Since I gave you the access to the web site could you please give a look directly?
Thank you very much
Hi Victoria, sorry I was not very clear in my previous message. What I need is to have the standard text menu on top for the whole web site, except for the home page, where I wish to display only the burger menu.
I imagine that I could use your code above and hide the standard menu. Is that right?
I could therefore hide each single
- class=menu-ietm-xxxx, and keep visible only the class=av-burger-menu, however it’s a mess as everytime I add a new menu voice I should change my css. Is there a simplest way to do it?
Thanks very much
- This reply was modified 7 years, 1 month ago by elenapoliti.
August 29, 2017 at 7:53 pm in reply to: Masonry grid with portrait / landscape tags issue with multilingual #845436Great! Now it works! Thank you very much: always a great job!
August 24, 2017 at 8:22 am in reply to: Masonry grid with portrait / landscape tags issue with multilingual #843369Hi Basilis, unfortunately your solution doesn’t change the situation, Actually I see that the masonry thumbnail has the following code on the link
<a id="av-masonry-1-item-1970" class="av-masonry-entry isotope-item post-1970 post type-post status-publish format-standard has-post-thumbnail hentry category-marble tag-landscape-en tag-portait-en all_sort marble_sort av-masonry-item-with-image av-grid-img av-masonry-item-loaded" href="http://www.alessandrapoliti.com/en/rinoceronte/" data-av-masonry-item="1970" title="Rinoceronte" itemscope="itemscope" itemtype="https://schema.org/CreativeWork" style="position: absolute; left: 49.7601%; top: 0px;">
The problem is that it gets the class “tag-landscape-en” and “tag-portait-en” while the masonry appearence works with classes such as “tag-landscape” and “tag-portrait”
Elena
August 21, 2017 at 10:07 am in reply to: Masonry grid with portrait / landscape tags issue with multilingual #841927Thanks very much here below the account
Thanks for the suggestions. Actually it was the WPM Woocommerce Multilingual that did not work properly. I actually disabled it and activated again and it worked!
Your support is always great!
Hi first of all excuse me: there has been a problem in creating a new user. In the private section I give the new account details.
Secondly, coming to your question, yes the variations do have their attributes. Actually the web site with the products were published last year and until last week did work perfectly. I could see the variation nicely until I updated my enfold version.
That’s why it would be worthy for you to log in and see what’s happened. I add also the ftp protocol in case you need
Thank you
Hi have you had the chance of giving a look to the problem stated above? I have no idea of what happened, but I am in the need of checking some variations and there is no way to see them. Thanks
Sorry for the inconvenience. I solved the problem by creating a new template (totally equal to the first one) ans creating a new page… Stll don’t know what it happened, but now it works
Here how the two screenshot appear:
mamp local
https://www.dropbox.com/s/kw2j5rhj9v9dw8b/maps-1.jpg?dl=0webserver
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.phpFile 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
April 13, 2017 at 7:52 am in reply to: After upgrading to Woccommerce 3.0 product images have been messed up #777092I put it in functions.php in my child theme
April 12, 2017 at 12:00 pm in reply to: After upgrading to Woccommerce 3.0 product images have been messed up #776595Ok I did not realized that a new version of Enfold was available. Now even the gallery works
Just a question: in another website I had to modify some avia snippets concernign products. Plus I made some custom coding for managing discount coupons and custom checkout fields. Will be this coding affected by the WC upgrade?
Thanks
April 12, 2017 at 11:27 am in reply to: After upgrading to Woccommerce 3.0 product images have been messed up #776578Hi, I have just read your post https://kriesi.at/support/topic/woocommerce-3-0-03-0-1-and-the-images-issue/
It solved the problem with blurry images, but did not solve the problem with the thumbnail galleries
April 4, 2017 at 9:30 am in reply to: Lightobx disappeared on woocommerce single page product #771593Hi Ismael, sorry for the late reply but I had another work to finish! Thanks very much for your answer. It worked perfectly. It is true that sometimes using shortcodes in functions may create problems.
You are always a great team.
March 27, 2017 at 3:52 pm in reply to: Lightobx disappeared on woocommerce single page product #767512Just found what is causing the problem. In my functions.php I added a code which enables a full size submenu in each single product page.
//adds a submenu on top the single product page add_action( 'woocommerce_before_main_content', 'wc_submenu'); function wc_submenu () { if(is_product()) { echo do_shortcode ("[av_hr class='invisible' height='50' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='30px' custom_margin_bottom='30px' icon_select='yes' custom_icon_color='' icon='ue808' font='entypo-fontello' custom_class='']"); echo do_shortcode ("[av_submenu which_menu='' menu='41' position='center' color='main_color' mobile='disabled' custom_class=''][/av_submenu]"); echo do_shortcode ("[av_hr class='invisible' height='50' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='30px' custom_margin_bottom='30px' icon_select='yes' custom_icon_color='' icon='ue808' font='entypo-fontello' custom_class='']"); } }
Do you have any suggestion to keep it without interfering with the woocommerce lightbox? Thanks a lot
March 27, 2017 at 2:47 pm in reply to: Lightobx disappeared on woocommerce single page product #767453I already deactivated the plugins. Non of them was the problem. I saw that the prblem disappeared when I switched back to the default version of Enfold. So I guess the main problem lays in my functions.php saved in the child theme. Just added back the file animate.css, which however was not causing the problem. It adjust the image in the screen but it worked for an element that however is no more in use.
March 27, 2017 at 2:30 pm in reply to: Lightobx disappeared on woocommerce single page product #767439I just did it on my local copy of the site, but the problem remains. Could you by the way check my functions.php file? I don’t know if there are some codes that may prevent the prettyPhoto (actually I suppose not, but I wonder if it is the case). I gave already the account details
March 27, 2017 at 2:13 pm in reply to: Lightobx disappeared on woocommerce single page product #767430Hi Jhon have you some other suggestions on what can I do with my problem?
Thanks!March 24, 2017 at 9:55 am in reply to: Problems in uploading avia templates from Ipad IOS 10.2.1 #766007Unfortunately not, as the client is living very far way from me. I’ll tell her to check with some other device.
March 24, 2017 at 9:54 am in reply to: Lightobx disappeared on woocommerce single page product #766006Thanks, I tried but it didn’t work. I still have the same problem. Any other possibility? Did I mess up with some function on my child theme functions.php? I checked it and I don’t see any particular issue that may cause that problem but surely it must be somewhere as going back to the default Enfold theme the lightbox works again.
March 23, 2017 at 9:54 am in reply to: Problems in uploading avia templates from Ipad IOS 10.2.1 #765274I saved a post model created with the Advanced Layout Builder. Actually the client should use this model to post new articles. However she says she cannot select the model, since the button doesn’t work on iPad. I have no idea, since I tried on two devices (iPad and iPhone) and everything worked perfectly.
Have you ever faced any issue of this kind?
Best regards
ElenaMarch 16, 2017 at 10:07 am in reply to: WPML stopped wroking properly: not saving and mess up with pages #761800I found where was te problem: the server settings were preventing any update saving. It has been solved. Sorry for any incovenience
You offer always great support!March 16, 2017 at 9:55 am in reply to: WPML stopped wroking properly: not saving and mess up with pages #761796Hi Jordan no errors, but I realized that in the meanwhile when I open now pages and posts the avia advanced layout builder doesn’t load too. I can see the elements in the avia debug windows as shortcodes, but the graphic elements do not appear (spinning icon only). From the list of pages, I can see a spinning icon not running instead of the update icon for languages in those pages that I tried to update the language.
I am in contact with WPML too. I tried with another theme but the problem remains. However it is strange, as it happened suddenly. Myself and the client were easily translating everything, and after few weeks we didn’t do anything on the website this problem occurred.
March 15, 2017 at 6:16 pm in reply to: WPML stopped wroking properly: not saving and mess up with pages #761545Yes I did it but nothing. The problem occurred first when the client was trying to update some products translation via Woocommerce Multilingual section. When I tested it it came out that also page translation was having some problems
March 2, 2017 at 11:18 am in reply to: Enfold update 3.8.5 gives problem with handling custom avia shortcodes #754275Yes Nikko, I did already add teh code you mention to my functions.php file. However I have the suspect that an issue exist with the local copy I am working with and not with the Enfold update. I will try today to update Enfold on the online version of the website and see what happens. In case I have the same issue I’ll contact you again and give an access to the website.
thanksFebruary 9, 2017 at 8:12 pm in reply to: Sidebar doen't display on single product page Enfold #745031Hi Ygit, I still had the same problem on my website. I bypssed it by creating a full-size custom menu on top the main content of the single product page: I added to my function.php
However it would be nice to understand why the left sidebar stays below the main product image and nto beside the main content!
February 9, 2017 at 7:58 pm in reply to: Loading a template with Avia lyaout Builder gives me a Error fetching content #745011Wooow I got it! I missed the last update advise! Now I got it.
Thanks very much
February 9, 2017 at 7:09 pm in reply to: Loading a template with Avia lyaout Builder gives me a Error fetching content #744978Hi Rikard have you got the chance to check my problem? Thank you!
February 9, 2017 at 9:49 am in reply to: Loading a template with Avia lyaout Builder gives me a Error fetching content #744699Ooops something got wrong Here the new credentials
- class=menu-ietm-xxxx, and keep visible only the class=av-burger-menu, however it’s a mess as everytime I add a new menu voice I should change my css. Is there a simplest way to do it?
-
AuthorPosts