Forum Replies Created
-
AuthorPosts
-
Hi Rikard,
Thanks for your reply.
Your code solves issues 1 and 2, but not issue 3.
Could you please help me with this last thing?
Thanks a lot!Hi Rikard,
Thanks for your reply.
Add to cart buttons are added to my shop, as you can see on the page in private content, no matter if I enable or disable the “Enable AJAX add to cart buttons on archives” option in WooCommerce settings (see screenshot: https://imgur.com/AfyqSFQ).
That’s the reason why I’m trying to add this function which doesn’t work with the theme.Hi Mike,
I am pretty sure I tried this updated function, switching ‘Informations complémentaires’ to ‘Caractéristiques’ inside, and it didn’t work :-(
That’s the reason why I temporarily put the older function back…
Anyway, your changes are perfect and everything works perfectly now!
Thanks a lot, Mike!Hi,
Yes I tried to deactivate all plugins but this issue is still displayed.Hi Mike,
I completely forgot to thank you for your help on this thread! :-(
Your piece of code used to work perfectly, but some days ago I modified this tab translation with Loco Translate, so everything is ok on tablets and desktops, but I still would need your code to display another tab title on portrait mobiles, but it doesn’t work anymore…
What do I need to change to make it work again?
Thanks a lot ! :-)Hi Mike,
Sorry for the very late reply!
Everything seems to be ok now.
This topic can be closed.
Thank you very much for your help! :-)Hi,
I finally found a solution for this.
The topic can be closed.
ThanksHi Mike,
Thanks for your reply.
If it could work and if it doesn’t need to much work for you, of course I would be interested ;-)Hi Mike,
Mea culpa ;-)
I only checked on my computer, resizing screen size.
But when I check on my phone, it works, you’re right!I would need one last adjustment:
I would need this function to work on mobile portrait only.
So I would prefer to set a screen size in the function.To do this, I tried to replace
if(wp_is_mobile())
byif((width >= 0) && (width <= 479))
orif((width <= 479))
but it doesn’t work, the function is now active on all screens…What am I doing wrong?
Hi Mike,
Thanks for your reply.
I’m sorry but this function doesn’t work.
Indeed, the tab tittle is not modified on any screen anymore.August 20, 2020 at 9:50 pm in reply to: Modify "Proceed with PayPal" button text on WooCommerce #1239629Hi Mike,
Thanks for your reply.
As usual, your function works like a charm.
Thanks a lot for your help guys! ;-)Hi Rikard,
Thanks for your reply.
Unfortunately, switching to the burger menu on tablets in landscape can not be an option for me.
Isn’t there any solution to aim my menu only and not my submenu??Hi Ismael,
What kind of tests did you make?
Also, I saw you deactivated my Akismet and Autoptimize plugins. Is there a reason?
And you didn’t answer me about which tool you used to test my frontpage weight and requests…
Thanks! ;-)Hi Jordan,
I hoped some help on my initial question, but nothing else ;-)
Thank you!Hi Rikard,
Ok, this is how my main menu looks like on screens a little bit larger than 990px, without any code:
Screenshot 1
As you can see, there is an issue: my menu is too large and some items are behind others.So I added this code, to use the full screen width and everything is ok like this (Screenshot 2):
@media only screen and (min-width: 990px) { #header_main_alternate .container { width: 100%!important; max-width: 100%!important; padding: 0;} }
The only thing I need is adding or modifying something in my code to TARGET MY MAIN MENU ONLY, NOT MY DROPDOWNS.
Because as you can see on Screenshot 3, my first dropdown is not centered anymore like it used to be.
And I can not add some code to move it like you gave me before, because it will work for some screen widths and not others, so this is can not be a solution.
So what do I need to add to my code or how do I need to change it, to target MY MENU ONLY?Thanks!
Hi guys,
I now solved my menu issue.
This topic can be closed.
Thanks a lot for your help! ;-)Hi Ismael,
So I tried this:if(wp_is_mobile()) { add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 ); function woo_rename_tabs( $tabs ) { $tabs['additional_information']['title'] = __( 'Infos' ); // Rename the additional information tab return $tabs;} }
…but my function doesn’t work anymore :-(
What am I doing wrong?
Is it possible to indicate sizes in the function (like from XXXpx to XXXpx), instead of only “mobile”?
Thanks!July 28, 2020 at 11:54 pm in reply to: Modify "Proceed with PayPal" button text on WooCommerce #1233810Hi Guenni,
Both functions don’t work :-(
Yes, it is the checkout button.I checked woocommerce / includes / gateways / paypal / “class-wc-gateway-paypal.php” about line 44 and the text IS “Proceed to PayPal”:
I also checked wp-content / languages / plugins / “woocommerce-fr_FR.po” and the text IS also “Proceed to PayPal”:I use Stripe plugin for my payments by credit card, but no plugin for PayPal. It is included in WooCommerce.
Hi Ismael,
Thanks for your reply.
If it’s the same in the database, there are 621 products on our website.
There is no staging or development version of the site, but it’s not already online. But if you want to make some changes or testings, could you please inform me before, so I could make a backup before? Thanks!
I mostly made some cleaning in wp_postmeta (revisions, deleted posts, orphan posts…).
And my host makes automatic backups every day.July 27, 2020 at 11:08 pm in reply to: Modify "Proceed with PayPal" button text on WooCommerce #1233609Hi Guenni,
Thanks for your reply.
I’m sorry but this code doesn’t work neither for me :-(July 27, 2020 at 11:06 pm in reply to: Modify "Proceed with PayPal" button text on WooCommerce #1233608Hi Rikard,
I need to add the text “Payer” instead of “Proceed to PayPal”.Hi Rikard,
Thanks for your reply.
I’m sorry but I don’t need to move my dropdown menu, because with this code it will never be centered on all screen sizes.
I would need to know which element I need to target in my original code, to display my main menu full width on screens from 990px, but without influencing my “NOS UNIVERS” dropdown menu…Hi Nikko,
The function I would like to set is the one you gave me in this thread, and I would need to enable it for screens from 0px to 767px only.Hi roihaddl,
If your test is working, could you please tell me how you integrated this in the original function?
Thank you very much! ;-)Hi Jordan,
I customized a little bit your code and it’s perfect!
Thanks a lot for your help! ;-)
This topic can be closed.Hi Nikko,
It works perfectly!
Thank you so much!
This topic can be closed ;-)Hi guys,
Any help on this? :-(
Thanks a lot! ;-)Hi Nikko,
Your code helps again.
I have one last question: I would only need to add this #menu-item-profile element on mobiles and tablets portrait.
I know I could add adisplay: none
to the element for screens largest than 768px, but is there a way to applicate the functions to one specific size of screen directly in the function itself, by adding some code in it?
Thanks a lot!Also, between 768 and 989 pixels screen wide, a white space is added between my menu and my slider, because of this code:
#menu-item-profile { float: right; }
(see screenshot in private content)
Hi Nikko,
It helps a lot and I already thank you very much for your work!
Your functions and css works perfectly on desktop (see Screenshot 1 in private content).
But I don’t know why, the #menu-item-profile element goes down on mobile and tablet (see Screenshot 2 in private content).
Do you know what’s the matter with this? -
AuthorPosts