WordPress.org

Ready to get started?Download WordPress

Forums

Linchpin - PrevNextPage
[resolved] Image as link? (6 posts)

  1. bret_wieseler
    Member
    Posted 1 year ago #

    Aaron,

    Is there any way to use an image for the previous/next links?

    Thanks for the great plugin!

    -Bret

    http://wordpress.org/extend/plugins/linchpin-next-page-link-previous-page-link/

  2. aware
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Bret,

    There isn't necessarily a way in the plugin itself to define an image to be used with the link. BUT what you could do is style each button utilizing css.

    All you need to do is define the link_class argument

    <?php next_page_link( array ( 'link_class' => 'my-custom-class' ) ); ?>
    <?php previous_page_link( array ( 'link_class' => 'my-custom-class' ) ); ?>

    If you truly need an image as your links. I could add in a feature to the plugin to be able to change/define markup. I think the css class declaration should do the trick though

  3. aware
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Bret,

    Didn't hear from you. I did some testing and what I posted should do the trick. If you do need the image markup itself let me know and I can put it in the queue to implement.

  4. bret_wieseler
    Member
    Posted 1 year ago #

    Thanks Aaron.

    Seeing as I"m a novice at this stuff I would prefer to use an image rather than styling using CSS. Adding the markup would be greatly appreciated.

    Thanks for all your time and effort.

    -Bret

  5. Rae Nester
    Member
    Posted 1 year ago #

    Found this very helpful as i wanted to add an arrow graphic along with the text and this worked perfectly. Thank you.

  6. aware
    Member
    Plugin Author

    Posted 1 year ago #

    Glad it worked for you @rae-nester! If you could give an "it works" and a rating that would be awesome. Also if you have any features or bugs let me know.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.