• Resolved yuli123

    (@yuli123)


    Hi,
    I want to replace the ‘<h2>’ tag whith ‘<div>’ in the code and I can’t find the file it written in (SEO purposes).
    This is the line: <h2 class=”screen-reader-text”>Post navigation</h2>
    Thanks for the help,
    Yulia

Viewing 7 replies - 1 through 7 (of 7 total)
  • Theme Author WEN Themes

    (@wenthemes)

    Hello,

    Are you using latest version of WEN Business theme? I could not find the text you are mentioning <h2 class="screen-reader-text">Post navigation</h2>. It would be great if you share us site URL.

    Thanks

    Thread Starter yuli123

    (@yuli123)

    Hi,
    I am using an 1.0.5 Wen-business Version.
    My site url is: https://blogs.clicksoftware.com/index/top-25-best-examples-of-gamification-in-business/
    The <h2> tag I want to replace is under the post navigation:
    <nav class=”navigation post-navigation” role=”navigation”>
    <h2 class=”screen-reader-text”>Post navigation</h2>
    Thanks,
    Yulia

    Sorry but we couldn’t find the exact code that you have mentioned in the latest version of ‘WEN Business’ theme that is version 1.1.1. However, we found the code in ‘WEN Associate’ theme.
    Thanks!

    Thread Starter yuli123

    (@yuli123)

    I have been upgraded the theme and this tag still appears on my blog..
    You can see it in the site source..
    Thanks,
    Yulia

    Thread Starter yuli123

    (@yuli123)

    Also, I have been installed the fresh new 1.1.1 theme on WP 4.3.1 and this line is still appearing..

    You have to add some line of code on single.php. Instead of `<?php the_post_navigation(); ?> code, replace by:

    `<nav class=”navigation post-navigation” role=”navigation”>
    <div class=”screen-reader-text”>Post navigation</div>
    <div class=”nav-links”>
    <h2 class=”nav-previous”><?php previous_post_link( ‘%link’, ‘<span class=”meta-nav”>’ . ‘</span> %title’ ); ?></h2>
    <h2 class=”nav-next”><?php next_post_link( ‘%link’, ‘%title <span class=”meta-nav”>’ . ‘</span>’ ); ?></h2>
    </div>
    </nav>`

    You can also put this code on functions.php and call this function in place of the_post_navigation of sinlge.php.

    Note: It is recommended to use child theme for theme customization.
    https://codex.www.ads-software.com/Child_Themes

    Thread Starter yuli123

    (@yuli123)

    Thank you, it works ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Replacing with in navigation’ is closed to new replies.