• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How do I replace the page navigation arrows with an image?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › How do I replace the page navigation arrows with an image?

This topic is: not resolved

Tagged: add image, links, next, page navigation, previous

  • This topic has 2 replies, 1 voice, and was last updated 10 years, 3 months ago by Carla the Moose.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • September 3, 2013 at 4:13 pm #60507
    Carla the Moose
    Member

    My website isn't live yet, but I'm using the Eleven40 theme.

    I was able to paste some code into my functions file and change the text for previous and next links. I removed the words and added arrows instead.

    But how do I use an image that I made of a hand-drawn arrow?

    I tried adding a background image for the .pagination-next and .pagination-previous classes. I also removed the arrow text (brackets) in my functions file. While the removed arrows works, the images are not displaying.

    I thought I should maybe use "li .pagination-next" instead, but still nothing. I also tried adding "a" for the link. Do you have any suggestions on how to do this?

    Thanks!

    September 3, 2013 at 5:53 pm #60529
    Carla the Moose
    Member

    This worked great. I didn't know I could use HTML inside of the code like this. I hope it works in all browsers.

    /** Customize the next page link */
    add_filter ( 'genesis_next_link_text' , 'custom_next_link_text' );
    function custom_next_link_text ( $text ) {
        return g_ent( '<img src=" ... type in the file name ... " />' ) . __( '', CHILD_DOMAIN );
    }
    
    /** Customize the previous page link */
    add_filter ( 'genesis_prev_link_text' , 'custom_prev_link_text' );
    function custom_prev_link_text ( $text ) {
        return g_ent( '<img src=" ... type in the file name ... " />' ) . __( '', CHILD_DOMAIN );
    }

    But as dumb as it sounds, I can't figure out how to adjust padding. Nothing is responding. Ugh.

    September 3, 2013 at 5:55 pm #60530
    Carla the Moose
    Member

    Big duh! moment . . .

    I just style the padding directly within the image source.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble