Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #956915

    Hello,

    I use Enfold with a Child theme with its own functions.php, style.css,…
    When I update to the latest version of enfold the arrows (https://imgur.com/OneGOSX) are gone.

    In the functions of the child-theme is this code:

    add_filter('avia_post_nav_settings','avia_same_category_filter', 10, 1);
    function avia_same_category_filter($settings) {
         $settings['same_category'] = true;
         return $settings;
    }
    
      function no_post_nav($entries)
      {
          if(get_post_type() == 'sfwd-courses') $entries = array();
          return $entries;
      }
    
      add_filter('avia_post_nav_entries','no_post_nav');
      
    
    add_filter('avia_post_nav_settings','avia_remove_fullwidth_slider_check', 10, 1);
    function avia_remove_fullwidth_slider_check($settings)
    {
    $settings['is_fullwidth'] = false;
    return $settings;
    }
    
     add_filter('avf_builder_boxes', 'avia_register_meta_boxes', 10, 1); //Add meta boxes to custom post types
        function avia_register_meta_boxes($boxes)
        {
            if(!empty($boxes))
            {
                foreach($boxes as $key => $box)
                {
                        $boxes[$key]['page'][] = 'sfwd-courses';
    $boxes[$key]['page'][] = 'sfwd-lessons';
    $boxes[$key]['page'][] = 'sfwd-topics';
    $boxes[$key]['page'][] = 'sfwd-quiz';
                }
            }
            return $boxes;
        }

    …and in no CSS-file is the “avia-post-nav” on “display: none”
    …when I remove the code from the functions there is no change, so no arrows

    In enfold under “Blog-Layout” the option “Disable the post navigation” is off (no check).

    Is there another option to activate the arrows again?
    Is it a problem of the child theme and I have to edit the functions-code?

    Now I restored the page until I have a solution for the problem.

    Thank you for your help!

    Best regards

    #957623

    Hey christianichristiani,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( do be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create a admin user and post the login credentials in the “private data” field.

    Best regards,
    Nikko

    #958087

    Hello!

    Attached you can find the login-data. Now you can see the arrows because the old enfold-version is installed.
    Feel free to update enfold. I can restore it if a error happens.

    Thank you very much!

    #959214

    Hi,

    Can you please update so we can check after?
    It will be easier to get the task shorted out faster.

    Best regards,
    Basilis

    #960269

    Hello Basilis,

    I updated the page.

    Thank you for your help!

    #960978

    Hi christianichristiani,

    I have checked it again and I imported some portfolio entries (link in private content) and it’s working properly.
    Can you give us ftp access? so we can try to enable debug and try to fix it.

    Best regards,
    Nikko

    #961404

    Hello Nikko,

    attached you can find the ftp-data. These pages in “lektionen” are from LearnDash. But before the update it worked correctly.

    Thank you for your help!

    #962066

    Hi christianichristiani,

    Thanks for giving us ftp access, I have commented out this code:

    add_filter('avia_post_nav_settings','avia_same_category_filter', 10, 1);
    function avia_same_category_filter($settings) {
         $settings['same_category'] = true;
         return $settings;
    }

    and add this code in functions.php:

    add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod');
    function avia_post_nav_settings_mod($settings)
    {
      if(is_singular('portfolio')) {
        $settings['taxonomy'] = 'portfolio_entries';
        $settings['same_category'] = true;}
      if(is_singular('sfwd-lessons')) {
        $settings['taxonomy'] = 'ld_lesson_category';
        $settings['same_category'] = true;}
      return $settings;
    }

    And it works fine. Let us know if you need further assistance :)

    Best regards,
    Nikko

    #963009

    Hello Nikko,

    thank you very much! It works great!

    #963306

    Hi christianichristiani,

    Glad that we could help :)
    Feel free to comeback if you need further assistance.
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Next/Previous arrows gone after update’ is closed to new replies.