New Landing How can we help? Themeforest Theme Support Nota Portfolio previous and next buttons reversed

Viewing 13 posts - 1 through 13 (of 13 total)
  • Posted in: Nota
  • #315865
    sorelh
    Member
    Post count: 169

    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.
    #315873
    David Martin – Support
    Moderator
    Post count: 20834

    The Next/Prev navigation are standard WP functions, not modified as such.

    It displays the previous post link that is adjacent to the current post.

    #315874
    sorelh
    Member
    Post count: 169
    This reply has been marked as private.
    #315882
    David Martin – Support
    Moderator
    Post count: 20834

    The next adjacent post is Ai Weiwei 360, which is correct?

    #315884
    sorelh
    Member
    Post count: 169
    This reply has been marked as private.
    #315938
    David Martin – Support
    Moderator
    Post count: 20834

    If you add your FTP details an activate the child theme I’ll see if I can help you further.

    #315950
    sorelh
    Member
    Post count: 169
    This reply has been marked as private.
    #316100
    David Martin – Support
    Moderator
    Post count: 20834

    Please add:

    Server
    Username
    Password
    Port

    Thanks.

    #316155
    sorelh
    Member
    Post count: 169
    This reply has been marked as private.
    #316175
    sorelh
    Member
    Post count: 169
    This reply has been marked as private.
    #316176
    David Martin – Support
    Moderator
    Post count: 20834

    Ah ok, I was just getting to this in a bit this am.

    Le me know if you want a solution anyhow.

    Thanks.

    #316178
    sorelh
    Member
    Post count: 169
    This reply has been marked as private.
    #316680
    David Martin – Support
    Moderator
    Post count: 20834

    Please 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 }
        }
Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register