• Resolved bambiboland

    (@bambiboland)


    Hi there,

    I’m using TranslatePress on a website I’m building for a client who wants a bilingual website. So far it’s working great except that I just noticed a weird thing missing.

    Whenever I change from the default (Dutch) to English the arrows I’ve added for post navigation on blogposts as well as portfolio posts disappear. The whole div is just not existing anymore as far as I can see.

    I’ve tried various settings and disabling plugins already.

    It seems that also the back-to-top button that is added through a plugin is malfunctioning, though that’s not my main issue at the moment. The arrows should really stay put whenever I translate a page!

    Appreciate any help ??

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Alex

    (@alexcozmoslabs)

    Can you please visit TranslatePress -> Settings -> Advanced

    Then, enable these features 1 by 1 in this order and try to see if it makes a difference. Disable them back if it makes no difference. Also please disable or clear the cache if you have any.

    1. Fix broken HTML
    2. Fix missing dynamic content
    3. Disable dynamic translation

    If there are no positeve results, try adding these arrows (if your layout allows) using our conditonal approach: https://translatepress.com/docs/restrict-by-language/translation-shortcode/

    Thread Starter bambiboland

    (@bambiboland)

    Hi Alex,

    Thanks for your answer, but unfortunately none of this helps in my case. Can you help me change this code to work with this conditional approach?

    <div class="prevnext">
    
    <?php the_post_navigation( array(
    'next_text'  => __( '←' ),					 'prev_text'  => __( '→' ),					 'in_same_term' => true,					 'taxonomy' => __( 'category' ),					 ) ); ?>
    
    </div>

    Also, is it possible that there’s an issue with the terms/taxonomy? Since the whole ‘prevnext’ div is not even showing up anymore if I change to english.

    Thread Starter bambiboland

    (@bambiboland)

    Hi again,

    I’ve tried some various things and it seems like it works properly if i remove this line:
    ‘taxonomy’ => __( ‘category’ ),

    Plugin Support Alex

    (@alexcozmoslabs)

    Glad to know it worked. Thank you for letting us know how you did proceed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disappearing ‘the_post_navigation’ on custom theme’ is closed to new replies.