Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1478567

    HI
    I just noticed the side navigation on my portfolios is missing.
    I’m not sure we’re going to use it but it was there before – I don’t have any css hiding it and can’t find any other settings.
    Can you see what’s going on?
    Thanks
    Nancy

    #1478613

    Hey Munford,

    Thank you for the inquiry.

    Are you referring to the post navigation? Please note that this navigation will not display if there are fullwidth elements such as a Slider or Color Section in the page. To change this, you can add this code in the functions.php file:

    function avf_post_nav_settings_mod($settings){
      $settings['is_fullwidth'] = false;
      $settings['skip_output'] = false;
      return $settings;
    }
    add_filter('avf_post_nav_settings','avf_post_nav_settings_mod', 10, 1);

    Best regards,
    Ismael

    #1478659

    OK but that actually made all my pages have post navigation, not just the portfolio items.

    #1478711

    Hi,

    We adjusted the filter a bit. Please try it again:

    function avf_post_nav_settings_mod($settings) {
        if (is_singular('portfolio')) {
            $settings['is_fullwidth'] = false;
            $settings['skip_output'] = false;
        }
        return $settings;
    }
    add_filter('avf_post_nav_settings', 'avf_post_nav_settings_mod', 10, 1);
    

    Best regards,
    Ismael

    #1479532

    that isn’t working for me.
    I now added this code to hide the side navigation that DOES show up in a popup from a link in my footer “TILMELD DIG NYHEDSBREV” but the portfolio side navigation was not showing before I did that.

    /*hide post side nav for footer link*/
    #top button.mfp-arrow {
        display: none;
    }

    I tried adding this to hide the post nav but that didn’t work either:

    function no_post_nav($entries)
      {
          $entries = array();
          return $entries;
      }
    add_filter('avia_post_nav_entries','no_post_nav');
    • This reply was modified 1 month ago by Munford.
    • This reply was modified 1 month ago by Munford.
    #1479589

    Hi,

    We added the filter again in the functions.php file.

    View post on imgur.com

    Please make sure to purge the cache before testing.

    Best regards,
    Ismael

    #1479811
    This reply has been marked as private.
    #1479834

    Hi,

    No problem! Let us know if you have more questions. Have a nice day.

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘portfolio grid side navigation’ is closed to new replies.