Edit Dashboard page

This topic contains 3 reply and 2 voices, and was last updated by towhid 9 years, 10 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
November 21, 2014 at 2:17 am 30885
towhid Hello, if i go on the page where the shortcode [dokan-dashboard] is located, and i add some personalized text or pics whatever, it ends up below the dokan dashboard, i'd like to have my custom content above the dashboard, how's this possible?
November 21, 2014 at 12:04 pm 30903
towhid towhid

Please open wp-content/plugins/wedevs-dokan-plugin/classes/template-shortcodes.php file and find

public function load_template_files() {
     global $wp;

replace with

public function load_template_files() {
     ob_start();
     global $wp;

also find

if ( isset( $wp->query_vars['page'] ) ) {
     dokan_get_template_part( 'dashboard' );
     return;
}

replace with

if ( isset( $wp->query_vars['page'] ) ) {
     dokan_get_template_part( 'dashboard' );
     return ob_get_clean();
}

Hope custom content will be appear below dashborad.

Thank You. 🙂

November 21, 2014 at 1:39 pm 30907
Danilo Danilo

It worked perfectly!

Thanks!

November 21, 2014 at 1:56 pm 30910
towhid towhid

Hello Danilo,

Glad to know that it is working. Can you please mark this topic as resolved.

Thank You. 🙂

Viewing 3 Posts - 1 through 3 (of 3 total)