Tagged: x
-
AuthorPosts
-
July 9, 2016 at 9:54 am #1079341
Juhani JParticipantI’ve used the following code in my functions.php to add Next and Previous navigation arrows under my portfolio page content to easily move from one portfolio item to next.
add_filter('the_content', 'next_prev_urls', 9999 ); function next_prev_urls ( $content ) { if( is_singular('x-portfolio') ) { ob_start(); x_entry_navigation(); return $content.ob_get_clean(); } else return $content; }This works really well but the problem is some portfolio pages are very long, so the viewer has to scroll to the bottom to reach those arrows. Thus I would like to put the same arrows to the portfolio’s sidebar as well, specifically into the div.entry-extra. How would I achieve that?
July 9, 2016 at 10:49 am #1079386
Juhani JParticipantI’m using a Renew stack.
July 9, 2016 at 8:30 pm #1079779
RadModeratorHi there,
Thanks for writing in.
You have to edit this file \wp-content\themes\x\framework\views\renew\content-portfolio.php and copy to your child theme (with same folder structure/path)
Then add
<?php x_entry_navigation(); ?>Cheers!
July 10, 2016 at 7:24 am #1080105
Juhani JParticipantThanks, this works beautifully!
All the best!
July 10, 2016 at 7:53 am #1080120
ThaiModeratorYou’re most welcome 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1079341 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
