Auror
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: problem with get_author_posts_urlWow, you were completely right. It worked. I deactivated all plugins, and it worked. I then re-activated three or four at a time to narrow down the culprit. It was a plugin called Show Hide Author. I’ll try and contact the author of that plugin. Many thanks!
Forum: Plugins
In reply to: [Polylang] switcher malfunctioning in author pagesHi again! It seems to me a bit weird that authors will show in the default language regardless of whether they have posts, but only show in other languages if they do. So I poked around and came up with the following edits to address this. It seems to be working fine, so I thought I’d share in case there are more people interested. Please do let me know if I got something wrong.
in frontend/frontendlinks.php, look for:
// Other archives elseif ( is_archive() ) {
replace with:
// Author archive elseif (is_author() ) { $url = $this->get_archive_url( $language ); } // Other archives elseif ( is_archive() && ! is_author() ) {
Forum: Plugins
In reply to: [Polylang] switcher malfunctioning in author pagesThanks for your prompt answer. I see! Would you be so kind as to point me to which parts of the code I should edit to change this? Again, much appreciated.
Forum: Plugins
In reply to: [Polylang] polylang language switcher appear only in english frontendDid you include the language switcher in the menu for both languages? The switcher is a menu item.
Forum: Plugins
In reply to: [Menu Cart for WooCommerce] Won't work even though menu is named correctlyI just figured it out. After the first try with this plugin, I had updated my theme and the newer version had a shopping cart menu item embedded in the code. Really embarrassed for this. Sorry for the confusion, Jeremiah!
Forum: Plugins
In reply to: [Menu Cart for WooCommerce] Won't work even though menu is named correctlyNo, really, Jeremiah, I can’t thank enough for developing this and caring so much about support.
Oh, another update: I have two shopping cart menu items (not icons) again. The one in Portuguese I’m able to remove if I disable the plugin. The order one seems stubborn. (The address, again: https://www.ateliechrislima.com.br)
Forum: Plugins
In reply to: [Menu Cart for WooCommerce] Won't work even though menu is named correctlyThanks a bunch, Ulrich! And thanks and sorry for troubling you, Jeremiah.
I tried reinstalling the plugin – and this is incredibly weird –, but until five minutes ago the menu had two shopping car items, even though I only had one installed (obviously).
So, I had a look at the code and it seemed to me it made some additions to the WooCommerce plugin backbone. I had a hunch somehow this wasn’t reverting itself even when I removed the Shopping Cart plugin.
I then deactivated WooCommerce and again removed the Shopping Cart plugin. This did eliminate shopping car menu item and I was able to reinstalled it and only get one shopping car item on the menu. But – as if all of that wasn’t odd enough – two shopping car icons show up!
I had a look at the code again and reinstalled a clean (ie not modified for translation purposes) copy of the plugin, to no luck. The only thing that served as a half solution was manually disabling the shopping car icon on admin panel. After that, it showed up as one item at last.
Anyway, I’m just an adventurer here and I’m definitely not knowledgeable on WordPress, so I can’t offer any explanation, but I thought reporting what happened might help if this situation comes up again.
Again, many thanks, Jeremiah!
Forum: Plugins
In reply to: [Menu Cart for WooCommerce] Won't work even though menu is named correctlyThat’s it.
Forum: Plugins
In reply to: [Menu Cart for WooCommerce] Won't work even though menu is named correctlyIf I may, this does not seem to be a problem in translation. I just deleted the plugin and created a new menu with a new name and different content, and the shopping cart menu item still shows up. It’s currently like that, if you wanna check.
Forum: Plugins
In reply to: [Menu Cart for WooCommerce] Won't work even though menu is named correctlyIt did show up in English (“item”, “items”, “View your shopping cart”). I didn’t revert the language adjustments to the code, though. I don’t understand how it still shows up in English.
Forum: Plugins
In reply to: [Menu Cart for WooCommerce] Won't work even though menu is named correctlyNo, thanks you Jeremiah for such a blazing fast answer.
Now, this is embarrassing, I forgot the address! https://www.ateliechrislima.com.br
So, after I posted this I installed another WooCommerce plugin (I had only WooCommerce and your plugin before; except, of course, for the “stock” plugins) and I noticed the shopping cart showed up on the menu.
I was about to come back here and update the topic as resolved, but before that I tried to make a tiny adjustment to the plugin, changing the code in order to adapt it to Brazilian Portuguese. I made changes to lines 131 and 132, as pasted below. The shopping cart menu did not, however, update to my changes: it still shows “1 item”, “2 items” and “View your shopping cart”.
So, I’m confused. Maybe I did do something wrong in the first place?
$viewing_cart = __('Ver seu carrinho', 'woothemes'); $cart_url = $woocommerce->cart->get_cart_url(); $cart_contents = sprintf(_n('%d produto', '%d produtos', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count);
I’m briefly changing the website’s language to English so you can have a look if you want to.
Oh, and I did try setting both menus, but at the time it had no effect.
Thanks again!