Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1260912
    DOURONE
    Participant

    Hi there!

    I have a little issue with my portfolio navigation arrows.
    I have created two different portfolios and when i use the porfolio navigation arrows, the two portfolios are mixed.
    I want that each portfolio has its own navigation arrows and no ramdom navigation between the two of them.
    I hope that my request is enough clear!
    Thank you for your help!

    #1260916
    DOURONE
    Participant
    This reply has been marked as private.
    #1261076
    Christian
    Moderator

    Hey there,

    Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.

    Thanks.

    #1261113
    DOURONE
    Participant
    This reply has been marked as private.
    #1261454
    DOURONE
    Participant
    This reply has been marked as private.
    #1261757
    Rad
    Moderator

    Hi there,

    It’s not random, it’s just that the post navigation (arrow) is only able to navigate through post grouped by one category. This time, MURAL and CURREN & PAST aren’t the category, they are just portfolio index page.

    How about assigning your portfolio to the specific category then maybe we can modify the arrow navigation to specifically work for those categories.

    Thanks!

    #1262367
    DOURONE
    Participant
    This reply has been marked as private.
    #1262386
    Paul R
    Moderator

    Hi,

    To fix it, you can add this in your child theme’s functions.php file.

    
    function x_entry_navigation() {
      $stack = x_get_stack();
      if ( $stack == 'ethos' ) {
        $left_icon  = '<i class="x-icon-chevron-left" data-x-icon=""></i>';
        $right_icon = '<i class="x-icon-chevron-right" data-x-icon=""></i>';
      } else {
        $left_icon  = '<i class="x-icon-arrow-left" data-x-icon=""></i>';
        $right_icon = '<i class="x-icon-arrow-right" data-x-icon=""></i>';
      }
      $is_ltr    = ! is_rtl();
      
      $prev_post = get_adjacent_post( false, '', false );
      $next_post = get_adjacent_post( false, '', true );
      if(x_is_portfolio_item()) {        
            $prev_post = get_adjacent_post( true, '', false,'portfolio-category' );
            $next_post = get_adjacent_post( true, '', true,'portfolio-category' );
      }
      $prev_icon = ( $is_ltr ) ? $left_icon : $right_icon;
      $next_icon = ( $is_ltr ) ? $right_icon : $left_icon;
      ?>
    
      <div class="x-nav-articles">
    
        <?php if ( $prev_post ) : ?>
          <a href="<?php echo get_permalink( $prev_post ); ?>" title="<?php __( 'Previous Post', '__x__' ); ?>" class="prev">
            <?php echo $prev_icon; ?>
          </a>
        <?php endif; ?>
    
        <?php if ( $next_post ) : ?>
          <a href="<?php echo get_permalink( $next_post ); ?>" title="<?php __( 'Next Post', '__x__' ); ?>" class="next">
            <?php echo $next_icon; ?>
          </a>
        <?php endif; ?>
    
      </div>
    
      <?php
      }
    

    Hope that helps

    #1262470
    DOURONE
    Participant
    This reply has been marked as private.
    #1262476
    DOURONE
    Participant
    This reply has been marked as private.
    #1262563
    Rahul
    Moderator

    Hey There,

    Thanks for writing back!

    Is the issue solved? If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do. We’ll be happy to provide you with a response once we have a better understanding of the situation.

    Thanks for understanding!

    #1262622
    DOURONE
    Participant
    This reply has been marked as private.
    #1263046
    Rue Nel
    Moderator

    Hello There,

    Would you mind providing us the url of your site with login credentials so we can take a closer look and fix the issue? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    To do this, you can make a post with the following info:
    – Link to your site

    – WordPress Admin username / password
    – FTP Hostname
    – FTP Username
    – FTP Password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thank you.

  • <script> jQuery(function($){ $("#no-reply-1260912 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>