T5-Admin-Menu-Demo icon indicating copy to clipboard operation
T5-Admin-Menu-Demo copied to clipboard

how can I make it print full html page?

Open yoske25 opened this issue 4 years ago • 1 comments

Hi. Great plugin! :) I want to basically have a "help" page for my clients so they know how to reach me. I want to design in a little bit so I used HTML + CSS files and created a designed page with information, link, and stuff like that.

I can't seem to get the code to show all the page (includes his css)

this is what I've changed

function wpse_91693_render()
{
    global $title;

    print '<div class="wrap">';
    print "<h1>$title</h1>";
    print '</div>';

    $file = plugin_dir_path( __FILE__ ) . "index.html";

    if ( file_exists( $file ) )
        require $file;

    print "$file"; // this line

}

yoske25 avatar Aug 19 '20 18:08 yoske25

You have to change the method for enqueuing the CSS file. Use your own file name there, that should work. Make sure the path matches. Good luck!

thefuxia avatar Feb 10 '21 21:02 thefuxia