Home Forums Theme Support Dokan Edit Dashboard page

This topic is: resolved

This topic contains 3 replies, has 2 voices, and was last updated by  towhid 4 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #30885

    Danilo
    Member
    Post count: 9

    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?

    #30903

    towhid
    Participant
    Post count: 4505

    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. ๐Ÿ™‚

    #30907

    Danilo
    Member
    Post count: 9

    It worked perfectly!

    Thanks!

    #30910

    towhid
    Participant
    Post count: 4505

    Hello Danilo,

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

    Thank You. ๐Ÿ™‚

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Edit Dashboard page’ is closed to new replies.