Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Nota › Portfolio previous and next buttons reversed
New Landing › How can we help? › Themeforest Theme Support › Nota › Portfolio previous and next buttons reversed
- This topic has 12 replies, 2 voices, and was last updated 7 years by David Martin – Support.
-
Posted in: Nota
-
March 3, 2017 at 11:19 am #315865
Hi
The previous item and next item arrows on the portfolio pages are showing in reverse, so the first page on my portfolio shows previous item arrow at the bottom instead of next item arrow which should be on the right at the bottom of the page.
Navigation is in reverse but the portfolio items are in the correct order.
I have used the plug in Post Types Order so that the portfolio items are in the correct order and the portfolio element is set to descending.
How can I make the navigation arrows to go in the correct direction?
The first portfolio item needs a next item arrow on the right and the following portfolio items need to follow so pages can be scrolled through to the right.
See screenshot attached of the first portfolio page.
Thanks
Attachments:
You must be logged in to view attached files.March 3, 2017 at 11:52 am #315873The Next/Prev navigation are standard WP functions, not modified as such.
It displays the previous post link that is adjacent to the current post.
March 3, 2017 at 11:55 am #315874This reply has been marked as private.March 3, 2017 at 12:29 pm #315882The next adjacent post is Ai Weiwei 360, which is correct?
March 3, 2017 at 12:34 pm #315884This reply has been marked as private.March 3, 2017 at 7:00 pm #315938If you add your FTP details an activate the child theme I’ll see if I can help you further.
March 3, 2017 at 8:20 pm #315950This reply has been marked as private.March 6, 2017 at 7:16 pm #316100Please add:
Server
Username
Password
PortThanks.
March 7, 2017 at 10:39 am #316155This reply has been marked as private.March 7, 2017 at 12:15 pm #316175This reply has been marked as private.March 7, 2017 at 12:18 pm #316176Ah ok, I was just getting to this in a bit this am.
Le me know if you want a solution anyhow.
Thanks.
March 7, 2017 at 12:23 pm #316178This reply has been marked as private.March 9, 2017 at 7:29 pm #316680Please install and activate the supplied child theme, inside the child theme
functions.php
file paste this:/* PORTFOLIO ITEM INNER HEADING ================================================== */ if ( ! function_exists( 'nota_portfolio_heading' ) ) { function nota_portfolio_heading() { global $wp_query, $post; $nota_options = nota_get_theme_opts(); $nota_wpkses_opts = nota_get_wpkses_opts(); $page_title = $show_page_title = $default_show_page_heading = ""; $next_icon = apply_filters( 'nota_next_icon', '<i class="sli-icon-arrow-right"></i>' ); $prev_icon = apply_filters( 'nota_prev_icon', '<i class="sli-icon-arrow-left"></i>' ); $enable_category_navigation = $nota_options['enable_category_navigation']; $pagination_style = "standard"; $default_show_page_heading = $nota_options['default_show_page_heading']; $show_page_title = nota_get_post_meta( $post->ID, 'sf_page_title', true ); $page_title = nota_get_post_meta( $post->ID, 'sf_page_title_one', true ); if ( isset( $nota_options['pagination_style'] ) ) { $pagination_style = $nota_options['pagination_style']; } if ( $show_page_title == "" ) { $show_page_title = $default_show_page_heading; } if ( $page_title == "" ) { $page_title = get_the_title(); } ?> <section class="portfolio-heading-inner-wrapper"> <div class="container"> <?php if ( is_singular( 'portfolio' ) && ! ( $pagination_style == "fs-arrow" ) ) { ?> <div class="prev-item col-sm-4"><span><?php next_post_link( '%link', sprintf( wp_kses(__('%s %s', 'nota'), $nota_wpkses_opts ), $prev_icon, "Previous Project" ), $enable_category_navigation, '', 'portfolio-category' ); ?></span></div> <?php } ?> <?php if ( $page_title ) { ?> <div class="portfolio-inner-heading col-sm-4"> <h2 class="entry-title"><span><?php esc_html_e("Current Project", 'nota'); ?></span><?php echo esc_attr( $page_title ); ?></h2> <?php } ?> </div> <?php if ( is_singular( 'portfolio' ) && ! ( $pagination_style == "fs-arrow" ) ) { ?> <div class="next-item col-sm-4"><span><?php previous_post_link( '%link', sprintf( wp_kses(__('%s %s', 'nota'), $nota_wpkses_opts ), "Next Project", $next_icon ), $enable_category_navigation, '', 'portfolio-category' ); ?></span></div> <?php } ?> </div> </section> <?php } }
-
Posted in: Nota
You must be logged in and have valid license to reply to this topic.