Home › Forums › Legacy Support › Support queries › Other issues › courses directory or all courses page problems
- This topic has 25 replies, 3 voices, and was last updated 4 years, 9 months ago by
Anshuman Sahu.
-
AuthorPosts
-
May 21, 2020 at 7:30 am #261435
ateya3d
SpectatorHello i have a problems in courses directory page all images in the courses get the full image not the correct size image i use a CDN service and i have a problem only in courses page every image loaded twice one form the cdn and the second one from my server i have talked to the CDN support because i get a very fast reply from him and he inspect my website and tell me this is theme issue related again all my website pages work without any problem with CDN and load the correct page size Only the courses page have this problemMay 21, 2020 at 7:32 am #261439ateya3d
SpectatorThis reply has been marked as private.May 21, 2020 at 8:52 am #261475ateya3d
SpectatorThis reply has been marked as private.May 21, 2020 at 12:43 pm #261562MrVibe
KeymasterThe ideal size of course image is 768px width. because the bootstrap resizes at : https://prnt.sc/sl2ekm We're using the_post_thumbnail function which is producing the srcset which updates automatically with screensize. However you can fix the size of the course image : bp_course_avatar() to bp_course_avatar(array('size'->'medium')) in wp admin - plugins - editor - vibe-course-module / incudes/ bp-course-template.phpMay 21, 2020 at 12:45 pm #261563MrVibe
KeymasterThe courses page is re-designed in react in the 4.0 update. The directory pages are not indexed in google and best to convert code from jquery to react.May 21, 2020 at 2:33 pm #261613ateya3d
Spectatorsimply when i try to change this code as you say bp_course_avatar() to bp_course_avatar(array('size'->'medium')) in wp admin - plugins - editor - vibe-course-module / incudes/ bp-course-template.php i get this error in the website ParseError thrown syntax error, unexpected '&'May 21, 2020 at 2:35 pm #261614ateya3d
SpectatorParseError thrown syntax error, unexpected ''medium'' (T_CONSTANT_ENCAPSED_STRING), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$'May 22, 2020 at 8:59 am #261798MrVibe
Keymasterbp_course_avatar(array('size'=>'medium')) Arrow issue.May 22, 2020 at 3:45 pm #261951ateya3d
SpectatorHello Mr.Vibe your code solve the courses image size, but how can i use it in the next update ?? will solve it in the coming update or every update i must correct it manually ?? the second problem not solved problem with the CDN service not solved and the images in the courses directory served 2 times one from the CDN and the second one from my domain please review the illustrated details in the start of this topicMay 22, 2020 at 4:31 pm #261956ateya3d
Spectatorhow can i do this from your reply The directory pages are not indexed in google and best to convert code from jquery to react.May 22, 2020 at 5:23 pm #261968ateya3d
Spectatorhow can i make courses directory pages without changing the URL link you here https://wplms.io/demos/demo10/all-courses/ when press on page numbers url not changed and add page number to it link this in my website items_page=2May 23, 2020 at 2:15 am #262007MrVibe
KeymasterI added a filter for the next update. So this code will work. add_filter('bp_course_get_avatar',function($args){$args['size']='medium'; return $args;});May 23, 2020 at 2:19 am #262008MrVibe
KeymasterWe're using the "get_the_post_thumbnail" function from WordPress for displaying images. The CDN should automatically detect and replace the image src, so this should be ideally handled by the CDN plugin. Jetpack's photon does this job, Please share an example page to locate this : https://prnt.sc/sm4v1q , currently it seems working fine.May 23, 2020 at 2:42 am #262009MrVibe
KeymasterThe last issue seems about pagination in course directory is not a usual issue. We need to inspect this. could be because of deferred javascript in your site.May 23, 2020 at 2:45 am #262010ateya3d
SpectatorThis reply has been marked as private. -
AuthorPosts
- The topic ‘courses directory or all courses page problems’ is closed to new replies.