• I made a template in Artisteer.
    On the Home Page, all looks great.
    Once you click on a ‘Read More’ button, hwoever, everything in the right hand side of the screen disappears…

    Anyone any idea what might cause this problem?
    Or how to fix it…

Viewing 7 replies - 1 through 7 (of 7 total)
  • link to your site?

    Home page usually uses the index.php template, whereas after clicking the read more, single.php is frequently use….so compare and look for areas where there is a problem. You may be missing the call to the_sidebar for instance.

    When you say you made a template….you mean an entire theme? Or a template within a theme? If it is a template within a theme…which one is it? a standard template? A page template?

    Thread Starter LeopardCT

    (@leopardct)

    hi, thank you for your extensive reply!

    first: the link is:
    https://aernoutzevenbergen.co.za/Scribbles/

    i made a theme indeed with Artisteer (sorry for the confusion)

    i guess my single.php has a few conflicts, because it is also impossible to comment, despite the visible option on-screen to add a comment.

    so, what i need to do is compare index.php with single.php?

    Thread Starter LeopardCT

    (@leopardct)

    in single.php I found this line:

    <?php include (TEMPLATEPATH . ‘/sidebar1.php’); ?>

    This line is identical to the line in – for example – archive.php.
    In archive it does work, but clearly not in single.php

    Thread Starter LeopardCT

    (@leopardct)

    does anyone have any idea on how to solve this?

    I’m afraid you are missing things on your single.php

    looking at your source code…..take a look at the validator for your code when looking at a single post

    you will need to clean things up here….you don’t call to your footer at all I’m guessing. Because of that you have no closing </body> or </html> tags…and I’m betting you are missing several </div> closing tags too. If you just get everything valid, your sidebar may show back up to the party…!

    Thread Starter LeopardCT

    (@leopardct)

    wow – fantastic feedback! thank you!
    i had a look at the validator, and see what a mess the single.php is… imagine that: it comes straight from the stables of artisteer. I never touched it.

    Will have a look at what I can do to clean it up.

    Again: thanks!

    sure! again…best bet may be to compare it with something else…maybe archive.php or index.php

    You obviously won’t match them up, as parts of the files are different for a reason. But you can compare them for structural reasons. I’m thinking the main thing may be simply single.php is missing

    <?php get_footer(); ?>
    it should be one of…if not the last line

    If you don’t have that line in your single.php anywhere, add it in (or however your footer is called…reference the other templates to see how they do it) Getting the footer in place should close the body, html and some divs too…..then you can try the validator again, and go from there

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Template does weird’ is closed to new replies.