• Resolved zaharamh

    (@zaharamh)


    Hello,

    I am installing panel for a website and I find that the Prev link does not appear on the homepage. Is there any different way I should set the homepage up to make it work?

    Also, the comic navigation is not translation ready, as the rest of the theme is!

    Thanks ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Kathryn Presner

    (@zoonini)

    I am installing panel for a website and I find that the Prev link does not appear on the homepage. Is there any different way I should set the homepage up to make it work?

    Could you provide a link to your site so I can take a look and see what might be going wrong?

    Could you try flushing your permalinks by re-saving your settings under Settings > Permalinks?

    Also, the comic navigation is not translation ready, as the rest of the theme is!

    What language are you looking for?

    Thread Starter zaharamh

    (@zaharamh)

    This is my test site:
    https://zaharamh.com/ALL/

    I just resaved the permalinks.

    I am making a bilingual site spanish / english with the WPML plugin. The problem is that the Words “previous / next / first / last” are hardcoded in the function so they cannot be accessed by the plugin like most other strings in the theme.

    Thanks for the quick reply ??

    Thread Starter zaharamh

    (@zaharamh)

    Ok the translation issue I realized is my fault, I made a mistake when I overwrote the panel_content_nav function to change the random button into a dropdown list of comics and make a shortcode.

    Also the problem with the homepage not displaying the “prev” link seems to be caused by said WPML plugin.

    Let’s see if I can fix this ?? Thanks a lot for the help and sorry for asking for help too soon.

    Thread Starter zaharamh

    (@zaharamh)

    Actually there is a part that is not translation ready and it is these two lines of the file template-tags.php:
    Line 43
    <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . esc_html_x( '&larr;', 'Previous comic link', 'panel' ) . '</span>&nbsp;Prev' ); ?></div>
    Line 45
    <div class="nav-next"><?php next_post_link( '%link', 'Next&nbsp;<span class="meta-nav">' . esc_html_x( '&rarr;', 'Next comic link', 'panel' ) . '</span>' ); ?></div>

    Where the string that is passed for translation is just the arrow but the actual words “Prev” and “Next” are not (I don’t quite understand the funcion of the <span class=”meta-nav”> and why only the arrows are inside and the words outside.

    Moderator Kathryn Presner

    (@zoonini)

    Thanks for the additional info and glad you sorted out at least part of the problem.

    As for this:

    Actually there is a part that is not translation ready and it is these two lines of the file template-tags.php:

    The esc_html_x function is a translation-related function:

    https://codex.www.ads-software.com/Function_Reference/esc_html_x

    I will ask our developers to have a look and make sure those are correct.

    Hi there! It looks as though there was a problem with the translation string for this theme, so we’ve gone ahead and updated that. The proper strings are now translateable and appear properly in GlotPress:

    https://translate.wordpress.com/projects/wpcom/themes/panel/es/default?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=95795&filters%5Btranslation_id%5D=5539875

    https://translate.wordpress.com/projects/wpcom/themes/panel/es/default?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=197879&filters%5Btranslation_id%5D=5539874

    This means that you should also be able to translate them yourself using WPML. The updated theme has been re-submitted to the www.ads-software.com directory but may take a bit of time before it’s approved. In the meantime, you can download the new version directly from https://wordpress.com/themes/panel

    Cheers!

    Moderator Kathryn Presner

    (@zoonini)

    Just a heads-up that if you re-download the theme you’ll need to rename the theme folder to just “panel” – or simply lift out the one changed file, which is:

    panel/inc/template-tags.php

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Prev / Next Links Issue’ is closed to new replies.