Forum Replies Created
-
AuthorPosts
-
Hi Ismael,
Thank you so much for the response! This put the text below the image before clicking it. See top image link below. I’m trying to get it so after the image is clicked, the lightbox will have a caption. See second image. Red circle should display text.
May 13, 2020 at 6:36 pm in reply to: Bug: Setting page header to transparent & using page as footer = Extra space #1212689Any confirmation of this bug and that this is something that can be resolved in a future release?
Any ideas on this?
April 9, 2020 at 9:28 pm in reply to: Contact form – "Redirect user to another page" based on form content #1202497You’re very consistent with your helpfulness! Thank you so much Victoria.
What function controls the redirect? What file can we find this in?
September 19, 2019 at 2:11 pm in reply to: Header Shopping Cart Icon disable dropdown menu on hover #1139925Thank you for those functions. I don’t want you guys to feel the need to keep re-coding the same answer and it not be the solution. Does anyone know what is populating the html code:
‘<div class=”widget_shopping_cart_content”></div>’;
Inside of the function avia_woocommerce_cart_dropdown? I won’t need any code solutions if you can just point me in the direction of that. I’ll take care of the rest.
September 17, 2019 at 7:39 pm in reply to: Header Shopping Cart Icon disable dropdown menu on hover #1139227Hi Imael,
It’s great to see you in the thread! Any issue I search, always has you resolving it very expertly.
Please excuse my lack of clarification in this thread, I assumed I just wasn’t looking through the code properly. It was my expectation that removing something like a dropdown trigger would be simple. To avoid access code, I prefer not to use display:none.
I greatly appreciate you providing this code. Regretfully, it has no effect on the site. I’ve tried it myself originally, also using ‘init’.
If we did get it to work, I feel avia_woocommerce_cart_dropdown wouldn’t be the correct function to disable since I want the number of items in the cart to remain.
I’ve continued looking but still have not had any luck – a lot of content is added inside:
<div class=”widget_shopping_cart_content”></div>
The function posted by Victoria is only the root of what we’re looking for. I checked the JS files and found nothing. What is filling <div class=”widget_shopping_cart_content”></div> with content? With this information, I can resolve the issue.
September 13, 2019 at 7:07 pm in reply to: Header Shopping Cart Icon disable dropdown menu on hover #1138142I had found the function you posted, editing it will not fully solve my problem.
This line drops the menu down but removing it also removes the numbers of items in the cart display:
'<div class="widget_shopping_cart_content"></div>';
What function is actually triggering the drop down? The one posted only creates the HTML structure for it.
September 12, 2019 at 7:38 pm in reply to: Invalid form for reCAPTCHA sent. Form could not be submitted. Please reload page #1137642I’m on 4.6.2, I flushed cloudflare, my cache plugin, enfolds and my browser cache. The problem remains. Looking at the notes for 4.6.2, nothing seems to acknowledge a fix. Am I missing something?
September 11, 2019 at 6:48 pm in reply to: Header Shopping Cart Icon disable dropdown menu on hover #1137179There’s a link…
Add that item to your cart
On the top right is a shopping cart icon that will have the number 1 next to it.
hover over it…
You’ll see a drop down showing the item in your cart…I do not want that drop down to appear and I do not want a css hack. Currently running the latest version of enfold.
The above guide is how to do it on the WordPress default theme… This should paint vivid picture for you. I’m looking for the exact same solution on enfold.
I can’t paint a more vivid picture of how the enfold shopping cart system works or what I’m after. Please ask another agent for help if you’re confused.
Thank you for your time!
September 10, 2019 at 7:06 pm in reply to: Invalid form for reCAPTCHA sent. Form could not be submitted. Please reload page #1136712To resolve this issue, every single user on the internet needs to clear their cache and cookies? Am I reading this right?
September 10, 2019 at 7:04 pm in reply to: Header Shopping Cart Icon disable dropdown menu on hover #1136709This image is what the cart item looks like when you don’t mouse over it
This is also what it should look like when it’s mouses over. No drop down…
August 3, 2019 at 6:59 pm in reply to: Add version number to compressed, single javascript file #1124403That isn’t the compressed version…
The compressed is set as:
<script type=’text/javascript’ src=’https://XXX.com/wp-content/uploads/dynamic_avia/avia-footer-scripts-07fd57ab03bf38a9b54da2f6bc28a571.js’></script>I need it to be
<script type=’text/javascript’ src=’https://XXX.com/wp-content/uploads/dynamic_avia/avia-footer-scripts-07fd57ab03bf38a9b54da2f6bc28a571.js?ver=XXXX’></script>
How do I do this?
December 11, 2018 at 4:18 am in reply to: Google search results showing with page numbers at the end – How to remove? #1043536The only plugin relating to links is yoast seo
December 5, 2018 at 7:51 pm in reply to: Google search results showing with page numbers at the end – How to remove? #1041356See private answer below
Solved. Here is the solution for those needing it.
Enfold specifically targets the ‘avia’ menu and only adds the search icon and burger menu to it. In this first step we’re going to do three things.
1. Create our custom menus and have them appear in the admin panel
2. Remove the default search icon that only targets avia and add one that targets our menus also
2. Remove the default burger icon that only targets avia and add one that targets our menus alsoCreate a file called function-gc.php and add the following code:
// Adds new custom menus inside admin area add_action( 'after_setup_theme', 'register_gc_menus' ); function register_gc_menus() { register_nav_menus( array( 'newmenu1' => 'New Menu 1' )); //name of your first menu register_nav_menus( array( 'newmenu2' => 'New Menu 2' )); //name of your second menu register_nav_menus( array( 'newmenu3' => 'New Menu 3' )); //name of your third menu; feel free to add as many of these as you'd like } /* AJAX SEARCH */ //first append search item to main menu remove_filter( 'wp_nav_menu_items', 'avia_append_search_nav', 9997, 2 ); remove_filter( 'avf_fallback_menu_items', 'avia_append_search_nav', 9997, 2 ); add_filter( 'wp_nav_menu_items', 'gc_append_search_nav', 9997, 2 ); add_filter( 'avf_fallback_menu_items', 'gc_append_search_nav', 9997, 2 ); function gc_append_search_nav ( $items, $args ) { if(avia_get_option('header_searchicon','header_searchicon') != "header_searchicon") return $items; if(avia_get_option('header_position', 'header_top') != "header_top") return $items; //edit the line below with your information (newmenu1, newmenu2, etc) if ((is_object($args) && in_array($args->theme_location, array('avia','newmenu1','newmenu2','newmenu3'))) || (is_string($args) && $args = "fallback_menu")) { global $avia_config; ob_start(); get_search_form(); $form = htmlspecialchars(ob_get_clean()) ; $items .= '<li id="menu-item-search" class="noMobile menu-item menu-item-search-dropdown menu-item-avia-special"> <a href="?s=" rel="nofollow" data-avia-search-tooltip="'.$form.'" '.av_icon_string('search').'><span class="avia_hidden_link_text">'.__('Search','avia_framework').'</span></a> </li>'; } return $items; } /* Enables burger menu on all pages */ //first append search item to main menu remove_filter( 'wp_nav_menu_items', 'avia_append_burger_menu', 9998, 2 ); remove_filter( 'avf_fallback_menu_items', 'avia_append_burger_menu', 9998, 2 ); add_filter( 'wp_nav_menu_items', 'gc_append_burger_menu', 9998, 2 ); add_filter( 'avf_fallback_menu_items', 'gc_append_burger_menu', 9998, 2 ); function gc_append_burger_menu ( $items , $args ) { global $avia_config; $location = ( is_object( $args ) && isset( $args->theme_location ) ) ? $args->theme_location : ''; $original_location = isset( $avia_config['current_menu_location_output'] ) ? $avia_config['current_menu_location_output'] : ''; /** * Allow compatibility with plugins that change menu or third party plugins to manpulate the location * * @used_by Enfold config-menu-exchange\config.php 10 * @since 4.1.3 */ $location = apply_filters( 'avf_append_burger_menu_location', $location, $original_location, $items , $args ); //edit the line below with your information (newmenu1, newmenu2, etc) if ((is_object($args) && in_array($args->theme_location, array('avia','newmenu1','newmenu2','newmenu3'))) || (is_string($args) && $args = 'fallback_menu')) { $class = avia_get_option('burger_size'); $items .= '<li class="av-burger-menu-main menu-item-avia-special '.$class.'"> <a href="#"> <span class="av-hamburger av-hamburger--spin av-js-hamburger"> <span class="av-hamburger-box"> <span class="av-hamburger-inner"></span> <strong>'.__('Menu','avia_framework').'</strong> </span> </span> </a> </li>'; } return $items; }
Now we need enfold to know our new file exists
inside function.php replacerequire_once( 'functions-enfold.php');
with
require_once( 'functions-enfold.php'); require_once( 'functions-gc.php'); // you'll need to redo this step every time you update the theme
Lastly, we want to have the menus appear on the pages they should appear on. This step will need to be repeated every time you update the theme.
Inside helper-main-menu.php replace:
$avia_theme_location = 'avia'; $avia_menu_class = $avia_theme_location . '-menu';
With:
global $post; $newmenu1= array(85,9); // numbers represent pages, categories you want to target $newmenu2= array(4, 22); $newmenu3= array(5, 34); //if statement for every menu you have with a fallback to the default main menu if (in_array($post->post_parent, $newmenu1) || (in_array($post->ID, $newmenu1))){ $avia_theme_location = 'newmenu1'; } else if (in_array($post->post_parent, $newmenu2) || (in_array($post->ID, $newmenu2))){ $avia_theme_location = 'newmenu2'; } else if (in_array($post->post_parent, $newmenu3) || (in_array($post->ID, $newmenu3))){ $avia_theme_location = 'newmenu3'; } else { $avia_theme_location = 'avia'; // Goes to default Enfold Main Menu } $avia_menu_class = 'avia-menu';
Let me know if you have any questions
- This reply was modified 5 years, 11 months ago by GCSkye.
Updated above post.
This solution is no longer needed. I’ve managed to do what I needed here for the most part:
I need help in the thread linked above
Inside helper-main-menu.php I replaced:
$avia_theme_location = 'avia'; $avia_menu_class = $avia_theme_location . '-menu';
With:
global $post; $newmenu1= array(85,9); $newmenu2= array(4, 22); $newmenu3= array(5, 34); if (in_array($post->post_parent, $newmenu1) || (in_array($post->ID, $newmenu1))){ $avia_theme_location = 'newmenu1'; } else if (in_array($post->post_parent, $newmenu2) || (in_array($post->ID, $newmenu2))){ $avia_theme_location = 'newmenu2'; } else if (in_array($post->post_parent, $newmenu3) || (in_array($post->ID, $newmenu3))){ $avia_theme_location = 'newmenu3'; } else { $avia_theme_location = 'avia'; // Goes to default Enfold Main Menu } $avia_menu_class = 'avia-menu';
This allows my menus to work perfectly but the burger menu does not display unless on a page with the avia menu showing. What is causing the burger menu and search icon to not display for newmenu1, newmenu2, and newmenu3?
Note: I’ve added the following to function.php to avoid any questions about this:
// Adds new custom menus inside admin area add_action( 'after_setup_theme', 'register_gc_menus' ); function register_gc_menus() { register_nav_menus( array( 'newmenu1' => 'New Menu 1' )); register_nav_menus( array( 'newmenu2' => 'New Menu 2' )); register_nav_menus( array( 'newmenu3' => 'New Menu 3' )); }
- This reply was modified 5 years, 11 months ago by GCSkye.
November 8, 2018 at 10:40 pm in reply to: Cache and merge not working – not using cache plugin #1031428I had disabled it. I’m also looking at Kriesi’s source, why aren’t the files compressed here? Is it disabled or the same bug
November 8, 2018 at 12:08 am in reply to: Google search results showing with page numbers at the end – How to remove? #1031032It’s an example. I should mention, it is not all URLs just some.
- This reply was modified 5 years, 11 months ago by GCSkye.
Hi Mooshonov,
If you’re looking to do all buttons you can do the following:
.button { font-size:20px !important; }
Here is how to change the “add to cart” button on the product page and the “checkout button” on the cart page:
.single_add_to_cart_button{ font-size:20px !important; }
.checkout-button{ font-size:20px !important; }
If you need more specific buttons changed, will you list the buttons here?
- This reply was modified 5 years, 12 months ago by GCSkye.
November 4, 2018 at 7:12 pm in reply to: Change blog grid titles on all pages, including archives #1029652Hi Colindie,
To have the styling effect all pages, you can simply remove the page-id number from the entry. See the following:.entry-title { font-size: 18px !important; }
This was resolved.
November 2, 2018 at 9:06 pm in reply to: Page footer displays different on pages and woocommerce pages #1029324Hi Machaddict,
Upgrade to the latest version. Let me know if that resolves your issue.
Warm regards
October 19, 2018 at 5:22 am in reply to: Page footer displays different on pages and woocommerce pages #1023748It happens to any page where sidebar is enabled on that page. I explained exactly why it was happening in my second post.
The class ” sidebar_right” is being added to every section. Since the footer page is coded like a section, it receive the sidebar_right tag as well. Some elements are being messed up by the ” sidebar_right” class.
My post where I added my css fix shows some of them messed up.
The solution kriesi needs to implement is “if page is set as footer, do not add sidebar_right to classes”
October 13, 2018 at 6:17 pm in reply to: Cache and merge not working – not using cache plugin #1021075The CSS still isn’t merged. I’ve disabled all plugins to test it and nothing changes. This seems to be a problem with the script.
Everything was working when I first installed it.
Edit: Turned a few things off and on to test everything. No even with the option disabled, js is not merging.
- This reply was modified 6 years ago by GCSkye.
October 12, 2018 at 8:28 pm in reply to: Page footer displays different on pages and woocommerce pages #1020819I suppose to an untrained eye they are identical.
I’ve resolved most of the issues with simple CSS fixes. You’ll see the subscribe buttons are different. I wasn’t going to leave my live site broken…
Here is the CSS I added to fix it, feel free to remove it and see how it looks for yourself:
/* removes br above and below mailchimp */
#footer-page .flex_column br {display:none}/* Ensures full width bar is full width */
#footer-page .hr-full .hr-inner{ left:-100%!important}/* remove large padding on woocommerce footer */
#after_section_1.sidebar_right,#after_section_2.sidebar_right{display:none}The above CSS only fixes issues on the woocommerce page. I’ve also said how to reproduce this. While it looks better on my site, it won’t on other users sites when they use a sidebar on any page.
October 11, 2018 at 2:27 pm in reply to: Page footer displays different on pages and woocommerce pages #1020320Bump
October 10, 2018 at 4:33 pm in reply to: Page footer displays different on pages and woocommerce pages #1019993Fix for woocommerce pages: Disabling the Sidebar on Archive Pages [right side bar] Fixes all styling issues except the <br> being added above and below the mailchimp form.
This fix does not fix the issue on product pages. I’m using the page sidebar on the woocommerce product page, that may be why.
This of course is a fix but not a solution. I need the sidebar displayed on the right side of pages.
Final note: Woocommerce sidebars css is breaking aspects of the page footer. It’s adding sidebar_right to the css line of the page assuming it is another block.
- This reply was modified 6 years ago by GCSkye.
April 29, 2018 at 10:43 pm in reply to: Adding custom icon to Social Profiles – Icon doesn't display #948733bump 3
-
AuthorPosts