• what tag do you use to show the comments? i integrating WP i my HTML wabpage so i would like to show the comments.
    Cheers

Viewing 6 replies - 1 through 6 (of 6 total)
  • integrating WP i my HTML wabpage

    I am afraid that will not work. For WP functions to work it has to be a .php file.

    Thread Starter philiphotserv

    (@philiphotserv)

    oh sorry, and i was in a bit of a rush when i wrote it.
    I’ll try again;

    What tag shall I use when i want to show the comments and commentform in my index.php? It allready has The Loop in it so it is using WordPress

    The comments are shown in the single post view, usually the single.php template file.
    If you are using the index.php for everything – study the Classic theme’s files.

    Thread Starter philiphotserv

    (@philiphotserv)

    ok thanks, since i do not yet have the skills to create a theme (i am trying though) i am using a normal webtemplate i made, but you can see the template here: https://www.philip.hotserv.dk
    and the theme here:
    https://www.philip.hotserv.dk/blog/

    it’s missing the header and some css is a tad f**** but it’s comming along.
    Please feel free to comment my site, and maybe come with some tips!

    You are pretty close to a theme. You just have to add the header.
    The main thing about the themes is to figure out how a “normal” webpage file is cut in several pieces to give the flexibility required. When I figured it out, I made a visual anatomy of a theme.
    Based on that you can take your file from here: https://www.philip.hotserv.dk and adding the necessary template tags make it a nice theme ??

    Thread Starter philiphotserv

    (@philiphotserv)

    ok, but have a look now, i got the header out, but it’s far left and won’t move, maybe you know how, heres the css for the header:
    #pagecontainer {
    display: block;
    width: 520px;
    background: url(images/Background.gif);
    margin: 100px auto 20px auto;
    }

    #gradientcontainer {
    background: url(images/Header.gif) no-repeat;
    text-align: left;
    padding: 0px;
    margin: 10px auto 20px auto;
    }

    and the php:

    <!– BEGIN CONTAINER –>

    <div id=”gradientcontainer”>
    <h1><img src=”./images/CrashProneHeader.gif” /></h1>
    <div id=”pagecontainer”>

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How-to Show Comments?’ is closed to new replies.