Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1086698

    Hi,

    I once translated the word “Page” and used “/” instead “of”. I remember it was a php line and those were united with dots as you know to make a sentece. However, I could not find it now. Someone asked and you answered this question here as far as I rememeber but I could not find that here. My IQ level is dropping or some files have been changed. Do you know in which php file does this line exist?

    Thanks.

    #1087008

    Hey ilkbaharkunduzu,

    If you’re using Enfold 4.5.5, it should be in enfold > framework > php > function-set-avia-frontend.php (line 906):

    $output .= "<span class='pagination-meta'>".sprintf(__("Page %d of %d", 'avia_framework'), $paged, $pages)."</span>";

    Best regards,
    Nikko

    #1087129

    Nikko,

    Yes. That was it. You are fast. Thank you.

    Last question for the community: If we want this not to be changed with the updates, should we put this modified .php file in the same folder hierarchy under enfold child theme folder?

    Thanks

    #1087305

    Hi,

    Yes, the same hierarchy remade in the child theme.

    Best regards,
    Jordan Shannon

    #1087366

    Hi Jordon,

    If statement starts at the 841. This is for navigation. For the overwrite should I start from there to the modified line including finished argument at 941? It is not overwritten. Just the output part starting at 903 is not working either. Normally I add lines. Modification of the php file via child theme is I have to search for I guess.

    By the way if you decide to alter this logical statement in the future that would be a problem for the people like me. I wonder if WPML translate this. I will look into it.

    Thanks

    #1088096

    Hi ilkbaharkunduzu,

    The best way is override function avia_pagination in functions.php of your child theme.
    However if there are changes in that function, you’ll not get it unless you update the code as well, but this is rarely happens (in pagination atleast).
    As for translation, as long as you keep the same format then it will be translated.

    Best regards,
    Nikko

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.