Course Custom Nav items on sidebar

Home Forums Legacy Support Support queries How-to & Troubleshooting Course Custom Nav items on sidebar

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #84053
    EmanuelGT
    Participant
    This is what I'm trying to do: 1-Add custom fields to all courses, like language, duration, etc. but using the "course Custom Nav plugin" those are text fields and only appear as item menus on the horizontal menu under course image (I'm using C4 for courses layout), and I need them to be shown on the right course sidebar. 2-I tried using this code: "https://wplms.io/support/knowledge-base/adding-a-custom-field-to-add-custom-information-in-course-details/" but nothing is shown when creating the course or in the sidebar.  I'm using a blank child so the code was inserted on the child's functions.php file. 3-I need to hide the current course duration on the sidebar, since it doesn't show the real length of the course, but how long the course is available. Please see the attached image: http://imgur.com/a/LhajM On the right sidebar, on the blue circle is what I want to hide, and replace it with the custom  duration label right down the wishlist item (where the red lines are). Also, on the bottom of the image you can see where on the menu the current custom fields are being shown, and I don't want them to be there. I've noticed a "Custom Course Details" button when editing the course from the back end, but creating new fields there makes no changes to the course display, menu or sidebar. The goal is to get those custom fields for the instructor at the frontend course editor.   Can you please assist with this?
    #84222
    H.K. Latiyan
    Participant
    1) The course custom nav plugin is used to add custom sections in the course menu, you cannot add the information in the course details widget using this plugin. 2) The code in the tip works fine, you need to add it in the functions.php file of your child theme and then edit the course in backend and add the information that you want and then check the course page in front end. You can refer the screenshot in the tip it clearly shows how the settin appear in the course in backend and then how its shown in the front end. 3) To hide the duration add the bellow code in your functions.php file present in your child theme: add_filter('wplms_course_details_widget',function ($course_details){   $key = 'time';    unset($course_details[$key]);   return $course_details; });
    #84487
    EmanuelGT
    Participant
    thanks for the fast answer H.K. I was able to make the code from the above link to work on my child theme, but there are still a couple of things that I would like to change: 1- how can I made these custom fields available at the front-end course editor? 2- I found another post where you refer to this link: <span style="color: #32a3cb;">https://wplms.io/support/knowledge-base/add-custom-information-to-custom-fields-in-course-detail-section-with-different-icons-on-each-field/</span> for a procedure on how to add a different icons for every custom field, but unfortunately that link is dead.  Can you please share the new link, or the necessary code for it? Thanks again for your support
    #84702
    H.K. Latiyan
    Participant
    1) The custom field is available in backend only as of now. 2) The link was removed because it was a very old code and has stopped working now.   For now the tip shows plus icon and you can change the plus icon to a different icon using fontawesome icons only. For different fontawesome icons refer: http://fontawesome.io/icons/
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Course Custom Nav items on sidebar’ is closed to new replies.