michael1171
Forum Replies Created
-
Forum: Plugins
In reply to: [WP-Spreadplugin] Messy CSS and a wrong link in product detail viewBy the way, I just checked in the Lovetee-Shop, the direct LINK to the CHECKOUT in product view is there as well and the link is even active with 0 products in the cart.
Also, I quite like the products-overview page in the Lovetee-example. I suppose you use a modified version of the plugin to achieve that, right?
Or is it possible just by modifying the CSS?Forum: Plugins
In reply to: [WP-Spreadplugin] Category includes articles from other categoriesI had the same problem somehow.
When I made a “Rebuild Cache” the “import” previews for each the pages were correct, however, one some of the pages still showed stuff from other categories (at first even from another shop). I copied the shortcode to new page, rebuild, delete old page, rebuild… eventually I can’t tell how often I tried different things until for now everything seems to be correct.
What scares me a bit though is that currently I just run a small test shop with less than 20 products. What if later a shop contains let’s say 100+ products and all of the sudden that mess starts again?
(By the way, when you delete a page with spreadshirt shortcode in it but the page is still in the trash bin, the page will be still part of a rebuild cache and may eat up time!)
You could try to completely uninstall WP Supercache, but not just by hitting uninstall, also make sure everything is removed (check out here: https://ww.wp.xz.cn/plugins/wp-super-cache/other_notes/)
Then install it again, set it up again and don’t forget the user agents.Oh, one more thing
As far as I understand, for WPtouch Pro(!) under WP Super Cache Settings > Plugins > WPtouch (support) has to be disabled! This is only for the free version of WPtouch. Don’t remember where I read that but I read it somewhere.Forum: Plugins
In reply to: [WPtouch - Make your WordPress Website Mobile-Friendly] WPTouch examples?Sorry, the correct link is http://studioA.eu
Forum: Plugins
In reply to: [WPtouch - Make your WordPress Website Mobile-Friendly] WPTouch examples?One of my sites is online with WPtouch Pro now: http//studioA.eu – actually since last night.
You have to use a smartphone if you want to see the mobile version (not sure what is shown on tablets yet). By now I have it only tested on a few Android phones. I don’t have the desktop/mobile switch enabled, so you can’t acces the mobile version easily from desktop.
I am currently still working on it, so maybe some page may show up somehow weird for a moment.
Oh, and this site isn’t a blog, just a website.Forum: Plugins
In reply to: [Polylang] Show theme element depending on languageI think basically your idea should work but I am not sure whether your PHP syntax is correct (I am a newbie in PHP). I think there is at least one ‘echo’ too much (first line)?
Forum: Plugins
In reply to: [WPtouch - Make your WordPress Website Mobile-Friendly] WPtouch and PolylangThat’s the pro support (in case you wanna pay for it)
Forum: Plugins
In reply to: [WPtouch - Make your WordPress Website Mobile-Friendly] WPtouch and PolylangJust for the record the reply from WProuch Pro support on my workaround (nice guys)
Hi Michael,
As you have identified, manually adding menus with conditional display based on the active language is an option. We are generally reluctant to provide customers with solutions that rely on such hard-coded output, as it can tend to cause problems in future should they choose to update their normally dynamic content (e.g., menus).
That said, thank you very much for your feedback.
Forum: Plugins
In reply to: [WPtouch - Make your WordPress Website Mobile-Friendly] WPtouch and PolylangI found a solution, but it is neither very sophisticated nor very elegant. It works though.
What I did (I currently have a German and English version):
1. I created the German and the English mobile menu in WordPress.
2. I selected the German menu as primary menu in WPtouch settings. Then opened the mobile page, opened page source code of the rendered page and copied the html-code of the menu (“
<ul class="menu-tree parent-links"><li class="menu-item ........./li></ul>“) to an empty text file.3. Same as step 2 with the English menu.
4. I edited the header-bottom.php file in the WPtouch child theme:
Commented out line 3
<?php /* if ( wptouch_has_menu( 'primary_menu' ) ) { wptouch_show_menu( 'primary_menu' ); } */ ?>and added instead
<?php if('de' == pll_current_language()) { ?>
"THE COPIED GERMAN HTML CODE"
<?php } else { ?>
"THE COPIED ENGLISH HTML CODE"
<?php } ?>Now the menus are hardcoded into the template. If you want to change/update the menus you have to follow the above steps again, which in my case takes less than five minutes and my menus won’t change very often.
Forum: Plugins
In reply to: [Polylang] Polylang with WP touch proI found a solution, but it is neither very sophisticated nor very elegant. It works though.
What I did (I currently have a German and English version):
1. I created the German and the English mobile menu in WordPress.
2. I selected the German menu as primary menu in WPtouch settings. Then opened the mobile page, opened page source code of the rendered page and copied the html-code of the menu (“
<ul class="menu-tree parent-links"><li class="menu-item ........./li></ul>“) to an empty text file.3. Same as step 2 with the English menu.
4. I edited the header-bottom.php file in the WPtouch child theme:
Commented out line 3
<?php /* if ( wptouch_has_menu( 'primary_menu' ) ) { wptouch_show_menu( 'primary_menu' ); } */ ?>and added instead
`<?php if(‘de’ == pll_current_language()) { ?>
“THE COPIED GERMAN HTML CODE”
<?php } else { ?>
“THE COPIED ENGLISH HTML CODE”
<?php } ?>`Now the menus are hardcoded into the template. If you want to change/update the menus you have to follow the above steps again, which in my case takes less than five minutes and my menus won’t change very often.
Forum: Plugins
In reply to: [Polylang] Show theme element depending on languageHey Ditto Dito!
Thank you very much! 1,000,000 Kisses (no, I am not gay, in case you are a dude). You made my day! Thank You. Thank you. Thank you.
Forum: Plugins
In reply to: [Polylang] Polylang and WPtouchMaybe someone could help me with this: (my coding skills are somewhat limited)
Let’s assume I want to hardcode the menus into WPtouch.
I would simply first activate language-A, then copy the rendered code from page source, after that activate language-B and copy the rendered menu as well.This is the code in WPtouch’s header-bottom.php file which calls the menu:
<?php if ( wptouch_has_menu( 'primary_menu' ) ) { wptouch_show_menu( 'primary_menu' ); } ?>So my idea is now to replace that code with the two already rendered menus.
I just have no idea how to either show language-A or language-B depending on the selected Polylang language.I suppose this should be possible though, right? (Yes, I am aware that this isn’t a very elegant solution, but my menus won’t change very often)
Could anyone help me here, please???
I suppose this is the line that places the menu
<?php if ( wptouch_has_menu( 'primary_menu' ) ) { wptouch_show_menu( 'primary_menu' ); } ?>I just have no idea yet how to replace it exactly
Hi thibautmc,
thank you for the answer.
Basically I understand what you did and I think this might work for me as well.
Could you please tell me which file you edited (hardcoded) and if you could post me some sample code (with the flags) would be awesome!thibautmc
Could you please explain how you actually did it?