WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Customize Look of Nav items

[Resolved] Customize Look of Nav items

  • I was just curious if there was a way to pull the wp_pagenavi function and return it rather than echo it out, without editing the core plugin file?

    I need to do some customization that isn’t possible in just using plain css (at least not as far as I can see) – I actually need to rearrange how the navigation is put together to pull off what I need. For example, I need to replace the “first” and “last” with images (instead of text) and I need them both to appear at the end of the list, rather than at the beginning and end of the nav list,a nd a few other minor alterations. It would be great if there was a way to pull certain pieces apart so I can hack it up in my functions.php file or something.

    Is there a “return” method for this? or will I have to basically rewrite/hack the plugin to do what I need?

Viewing 1 replies (of 1 total)
  • Okay – nevermind. I managed it 🙂

    I found the easiest method was simply to copy the wp_pagenavi() function from the plugin file, rename it, and stick it into my functions.php file – then I called in the renamed function into my theme file. I also cleaned up code I didn’t need. All I had to do at that point was find the sections I needed moved, and moved them. made a few other minor edits, and bam – it’s now laid out perfectly, and I don’t have to worry about it being overwritten when I upgrade. Thanks anyway!

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Customize Look of Nav items’ is closed to new replies.