Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Bojan Radonic – WPMU DEV Support

    (@wpmudev-support4)

    Hey there wackyracer8,

    How re you doing today?

    Can you please try using the following solution provided by one of my colleagues on WPMU DEV Forum. Can you please try adding this to your theme functions.php and replace 100 with the desired length of the course description excerpt

    add_filter('course_admin_excerpt_length', 'increase_excerpt_length');
    
    function increase_excerpt_length($length) {
    	return 100;
    }

    Hope this helps ??

    Best regards,
    Bojan

    Thread Starter wackyracer8

    (@wackyracer8)

    Hi Bojan,

    I am using the coursepress theme, so I went into plugins/coursepress/themes/coursepress and added the piece of code to functions.php file and changed the 100 to 500. This has not made any difference though ??

    I am currently using the free version until I have everything in place and will then be upgrading to pro.

    What am I doing wrong? or is another method?

    Thanks for your help.

    Plugin Author Bojan Radonic – WPMU DEV Support

    (@wpmudev-support4)

    Hey again wackyracer8,

    Well you could try editing the shortcode that is used there. To do that please go to line 50 in content-course.php which is located in /wp-content/plugins/coursepress/themes/coursepress/content-course.php, it looks like this:

    echo do_shortcode( '[course_summary length="50" class="' . $extended_class . '"]' );

    Replace 50 with the number of characters you want displayed there.

    Hope this helps ??

    Best regards,
    Bojan

    Thread Starter wackyracer8

    (@wackyracer8)

    Hi Bojan,

    this method worked for me, thank you for your help with this. I will be soon buying the pro version ??

    Plugin Author Bojan Radonic – WPMU DEV Support

    (@wpmudev-support4)

    Hey again,

    Glad this worked and looking forward on seeing you on WPMU DEV forum ??

    Have a nice weekend!

    Cheers,
    Bojan

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How can I increase the word count for the excerpt?’ is closed to new replies.