Tagged: x
-
AuthorPosts
-
February 7, 2017 at 1:18 pm #1361624
advermanParticipantI’m looking for this feature (for portfolio posts):
https://community.theme.co/forums/topic/create-a-next-post-and-previous-post-link-at-the-bottom-of-each-post-page/It was then implemented?
Otherwise how could I get it?Thanx
February 7, 2017 at 4:04 pm #1361823
Nabeel AModeratorHi there,
Thanks for writing in! You should be able to see the article navigation in your posts pages It has been there for quite a long time. Although every stack has it’s own design and structure. You can check out http://demo.theme.co/ethos-1/mens-fashion-101/ or http://demo.theme.co/integrity-1/thought-for-the-day/ Position may vary from stack to stack however you can display it at the bottom of the page by adding the following jQuery script in your Customizer via Appearance > Customize > Custom > Edit Global Javascript
(function($){$('.x-nav-articles').appendTo('.x-main')})(jQuery);If this doesn’t work then provide us the URL of your site so we can take a look at your setup.
Thanks!
February 8, 2017 at 1:43 am #1362437
advermanParticipantThanks for answer.
Url of one of my singles projects is http://2016.adverman.it/progetto/vado-fuori/
Goal is to have in the bottom, where now is the “Elenco progetti” button, two buttons: one for next project item and one for the previous one.
Is it possible? I’m a decent developer, so there is no problem if it need to change the code.Thank u
February 8, 2017 at 4:45 am #1362581
ChristopherModeratorHi there,
Please copy content-portfolio.php from framework/views/renew and put it in the same path inside child theme, replace existing code with following :
<?php // ============================================================================= // VIEWS/RENEW/CONTENT-PORTFOLIO.PHP // ----------------------------------------------------------------------------- // Portfolio post output for Renew. // ============================================================================= ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if ( ! x_is_portfolio_item() ) : ?> <div class="entry-featured"> <?php x_portfolio_item_featured_content(); ?> <div class="entry-cover"> <div class="entry-cover-content"> <span><?php echo get_post_meta( get_the_ID(), '_x_portfolio_media', true ); ?></span> <h2 class="entry-title entry-title-portfolio"> <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php x_the_alternate_title(); ?></a> </h2> <span><?php echo get_the_date( 'm.d.y' ); ?></span> </div> </div> </div> <?php endif; ?> <div class="entry-wrap cf"> <?php if ( is_singular() ) : ?> <div class="entry-info"> <div class="entry-featured"> <?php x_featured_portfolio( 'cropped' ); ?> </div> <header class="entry-header"> <h1 class="entry-title entry-title-portfolio"><?php the_title(); ?></h1> <?php x_renew_entry_meta(); ?> </header> <?php x_get_view( 'global', '_content', 'the-content' ); ?> <?php x_entry_navigation(); ?> </div> <div class="entry-extra"> <?php x_portfolio_item_tags(); ?> <?php x_portfolio_item_project_link(); ?> <?php x_portfolio_item_social(); ?> </div> <?php endif; ?> </div> </article>Hope it helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1361624 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
