hugodebe
Forum Replies Created
-
Forum: Plugins
In reply to: [Instock Email Alert for Woocommerce] Multilingual supportForum: Plugins
In reply to: [Instock Email Alert for Woocommerce] Multilingual supportHi Laszlo, here is what you can find on the Polylang multilingual plugin How To’s page for developers:
How to make translatable user defined strings in my plugin or theme ?
You have to register strings on the admin side with the function ‘pll_register_string’ and display them on frontend with ‘pll__’ or ‘pll_e’.
Forum: Plugins
In reply to: [Instock Email Alert for Woocommerce] Multilingual supportGood to hear to that. Please let me know if have any forecast for the next release date? Thanks you very much
Forum: Themes and Templates
In reply to: [Pinnacle] Translate lightbox strings: page "x of x", "Loading…"Thanks for your quick reply. I use Poedit. You’re completely right. Both strings are actually in the po file. I found them now. Thanks again
Ok, as a quick solution I followed your advice and created a new parent category, with the objective to turn my ‘sold’ category a child of it. It works well. The Blog Post Head Title is now the ‘sold’ child category name as expected.
The only cons is the url. It became a bit longer and confusing, as it contains now the parent slug.
Other suggestions are welcome :
– How to call a specific parent category name when there is more than one parent category for a single post?
I let the thread open for now, ok?
The “make primary” function is not a wp one, it’s from yoast seo isn’t it?
By ‘principal’ I mean “primary”, sorry.
When you apply a second category to a post, there is an option to “Make primary” the one you want.
Thanks for your quick reply. I get it. But in my case this solution has a cons, as I would like to treat all the ‘sold’ product into the same category. The fact to have many child categories for ‘sold’ makes it a bit more complicated…
Do you know if there is a way to call the ‘principal’ parent category name? I didn’t find anything about such parameter.
Forum: Themes and Templates
In reply to: [Pinnacle] Different headers for different categories/postI’m not sure this what you were talking about, but maybe it can help.
To add a category class to single articles (or categories classes, if there are more than one), I use the following. Just add it into your function.php, preferably in a child theme.
//Add a category class to body of single posts add_filter('body_class','add_category_to_single'); function add_category_to_single($classes, $class) { if (is_single() ) { global $post; foreach((get_the_category($post->ID)) as $category) { // add category slug to the $classes array $classes[] = $category->category_nicename; } } // return the $classes array return $classes; } //End Add a category class to body of single posts
Then you can consider implementing different css styles to a single article, depending on its category.
One question: were you working on a multilingual website?
I’m currently working on a En/Pt/Es website with Polylang and I can’t get the ‘WC Product Stock Alert’ strings translation working as Polylang returns a white screen when saving…
Any suggestion? Thanks in advance
Olá felipetto,
How is going on the translation for Brazilian Portuguese? Did you managed to translate it all? Do you have something interesting to share?
Thanks in advance. Valeu, abra?o!
Forum: Plugins
In reply to: [Showeblogin Social Plugin] "App Not Setup" message for Share buttonBy the way, do you know what would be the best configurations with W3 Total Cache to optimize the plugin loading? Any idea of what I should add into the manual minifying settings in W3TC to async load by the better way? Thanks in advance
Forum: Plugins
In reply to: [Showeblogin Social Plugin] "App Not Setup" message for Share buttonDone! I reinstalled as requested. Problem is resolved, thanks a lot!
The Like Box loading continue to be slow for me, very lately after the page loading. I don’t know if there is a way to get it faster?
Forum: Plugins
In reply to: [Showeblogin Social Plugin] "App Not Setup" message for Share buttonForum: Plugins
In reply to: [Page Builder by SiteOrigin] Pagination not working?Hi, any update about the nextpage pagination issue on Page Builder plugin? Somebody found a solution? Thanks in advance
Other thread on same topic: https://www.ads-software.com/support/topic/doesnt-work-1065?replies=3#post-8073510