1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved Gallery module, change pagination text

Discussion in 'Free Divi Community Forum' started by bobrock4, Aug 15, 2018.

  1. bobrock4

    bobrock4 New Member

    Hi,

    I have searched to change the text for pagination in gallery module. In translation in my language the "next" has not translated with a good term.

    I haven't found any command on Divi.

    Probably i need to work on code, but in such case the updates of versions could reinstall the bad term

    Thanks to all
     
    1. PRO MEMBER PERKS Divi Block Pro - 30+ premade custom header designs for you to choose from:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    Try to add this code in Divi -> Theme Options -> Integration -> Body code
    Code:
    Log In or Sign Up to view this code.
     
    bobrock4 likes this.
  3. bobrock4

    bobrock4 New Member

    Hi, many thanks
    I have tried to put it, but it has not worked
    Best Regards
     
    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Replace the default archive "Older Entries" with beautiful pagination:Learn More
  4. Divi.Help

    Divi.Help Administrator
    Staff Member

    Kindly share your link with the code added.
     
  5. bobrock4

    bobrock4 New Member

    Thanks, I have found the solution. It needed to change the PO translation file.
     
    Tayo likes this.
    1. PRO MEMBER PERKS Divi Block Pro - Premade testimonial carousel design for your Divi site without using any plugins:View Demo
  6. Tayo

    Tayo New Member

    hello, I have the same problem. Can you help me? What is the change of PO translation file?
     
  7. Luis E. Arévalo

    Luis E. Arévalo New Member

    After some years maybe someone is still needing the code... this worked for me.
    Add this code in Divi -> Theme Options -> Integration -> Body code


    <script>
    jQuery(document).ready(function($) {
    $(window).on('load', function() {
    $('.et_pb_gallery_pagination .next a.page-next').text('Change Your Text Here');
    });
    });
    </script>
     
    1. PRO MEMBER PERKS Beautifully crafted custom colored 'Industrial' Divi layout for all Pro members:View Demo
  8. veruniverse

    veruniverse New Member

    Hello, I tried both codes and none of the works anymore - I'd appreciate more help! Thank you :)
     
  9. Divi Booster

    Divi Booster Divi Expert

    I think it's a timing issue - both of those blocks of code are running (on my test site, at least) before the gallery module has added the pagination text. Here's an updated version which can change both the previous and next links and delays the change until the gallery module pagination has been added.

    Code:
    Log In or Sign Up to view this code.
    I've found a timeout of 200ms works well, but if the code isn't working for you, increase the timeout to something large (e.g. 5000 = 5 seconds) and, assuming it now works, progressively reduce the timeout until you find the sweet spot (works, and original text quickly replaced)..
     
    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Replace the default archive "Older Entries" with beautiful pagination:Learn More