Community Forums › Forums › Archived Forums › Design Tips and Tricks › Pagination without the word 'Pages:' – code for the child theme?
Tagged: Pagination Pages child theme
- This topic has 5 replies, 2 voices, and was last updated 12 years, 1 month ago by
Tomas Risberg.
-
AuthorPosts
-
August 16, 2014 at 7:14 am #119191
Tomas Risberg
MemberI'm trying to make pagination look good on my static pages. I'm writing in two languages at the site. For the moment I don't find it necessary to install a special plug-in for that. Instead I try to remove all instances were I would have to choose either language.
I have been able to remove the word 'Pages:' from this file in the Genesis Framework:
themes/genesis/lib/structure/post.php
This is how the code looks:
function genesis_do_post_content_nav() { wp_link_pages( array( 'before' => genesis_markup( array( 'html5' => '<div %s>', 'xhtml' => '<p class="pages">', 'context' => 'entry-pagination', 'echo' => false, ) ) . __( 'Pages:', 'genesis' ), 'after' => genesis_html5() ? '</div>' : '</p>', ) ); }Since I know I shouldn't modify the Genesis Framework I wonder if anyone have the code that I can add to my child theme to remove the word 'Pages:' so that it doesn't show in my pagination?
http://exp.silent.se/characterAugust 16, 2014 at 10:41 am #119215Brad Dalton
ParticipantAugust 16, 2014 at 3:28 pm #119271Tomas Risberg
MemberBrad, thanks for taking your time, and excuse me: I have tried to add your php code to the functions.php and the css to style.css but now no pagination at all shows.
I'm running the original Minimum theme, but it is html5 converted. Does it have anything to do with that?
August 17, 2014 at 3:47 am #119332Tomas Risberg
MemberUpdate: I have been able to make the pagination visible again by exchanging 'genesis_entry_header' with 'genesis_after_content' in your suggested php code, but except of this Genesis/WP doesn't seem to use neither your provided code for the functions.php nor the code for the style.css file.
August 17, 2014 at 6:40 am #119349Brad Dalton
ParticipantOnly works on HTML 5 themes correct.
Looks like you worked out the loop hook changes.
Tomas, i don't publish code that doesn't work.
The screen shots show exactly what it does and all code i publish is tested.
August 17, 2014 at 9:11 am #119361Tomas Risberg
MemberBrad, I'm sorry. I understand that the error must be mine. I know you are one of the most skilled Genesis experts.
I can not find a way solve the problem. I tried to use the your code in the Minimum Pro, which should be true html5, but I can't make that work either.
At this page:
http://www.htpcbeginner.com/add-and-style-post-pagination-in-genesis-themes/
they talk about replacing .pages with .entry-pagination.pagination for Genesis 2.0.2 (HTML5)
Does that have something with my problem to do?
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.