Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter aBLOGGERwithoutAblog

    (@mariograsso87)

    Still waiting for a kind answer. 20 days should be enough to answer a quite simple question: has the plugin a string traslation feature as stated in the descriprion? If yes, can I know how to use it?

    Thread Starter aBLOGGERwithoutAblog

    (@mariograsso87)

    FYI, there’s a section of the plugin’s description that is about string translations, but, being not a professional coder, I didn’t understand how to use it. I was hoping to have some clarifications about that.

    Available features for translation:
    wpm_translate_url( $url, $language = ” ); – translate url
    wpm_translate_string( $string, $language = ” ); – translate multilingual string
    wpm_translate_value( $value, $language = ” ); – translate multidimensional array with multilingual strings
    Update translation occurs at PHP. Therefore plugin has high adaptability, compatibility and easily integrates with other plugins. This is what distinguishes it among similar.
    Available translation html tags by JS for strings what do not have WP filters before output.
    Thread Starter aBLOGGERwithoutAblog

    (@mariograsso87)

    Excuse me, but I think you’ve completely misunderstood my question. I don’t see any reference to translating strings within a PHP template on the page you linked.

    Let me try to clarify my need again: I need to translate some strings present in a PHP template. For example, there might be a string ‘Last articles’ and I would like this to be translated into Italian if the user is browsing the website in Italian.

    Thread Starter aBLOGGERwithoutAblog

    (@mariograsso87)

    Thank you for your kind reply. I need to translate some strings within a PHP template so that they are displayed in the language selected with the switcher. I.E. The page should show a button with written “Read” for English, “Leggi” for Italian.

    Thread Starter aBLOGGERwithoutAblog

    (@mariograsso87)

    Ok, I found out that the button appears once the PayPal Card Processing method is disabled. I little strange behavior, to be honest, but it’s totally okay now.

    Thanks for your great job and for your kind answer.

    Thread Starter aBLOGGERwithoutAblog

    (@mariograsso87)

    Thanks again @bcworkz . I placed the code in the archive template (archive-offerta_lavoro.php), but I also tried to put it in another template page with same results.

    First of all, let me clarify that the query works. To be clear, if I try to loop the posts for ‘key’ => ‘crb_attiva_nonattiva’ and ‘value’ => ‘chiusa’, the posts are shown correctly. Ergo, I suppose the problem is with the dropdown filter.

    Coming to the problem with the permalink, I also tried to completely remove the clear filter button, but nothing seems to change…

    Thread Starter aBLOGGERwithoutAblog

    (@mariograsso87)

    Many thanks to both of you.

    @corrinarusso , when I write that the filter doesn’t filter correctly I mean that, choosing one of the two options from the dropdown, I’m always redirect to the same CTP single page, regardless the field value matches or not. And it’s true, my loop was doing nothing, but even adding the_title(); nothing changes.

    @bcworkz , how did you make it work? I added the_title(); at the loop as you did, but it still doesn’t work… I will deal with the clear filter issue and the validation after I figure out how to make things working.

    Thread Starter aBLOGGERwithoutAblog

    (@mariograsso87)

    Great, problem solved. Thank you so much for the help and for the great job you do.

    Thread Starter aBLOGGERwithoutAblog

    (@mariograsso87)

    Because it’s really hard to find a solution online, I would like to share with you a workaround I found.

    First of all, we need to deregister the parent style

    add_action( 'wp_enqueue_scripts', 'remove_default_stylesheet', 20 );
     function remove_default_stylesheet() {
         wp_deregister_style( 'storefront-style' );
    }

    After that, we should copy the entire Storefront’s style.css in our child theme’s CSS. At last, we should copy the entire /assets/css/woocommerce/woocommerce.css in our child theme’s style.css too.

    To change the breakpoint, search for @media (min-width:768px) and change 768 with the number you want.

    I know it’s a workaround, so please share with me other solutions if you have.

    Thread Starter aBLOGGERwithoutAblog

    (@mariograsso87)

    Thanks for your answer, Amanda. I spent long time trying to fix the problem, but it actually works perfectly creting a new product. I probably messed things up in the previous product.

    Thread Starter aBLOGGERwithoutAblog

    (@mariograsso87)

    First of all, thanks to everybody. As i told you before, I’m not an expert, I learnt some HTML and CSS by myself, and I’m just trying to play with Javascript.

    Following your tips, I solved the problem as follow.

    I added this to funtions.php:

    <?php
    //aggiungere funzione cambia_classe_nav
     add_action( 'wp_enqueue_scripts', 'cambia_classe_nav' );
     function cambia_classe_nav(){
     	if(is_front_page()){
       wp_enqueue_script( 'menu-scroll', get_stylesheet_directory_uri() . '/js/menu-scroll.js', array() );
     }
     }
    ?>

    I created a menu-scroll.js like this:

    var lastScrollTop = 0;
    
    window.addEventListener(
      "scroll",
      function() {
        var st = window.pageYOffset || document.documentElement.scrollTop;
    
        if (st > lastScrollTop) {
          
          document.getElementById("navigazione").classList.add("scuro");
        } else {
          
          document.getElementById("navigazione").classList.remove("scuro");
        }
        lastScrollTop = st <= 0 ? 0 : st; // For Mobile or negative scrolling
      },
      false
    );

    And after all …. it simply works!

    Thanks again for your great help.

    Thread Starter aBLOGGERwithoutAblog

    (@mariograsso87)

    @mlchaves, I have no idea how to add jQuery libraries… Could you please tell me if it’s possible to reach my goal using vanilla JS?

    Thread Starter aBLOGGERwithoutAblog

    (@mariograsso87)

    Thank you, and sorry for the late reply.

    I can confirm that I use a cache plugin (W3 Total Cache). Anyway, WhatsApp sharing button works great again after updating the plugin.

    Thanks for your great job.

    Thread Starter aBLOGGERwithoutAblog

    (@mariograsso87)

    Solved. Thank for the answer and for your great job, @takayukister.

    Thread Starter aBLOGGERwithoutAblog

    (@mariograsso87)

    Your plugin is a trap, because the free version is completely useless and the user should pay to solve the problem.

    I was thinking that your plugin could be time saver for me, but finally I spent few hours more than expected to transfer the updates to the production website because THERE’S NO EASY WAY TO DO IT WITH YOUR PLUGIN. And please, stop saying that you wrote a page in your documentation with the instruction to push changes in the main website, because what there’s written in that page could he easily resumes with 4 words: BUY THE PRO VERSION.

    What made me angry is that the description is misleading. I saw the page where you describe the procedure to push changes, but you even not mention that it’s valid just for the paid version! You should just sell your plugin, not creating a trap where the only way to don’t waste hours of work is paying a pro version to the developer. For sure it’s my fault if I didn’t check properly what the plugin was really able to do, but the description is not honest at all.

    So, at the and, I can change the words you didn’t like in the previous message: it’s not pointless, it’s a trap.

Viewing 15 replies - 1 through 15 (of 18 total)