Forum Replies Created
-
AuthorPosts
-
OliverMember
Thanks Victor, I know what is_front_page() is doing but as I wrote, it's not working in that theme with just that code.
I tried some other things and when I add it together with check_home(), it's working without any problems.
add_action('wp', 'check_home'); function check_home() { if(is_home() || is_front_page()) { remove_action( 'wp_head', 'genesis_paged_rel' ); remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 ); } }
Enjoy your Holidays
OliverMemberHi Victor.
It's exactly the same in the Studiopress Theme Demo.
<link rel="next" href="https://demo.studiopress.com/magazine/page/2/" />
Check line 56 / 57. Theme is using latest post and not a static page as home and if I'm right, that's the reason why it generates this tag in the first place and also why it's not possible to filter it by is_home.
thanks
OliverMemberDear Victor,
tried that already but that's not working with the Magazine Pro Theme.
Any other idea?
OliverMemberThanks genwrock but I found a more easy way to fix this.
I just read ALL the Infos wpsites.net - where I got the code from - provides ...
OliverMemberThis reply has been marked as private.OliverMemberSorry for my late reply.
Looks like the code I'm using is from your site 😉
add_action( 'genesis_entry_content', 'custom_single_post_nav', 12 );
/**
* @author Brad Dalton
* @example http://wpsites.net/web-design/different-ways-to-add-post-navigation-pagination-in-genesis/
* @copyright 2014 WP Sites
*/
function custom_single_post_nav() {if ( ! is_singular( 'post' ) )
return;echo '<div class="nav-previous alignleft">';
previous_post_link('%link', 'Vorheriger Beitrag', FALSE);
echo '</div>';echo '<div class="nav-next alignright">';
next_post_link('%link', 'Nächster Beitrag', FALSE);
echo '</div>';}
OliverMemberThanks Andrea, this worked and gave me also the idea for some more features.
OliverMemberThanks Andrea,
problem is, I don't want to use the wordpress categories because that would change the link of the posts (I'm including the categories). So no other solution for the manually created pages?
-
AuthorPosts