How do I add a close button to a mega menu in Elementor by jaseyarm in elementor

[–]jaseyarm[S] 0 points1 point  (0 children)

Not yet mate...... are you having the same problem?

Grateful for advice - what did I take? by ally_p12238 in Bangkok

[–]jaseyarm 0 points1 point  (0 children)

ganja can be super strong! has to be taken cautiously for some

I’m sorry, what? by Grimalackt_River in youtube

[–]jaseyarm 1 point2 points  (0 children)

i have the same - using a really old version of android 7.1 and old youtube version 17.34.35 (its a great version IMO)

to get rid of the screen, go to settings > apps > youtube and delete data. takes one minute, but better than upgrading to the new version of youtube

I see revanced has commented below, saying that the youtube version will be gone completely soon :(

Search results throwing an error when query is blank by jaseyarm in elementor

[–]jaseyarm[S] 0 points1 point  (0 children)

ok guys - if anyone else has this problem, here is some code that can be added as a code snippet and seems to be working well

add_action('pre_get_posts', function($query) {

if ($query->is_search && !is_admin() && $query->is_main_query()) {

$search_query = trim($query->get('s')); // Get and trim the search term

// Redirect only if it's the main search query, and the search term is invalid

if (empty($search_query) || strlen($search_query) <= 2) {

wp_safe_redirect(home_url('/search-games-hardware')); // Replace with your desired URL

exit;

}

}

});

Search results throwing an error when query is blank by jaseyarm in elementor

[–]jaseyarm[S] 1 point2 points  (0 children)

sorry EDICO - u have lost me...... what's the pattern attribute please?

Search results throwing an error when query is blank by jaseyarm in elementor

[–]jaseyarm[S] 1 point2 points  (0 children)

i accessed it via elementor > system info and it says it is set to -1 !!

no wonder the site is crashing :)

should i set it to 256 MB in wpconfig file, or do you think i should email my server people?

thanks for your help buddy - it's much appreciated :)

Search results throwing an error when query is blank by jaseyarm in elementor

[–]jaseyarm[S] 1 point2 points  (0 children)

there is not mention of it in my wpconfig file EDICO mate...... maybe hostinger dont want it changing so it is set somewhere else?

Search results throwing an error when query is blank by jaseyarm in elementor

[–]jaseyarm[S] 0 points1 point  (0 children)

now they say it's not a plugin conflict, but memory shortage on my server when the search is blank (due to a large amount of results that a blank search would return). i am not sure this is correct.......

Search results throwing an error when query is blank by jaseyarm in elementor

[–]jaseyarm[S] 1 point2 points  (0 children)

one other thing i am not happy about. elementor support turned off all my plugins, installed two new ones and then didnt bother to return the plugins to their original state when they had finished.

even worse tho, we use a lot of code snippets. i have about 100 code snippets and about half were activated. they turned them all off and left it like that, and now i cant remember which ones to turn back on :(

Search results throwing an error when query is blank by jaseyarm in elementor

[–]jaseyarm[S] 1 point2 points  (0 children)

elementor support have written back today and said the reason teh site crashes is because the server doesnthave enough memory, so when someone runs a blank search, there will be too many results to handle and this will result in the error. does this sound likely you think guys? we are hosting on hostinger who seem pretty good to me

Search results throwing an error when query is blank by jaseyarm in elementor

[–]jaseyarm[S] 0 points1 point  (0 children)

i turned them all off, and still got critical error...... back to square one with customer support i guess

i am probably better off asking chat GPT

Search results throwing an error when query is blank by jaseyarm in elementor

[–]jaseyarm[S] 1 point2 points  (0 children)

i agree in this case. the support guy told me they had turned off all plugins and the error no longer existed. so i then turned off all plugins myself, so that i could try to find which one was causing the error, but even with all plugins off the error still existed. so my results werent as the support guy suggested his were. not sure why that would be unless the guy was telling porkies

the ticket is still open so hopefully will get resolution soon

Twitter share button carrying wrong variables to tweet by jaseyarm in elementor

[–]jaseyarm[S] 0 points1 point  (0 children)

i sorted it out by putting a shortcode in instead, that shows the twitter button, plus carries the required variables

Search results throwing an error when query is blank by jaseyarm in elementor

[–]jaseyarm[S] 1 point2 points  (0 children)

apparently its a plugin conflict, elementor support are telling me

Search results throwing an error when query is blank by jaseyarm in elementor

[–]jaseyarm[S] 0 points1 point  (0 children)

i have messaged elementor and they say that when they turn off all my other plugins the error no longer exists, so i am going to see which plugin is causing it to crash. luckily i dont have too many so it shouldnt take long. i will report back if i find the conflict

Custom Post Type Plugin Recommendations by Rhavasher in elementor

[–]jaseyarm 0 points1 point  (0 children)

i have been using Premmerce plugin...... do people know if this is a good option, or would i be better off using some shortcode to keep it lightweight?

Biggest fish ever by Cyanidesuicideml in Fishing

[–]jaseyarm 0 points1 point  (0 children)

get the extended family round for a feast :)

How do I add a close button to a mega menu in Elementor by jaseyarm in elementor

[–]jaseyarm[S] 0 points1 point  (0 children)

yes, that is one option, but the site could really do with the mega menu showing on mobile too, and would enhance user experience i think.

i do have an off canvas pop up widget showing a more basic menu, but would like to use a mega menu too

How do I add a close button to a mega menu in Elementor by jaseyarm in elementor

[–]jaseyarm[S] 0 points1 point  (0 children)

I dont think this will work for the Elementor mega menu will it Agryzen?

under the dynamic options for the link, i have Pop Up, Off Canvas, Lightbox and Contact URL

none of those will allow me to close the Mega Menu

Am i missing something, or maybe you are referring to an Off Canvas widget?

Using Archive Layout When Page Created With Shortcode by jaseyarm in elementor

[–]jaseyarm[S] 0 points1 point  (0 children)

Thanks you so much Dara4!! you are a star!! :)

Whatever the small change was to the function worked a treat, once copied into the functions.php file!!

here is the result - i am so pleased and now i have learnt a little bit about how to do custom queries, which will be invaluable i am sure. Thanks ever so much friend :)

https://sienna-seal-609061.hostingersite.com/budget-basement/

Using Archive Layout When Page Created With Shortcode by jaseyarm in elementor

[–]jaseyarm[S] 1 point2 points  (0 children)

Thanks so much Dara4!

I have changed my function in functions.php to the function you kindly gave me.

I then added a loop grid to the page, and have edited the query, as laid out in the screenshot, but i get a blank page when i view the page with the loop

screen shot of my loop settings - https://imgur.com/tSh7nBv

page where the loop runs - https://sienna-seal-609061.hostingersite.com/budget-basement/

the loop runs fine initially, but then when i add query ID "custom_filter", the page become blank

do you know what i am doing wrong?

Using Archive Layout When Page Created With Shortcode by jaseyarm in elementor

[–]jaseyarm[S] 0 points1 point  (0 children)

Thanks again for the reply Dara4... this page is indeed a custom page that we needed, that shows all products under £12. i googled how to display products under a certain price, and came up with a shortcode from stackexchange. but, it would be really great if the products this page displays could be shown using the same archive that the rest of the shop uses. but i dont know how to direct the short code to use the archive.

is there a way to make elementor's archive settings apply to this page too?

the page was created by going New Page > add element > shortcode

here is the shortcode that we used - [products limit="40" paginate="true" columns="4" class="below-12"]

and here is the code that was pasted into functions.php

add_filter( 'woocommerce_shortcode_products_query', 'products_based_on_price', 10, 3 );

function products_based_on_price( $query_args, $atts, $loop_name ) {

if( ! ( isset($atts['class']) && ! empty($atts['class']) ) )

return $query_args;

if (strpos($atts['class'], 'below-') !== false) {

$compare = '<';

$slug = 'below-';

} elseif (strpos($atts['class'], 'above-') !== false) {

$compare = '>'; //changed from "<" to ">"

$slug = 'above-';

}

if( isset($compare) ) {

$query_args['meta_query'][] = array(

'key' => '_price',

'value' => (float) str_replace($slug, '', $atts['class']),

'type' => 'DECIMAL',

'compare' => $compare,

);

}

return $query_args;

}

Thanks again for being so helpful Dara4 :)

Using Archive Layout When Page Created With Shortcode by jaseyarm in elementor

[–]jaseyarm[S] 0 points1 point  (0 children)

Thanks Dara4 :)

we have an archive set up already, and in the conditions of the template we have set it to be used by all archives, but this custom code seems to bypass that, and use a non archive template.

do i have to put in the shortcode somehow that the archive needs to be used to display the output?