Home>Support>I like to change the arrow’s ← in the post navigation

I like to change the arrow’s ← in the post navigation

By fP, 8 years ago. Last reply by SiteOrigin, 8 years ago.

Hi There,

How can I change the arrow’s in to a other kind of character for example ➤
Is there place where i can change the Unicode?

Thanks,
FP

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 9 months ago SiteOrigin
    Hi, I Work Here

    Hi FP

    Thanks for reaching out. This can be done with a child theme. We’ve prepared one for you. You can download it here:

    https://siteorigin.com/wp-content/uploads/2015/12/vantage-child-post-nav.zip

    If you’d like to try the child theme, install from Appearance > Themes > Add New: Upload Theme > Activate. It’s normal for a child theme activation to cause menu location and Customizer settings to reset.

    With the child theme activated, go to Appearance > Editor and very carefully edit function.php. Locate the following lines:

    <?php previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'vantage' ) . '</span> %title' ); ?><?php next_post_link( '<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'vantage' ) . '</span>' ); ?>

    &larr ; and &rarr ; are the HTML characters being used. Edit as required.

  2. 8 years, 9 months ago fP

    Thanks you so much, I am not going to install a new child theme, it wil take to much time for now. Is there anyway to do it with out installing a new child theme? I’ve tried to copy some code from you function file in to my own but this did do the trick and made my site go blank. Are you going to implement this the code in the upcoming update of Vantage?

    By the way I have found this cool website with arrows in overview and there related html-code and uncode.

  3. 8 years, 9 months ago SiteOrigin
    Hi, I Work Here

    Thanks for your feedback.

    There won’t be any change to the navigation arrows in the upcoming Vantage update. The function included in the child theme functions.php file is already in included in Vantage. We’re reapplying the function in order to change the arrows, as requested.

    Here is what should be added in your current child theme functions.php file, assuming you’re already using a child theme: http://pastebin.com/62LQfrR7. The reason we can repeat the vantage_content_nav function in the child theme is because, in the parent theme, it’s wrapped with a conditional:
    if ( ! function_exists( ‘vantage_content_nav’ ) ) :

  4. 8 years, 9 months ago Marcos VM

    Hi,

    I can solve your problem without install a child theme and without edit functions.php. This is a permanent solution, and when you update the theme or WordPress the customized arrows not change :)

    Install that plugin: Real-Time Find and Replace
    https://wordpress.org/plugins/real-time-find-and-replace/

    Activate it and go to Backend: Tools > Real-Time Find and Replace

    With that plugin you can replace HTML code generated with another you like or nothing (if you can delete ). For your case:

    00

    Insert like show that image and you can see the result:

    01

    I hope I have helped you.

    Regards.

  5. 8 years, 9 months ago fP

    Thank you Support Assistant! It works perfectly.

  6. 8 years, 9 months ago SiteOrigin
    Hi, I Work Here

    Glad to hear that helped :) All the best with your site.

    Marcos, thanks for your alternative solution.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More