mariograsso87
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce PayPal Payments] Cannot see “Pay with cards” buttonOk, I found out that the button appears once the PayPal Card Processing method is disabled. I little strange behavior, to be honest, but it’s totally okay now.
Thanks for your great job and for your kind answer.
Forum: Developing with WordPress
In reply to: Create a dropdown filter with custom field valuesThanks again @bcworkz . I placed the code in the archive template (archive-offerta_lavoro.php), but I also tried to put it in another template page with same results.
First of all, let me clarify that the query works. To be clear, if I try to loop the posts for ‘key’ => ‘crb_attiva_nonattiva’ and ‘value’ => ‘chiusa’, the posts are shown correctly. Ergo, I suppose the problem is with the dropdown filter.
Coming to the problem with the permalink, I also tried to completely remove the clear filter button, but nothing seems to change…
Forum: Developing with WordPress
In reply to: Create a dropdown filter with custom field valuesMany thanks to both of you.
@corrinarusso , when I write that the filter doesn’t filter correctly I mean that, choosing one of the two options from the dropdown, I’m always redirect to the same CTP single page, regardless the field value matches or not. And it’s true, my loop was doing nothing, but even adding the_title(); nothing changes.
@bcworkz , how did you make it work? I added the_title(); at the loop as you did, but it still doesn’t work… I will deal with the clear filter issue and the validation after I figure out how to make things working.
Great, problem solved. Thank you so much for the help and for the great job you do.
Forum: Themes and Templates
In reply to: [Storefront] How to change media breakpoint in StorefrontBecause it’s really hard to find a solution online, I would like to share with you a workaround I found.
First of all, we need to deregister the parent style
add_action( 'wp_enqueue_scripts', 'remove_default_stylesheet', 20 ); function remove_default_stylesheet() { wp_deregister_style( 'storefront-style' ); }
After that, we should copy the entire Storefront’s style.css in our child theme’s CSS. At last, we should copy the entire /assets/css/woocommerce/woocommerce.css in our child theme’s style.css too.
To change the breakpoint, search for @media (min-width:768px) and change 768 with the number you want.
I know it’s a workaround, so please share with me other solutions if you have.
- This reply was modified 3 years, 7 months ago by mariograsso87.
Forum: Plugins
In reply to: [WooCommerce] Quantity for variable productThanks for your answer, Amanda. I spent long time trying to fix the problem, but it actually works perfectly creting a new product. I probably messed things up in the previous product.
Forum: Developing with WordPress
In reply to: Use Javascript to add class on scrollFirst of all, thanks to everybody. As i told you before, I’m not an expert, I learnt some HTML and CSS by myself, and I’m just trying to play with Javascript.
Following your tips, I solved the problem as follow.
I added this to funtions.php:
<?php //aggiungere funzione cambia_classe_nav add_action( 'wp_enqueue_scripts', 'cambia_classe_nav' ); function cambia_classe_nav(){ if(is_front_page()){ wp_enqueue_script( 'menu-scroll', get_stylesheet_directory_uri() . '/js/menu-scroll.js', array() ); } } ?>
I created a menu-scroll.js like this:
var lastScrollTop = 0; window.addEventListener( "scroll", function() { var st = window.pageYOffset || document.documentElement.scrollTop; if (st > lastScrollTop) { document.getElementById("navigazione").classList.add("scuro"); } else { document.getElementById("navigazione").classList.remove("scuro"); } lastScrollTop = st <= 0 ? 0 : st; // For Mobile or negative scrolling }, false );
And after all …. it simply works!
Thanks again for your great help.
- This reply was modified 4 years, 9 months ago by mariograsso87.
Forum: Developing with WordPress
In reply to: Use Javascript to add class on scroll@mlchaves, I have no idea how to add jQuery libraries… Could you please tell me if it’s possible to reach my goal using vanilla JS?
Thank you, and sorry for the late reply.
I can confirm that I use a cache plugin (W3 Total Cache). Anyway, WhatsApp sharing button works great again after updating the plugin.
Thanks for your great job.
Forum: Plugins
In reply to: [Contact Form 7] Put checkboxes in cellsSolved. Thank for the answer and for your great job, @takayukister.
Your plugin is a trap, because the free version is completely useless and the user should pay to solve the problem.
I was thinking that your plugin could be time saver for me, but finally I spent few hours more than expected to transfer the updates to the production website because THERE’S NO EASY WAY TO DO IT WITH YOUR PLUGIN. And please, stop saying that you wrote a page in your documentation with the instruction to push changes in the main website, because what there’s written in that page could he easily resumes with 4 words: BUY THE PRO VERSION.
What made me angry is that the description is misleading. I saw the page where you describe the procedure to push changes, but you even not mention that it’s valid just for the paid version! You should just sell your plugin, not creating a trap where the only way to don’t waste hours of work is paying a pro version to the developer. For sure it’s my fault if I didn’t check properly what the plugin was really able to do, but the description is not honest at all.
So, at the and, I can change the words you didn’t like in the previous message: it’s not pointless, it’s a trap.
Forum: Plugins
In reply to: [Multisite Language Switcher] Custom description in multilanguage switcherAs Dennis suggested on the Italian support forum, the solution is really easy: in Settings – Multisite Language Switcher I’ve filled the field Description, and it works just fine.
Thank you Dennis, I wish you the best.
Forum: Plugins
In reply to: [Multisite Language Switcher] Custom description in multilanguage switcherThis my main menu:
https://oi64.tinypic.com/2czqzb8.jpg
I can’t edit the item zh_TW, because it’s automatically inserted in the menu by the MslsMenu plugin that only allows to choose between the flag and this description. I think it takes the description from somewhere in Multisite Language Switcher folders.
I would just link to write, for example, “Traditional Chinese” instead of the code zh_TW. I’m sorry if I’m not more accurate, but I’m not a professional. I hope it’s clear enough now.
Thanks anyway.
- This reply was modified 6 years, 11 months ago by mariograsso87.
- This reply was modified 6 years, 11 months ago by mariograsso87.
- This reply was modified 6 years, 11 months ago by mariograsso87.
Forum: Networking WordPress
In reply to: Free one-page themeHi @jcastaneda, it’s actually a really good advice. I’ve started customizing my website, but I have a problem:
I would like to show the blog posts in a homepage section, but I can just see 3 posts with no chance to read older ones. Is it possible to add a pager or something like “Read older posts…”?
Thank you so much.