Forum Replies Created
-
AuthorPosts
-
got it working thanks
thanks I found the mistake. It’s all good now.
If I dont’ have access to the server?
June 29, 2017 at 3:04 pm in reply to: hide sidebar on mobile for certain pages, portfolio grid sorting wrong #814509nevermind I got it working.
thanks –- This reply was modified 7 years, 5 months ago by Munford.
thanks I could try that
Hi Yigit
Did that but am still seeing flickering of the slideshows, menu…
More urgently, I just saw that my other menus – that I use in my footer and in the sidebar of the about page – are defaulting to the main menu. I have checked all the widgets and they have the correct menus selected. Can you take a look at that?
thanksNancy
- This reply was modified 7 years, 6 months ago by Munford.
great that worked! I am still seeing a bad flickering on my landing page where the mega menu is on top of the slideshow. Any way to fix that? It’s very annoying, and I can’t tell whether it’s an issue only with my chrome, or if it’s widespread. Happened after the last update I think
great that worked! I am still seeing a bad flickering on my landing page where the mega menu is on top of the slideshow. Any way to fix that? It’s very annoying, and I can’t tell whether it’s an issue only with my chrome, or if it’s widespread. Happened after the last update I think
- This reply was modified 7 years, 6 months ago by Munford.
Below is my child theme function.php code as it is now – should I just replace the middle text I have in bold – starting with: avia_nav_menus(); and ending with: ‘wp_change_aviajs’, 100 ); – with the code you linked to above? The avia.js file has been overwritten – or should have been, right? Do I need to do anything with that?
thanks
Nancy<?php
/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*//*===ADD custom css class element to all pages===*/
add_theme_support(‘avia_template_builder_custom_css’);/*==========MAG ELEMENT add excerpt under title all===========*/
add_filter(‘avf_portfolio_cpt_args’, ‘avf_portfolio_add_custom_fields’, 1);
function avf_portfolio_add_custom_fields($args) {
$args[‘supports’] = array(‘title’,’thumbnail’,’excerpt’,’editor’,’comments’, ‘custom-fields’, ‘page-attributes’);
return $args;
}$default_sidebar = false;
$parent = get_the_title($post->post_parent);
$parentlink = get_the_permalink($post->post_parent);
$sidebar_menu .= “<nav class=’widget widget_nav_menu $display_child_pages’><ul class=’nested_nav’>”;
$sidebar_menu .= “<h3 class=’widgettitle’>$parent</h3>”;
$sidebar_menu .= $children;
$sidebar_menu .= “</nav>”;avia_nav_menus(); function avia_nav_menus() { global $avia_config, $wp_customize; $avia_config[‘nav_menus’] = array( ‘avia’ => array(‘html’ => __(‘Main Menu’, ‘avia_framework’)), ‘avia2’ => array( ‘html’ => __(‘Secondary Menu <br/><small>(Will be displayed if you selected a header layout that supports a submenu here)</small>’, ‘avia_framework’), ‘plain’=> __(‘Secondary Menu – will be displayed if you selected a header layout that supports a submenu’, ‘avia_framework’)), ‘avia3’ => array( ‘html’ => __(‘Footer Menu <br/><small>(no dropdowns)</small>’, ‘avia_framework’), ‘plain’=> __(‘Footer Menu (no dropdowns)’, ‘avia_framework’)), ‘avia_responsive’ => array( ‘html’ => __(‘Responsive Menu <br /><small>(If set will replace your main menu on mobiles)</small>’)) ); add_theme_support(‘nav_menus’); foreach($avia_config[‘nav_menus’] as $key => $value) { $name = (!empty($value[‘plain’]) && !empty($wp_customize)) ? $value[‘plain’] : $value[‘html’]; register_nav_menu($key, THEMENAME.’ ‘.$name); } } add_action( ‘ava_after_main_menu’, ‘enfold_customization_add_responsive_menu’ ); function enfold_customization_add_responsive_menu() { echo “<nav style = ‘display:none;’ class=’main_menu_responsive’ data-selectname='”.__(‘Select a page’,’avia_framework’).”‘ “.avia_markup_helper(array(‘context’ => ‘nav’, ‘echo’ => false)).”>”; $avia_theme_location = ‘avia_responsive’; $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’ => false, ‘walker’ => new avia_responsive_mega_menu() ); wp_nav_menu($args); echo ‘</nav>’; }
/*make sure MEGA MENU mobile functions after avia js file changes*/
function wp_change_aviajs() {
wp_dequeue_script( ‘avia-default’ );
wp_enqueue_script( ‘avia-default-child’, get_stylesheet_directory_uri().’/js/avia.js’, array(‘jquery’), 2, true );
}
add_action( ‘wp_print_scripts’, ‘wp_change_aviajs’, 100 );add_filter(‘widget_text’, ‘do_shortcode’);
/*==============GOOGLE FONTS ADD=================*/
function add_oswald_script(){
?>
<link href=’http://fonts.googleapis.com/css?family=Oswald:400,700,300′ rel=’stylesheet’ type=’text/css’>
<?php
}
add_action(‘wp_head’, ‘add_oswald_script’);/*FIX MEGA MENU not closing on ipad issue https://kriesi.at/support/topic/closing-mega-menu-on-ipad/*/
function add_custom_megamenu(){
?>
<script>
jQuery(window).load(function(){
if (jQuery(window).width() <= 1024){
jQuery(“#header”).click(function(){
jQuery(“.avia_mega_div”).toggle();
});
}
});
</script>
<?php
}
add_action(‘wp_footer’, ‘add_custom_megamenu’);//set builder mode to debug
add_action(‘avia_builder_mode’, “builder_set_debug”);
function builder_set_debug()
{
return “debug”;
}/*edit Advanced Layout Builder elements*/
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;
}/*FIX MISSING REVISIONS*/
add_filter(‘avf_portfolio_cpt_args’,’avia_add_portfolio_revision’, 10, 1);
function avia_add_portfolio_revision($args)
{
$args[‘supports’] = array(‘title’,’thumbnail’,’excerpt’,’editor’,’comments’,’revisions’);
return $args;
}- This reply was modified 7 years, 6 months ago by Munford.
Hi Yigit
thanks – that looks better, though in chrome I see a bit of animation ( size change on load), and flickering – but this is a problem I have been having with chrome for some days. Looks best in Firefox, ok in Safari. I can live with it.also: see below
thanks
Nancythanks. It would be strange if it could not be disabled.
Hi
Thanks for taking a look. Login belowHi Isamel
I don’t remember how I did that – but see this thread: https://kriesi.at/support/topic/mobile-menu-33/#post-440877. Appears code was added to get extra mobile menu options, but there was a problem…
I remember that the THEMENAME was a glitch that could not be worked out here.
can we fix this? The menu on the mobile is very messed up now, but had worked until the recent update- This reply was modified 7 years, 7 months ago by Munford.
Hi John
Tried your code but it did not work.
other suggestions?
thanks for taking a look
Nancyno, the animation as they load
HI Yigit,
the flickering wasa chrome issue, I think, although my client was also having trouble updating maps due to flickering images.But the mobile menu is not showing the correct menu – the image you posted is the wrong menu. It should be the one I have in the private content called “mobile”. It is defaulting to the main menu, which is also showing submenu items that are not supposed to be on the mobile menu.
can you check this please?
Thanks
Nancy- This reply was modified 7 years, 7 months ago by Munford.
The cache is cleared, hard R refresh, cleared cache in chrome settings.
- This reply was modified 7 years, 7 months ago by Munford.
Hi Victoria
Thanks for the quick response. Do I need that avia.js in the child theme? I updated it and now the galleries work fine, but I wonder if there were ealier edits to that file (which is why it was in the child theme?) Seems to work OK though. Thanks! If that is updated in the next enfold version, should I remove the avia.js from the child theme?
thanks
Nancy- This reply was modified 7 years, 7 months ago by Munford.
I have the same problem and the shortcode.js fix did not work for me. Any other solutions? I have a thread about it at: #792977.
Lots of people jumping on this thread. I see in the comments you advise to update to php7 and then say you don’t have to. Is the PHP updated by the hosting service? The error doesn’t seem to be affecting my site, so I just commented out the debug.
thanks
Nancyyes, I have contacted them as well. Is there another way of doing a pop-up –
there is not one built in to enfold, right?/Hi Mike
It seems to be something that is affecting all the popups, so maybe it is theme related?sorry but how do I update my php? never have run into this issue before.
Nancyhttp://imgur.com/a/fvggT in chrome. Nothing under “subscribe to my newsletter”
also pop-up stopped working.thanks for taking a look
NancyThanks
I updated and no change. I deactivated my plugins, no change. That page was fine before I did some updating a few days ago.
Any ideas? It’s the landing page of my site :(
Nancy- This reply was modified 7 years, 8 months ago by Munford.
Yes you can test it.
thanks
NancyHi RIkard,
I see it on Chrome, Firefox.
Here is an image: http://imgur.com/a/vw2EF
It’s only on the danish page.
thanks
Nancygreat, that helped.
Now I have a problem with the footer just on the page below.
Can you take a quick look? I am getting a frame around it. Have not changed any css for the footer as far as I know.
The english page is fine. Same css.
??
Thanks
Nancyyes I am doing that but it’s not taking my code…
trying to align the arrows (or get rid of them) and would like it center aligned with less padding.
could you take another look? right now it looks like this: http://imgur.com/a/umPOn
thanks
Nancyresolved thanks
-
AuthorPosts