Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can I make it print full html page? #2

Open
yoske25 opened this issue Aug 19, 2020 · 1 comment
Open

how can I make it print full html page? #2

yoske25 opened this issue Aug 19, 2020 · 1 comment

Comments

@yoske25
Copy link

yoske25 commented Aug 19, 2020

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

}
@thefuxia
Copy link
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants