• Resolved ben_aaron

    (@ben_aaron)


    Hi. I’d like to add some custom html (and js) into my wordpress page. I succeeded to bring in a new template which is entirely blank.
    If I now add some html to it, there is nothing. The page stays blank and insepction of the page also says that there is not content.

    What am I doing wrong?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Have you got a link that people can view the problem on – sometimes helps with a diagnosis?

    Thread Starter ben_aaron

    (@ben_aaron)

    Maybe this is even better:

    The code for the template:

    <?php
    /*
    Template Name: Raw Page
    */

    And: I host via bluehost, and have put it via file manager into the public_html –> … themes directory and my template appears in wordpress.

    can you provide a link to your site?? What do you mean when you say “entirely blank theme”

    Thread Starter ben_aaron

    (@ben_aaron)

    Found help on stackoverflow quickly: I forgot to call the html elements on my wordpress page to the php template
    This helped me out:

    <?php while (have_posts()) : the_post();
        the_content();
    endwhile; ?>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom html code to custom page template’ is closed to new replies.