Česlav Przywara
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Tracking Form Submissions with Google AnalyticsHi,
you cannot just past JavaScript snippet directly into PHP code…
You want something like this:
add_action('wp_footer', function() { ?><script> document.addEventListener('wpcf7mailsent', function(event) { ga('send', 'event', 'Contact Form', 'submit'); }, false); </script><?php }, 30, 0);This code prints the snippet wrapped within
<script></script>tag in your site’s footer (ie. before</body>).Forum: Plugins
In reply to: [Polylang] In a shortcode, pll_ is not availableHi @pymouss,
There is no function
pll_in Polylang – you perhaps wanted to usepll__(notice the double underscore).Cheers,
ČeslavForum: Plugins
In reply to: [Polylang] Language Switcher Not Working On CategoriesHi @mehdibmm,
Your categories are all empty. You have to have some posts in the category, otherwise there is no link to category page generated by language switcher. According to this issue at GitHub, this is intentional (to not link to empty content).
Cheers,
ČeslavForum: Plugins
In reply to: [Polylang] No Support@holo-alan Your comment does not make any sense. Do you need any help or not?
… the only problem is that I found a bug that makes it not working properly (useless).
@mehdibmm if you are sure you have found a bug, you should report it on GitHub. If you can provide steps to reproduce the bug, I’m sure the author will take care of it and fix it.
Hi @miromannino,
I noticed this is still an issue in recently released 3.5 version. Would you maybe consider patching the distributed phpFlickr library? As I already mentioned above, only 4 lines of code need a change.
If you host plugin code on GitHub or somewhere else where pull requests are accepted, I’d be happy to make one.
Cheers,
ČeslavForum: Plugins
In reply to: [Polylang] Switching languages brings user to home pageHi @bluedrag,
I think you do not have all the pages/posts in primary menu translated, because for some pages the language switcher works as expected, see for example: http://dev.sonorcanada.com/contact/
Forum: Plugins
In reply to: [Polylang] All languages on blog pageHi @zemekis148,
Your question is answered in Polylang documentation: https://polylang.wordpress.com/documentation/documentation-for-developers/general/#all 🙂
Cheers,
ČeslavForum: Plugins
In reply to: [Polylang] hide the current language switcher without using widgetMy apologies, I just noticed the link to your page below the post 😉
Your website is essentialy one-pager (ie. it relies on anchors like #page-name for navigation). I don’t know if it’s possible to configure Polylang to “translate” the anchors. But maybe someone else would be able to help.
Forum: Plugins
In reply to: [Polylang] hide the current language switcher without using widgetHi @anasandia,
You want to use
hide_currentargument, see: https://polylang.wordpress.com/documentation/documentation-for-developers/functions-reference/#pll_the_languagesUsing your example:
<?php if (function_exists('pll_the_languages')): ?> <ul class="monstro-polylang"> <?php pll_the_languages(array('show_flags' => 1, 'show_names' => 0, 'hide_current' => 1));?> <?php endif; ?>As for your second question/problem: it’s hard to tell what’s wrong without more information (for example URL of page where the problem happens).
Forum: Plugins
In reply to: [Cachify] Archive pages with infinite scrollHi Dan,
Cachify processes both archive pages and single content items. I don’t know how exactly infinite scroll on your site is implemented, but usually infinite scroll works by fetching additional content via AJAX calls – Cachify does not cache AJAX calls, so there should be no interference.
Are you maybe seeing any errors/warnings in browser console when infinite scroll freezes on your archive pages?
Forum: Plugins
In reply to: [Responsive Lightbox & Gallery] Compatible with 4.8.x?@dfactory Maybe it would be good to update “Tested up to:” to indicate that – now it still says 4.7.6.
Hi,
It looks like the original phpFlickr library is abandoned, so maybe it makes sense to patch the version of library distributed with the plugin? It’s a small change, only 4 lines need to be updated.
Cheers,
ČeslavForum: Plugins
In reply to: [Analyticator] Deprecated function warnings since WP 4.5Ok, nevermind, I just noticed that you already did… 🙂
Forum: Plugins
In reply to: [Analyticator] Deprecated function warnings since WP 4.5Hi @akanksha404,
You should probably create your own thread for this to get plugin author’s attention. Despite the notice message is similar, it’s a different problem and this one has been resolved.
Cheers,
Česlav- This reply was modified 8 years, 9 months ago by Česlav Przywara. Reason: fix typo
Forum: Plugins
In reply to: [WP Store Locator] Compatibility with PolylangHi,
I noticed that these issues still haven’t been fixed in version 2.2.9, so I attempted to fix them myself.
The second PHP notice I mentioned is easy to fix, just check if the
ICL_SITEPRESS_VERSIONconstant is defined before using it inversion_compare()in/wp-store-locator/inc/class-i18n.php on line 87:if ( defined( 'ICL_SITEPRESS_VERSION' ) && version_compare( ICL_SITEPRESS_VERSION, 3.2, '>=' ) ) {There are no side-effects, the condition is evaluated the same way as before and the notice is gone.
Cheers,
Česlav