Forums

New theme but nothing else but header shows up. (8 posts)

  1. talha8877
    Member
    Posted 2 years ago #

    The best way to understand my problem is to check my link http://gumbetbeachresort.com/
    I have created a new page and set it as a static front-page. I also wrote some information in admin/pages/edit to be displayed on the front. But nothing else but my header shows up and I don't even know which .php controls this page. I've checked page.php, single.php etc to see if they control but they don't have any effect on this page.
    I'm blocked and I need help. Thanx

  2. uwiuw
    Member
    Posted 2 years ago #

    Have you create a basic loop ? such as

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

    You can read more about the loop here.

    Have you use the_content() function inside those loop ?

  3. talha8877
    Member
    Posted 2 years ago #

    I would like to but which file do I have to work on to add these you think?
    I though the content would be generated by page.php or single.php or index.php using those loops.
    WHat I have is a new page that doesn't listen to any of the listed files.
    My problem is to find the file that is responsible for creating my page, so far only header.php is effective bu the rest?

  4. uwiuw
    Member
    Posted 2 years ago #

    I though the content would be generated by page.php or single.php or index.php using those loops.

    no it wasn't build these way. those loops not automatically show the post. that's why you need function like the_content()..so please read the loop documentation again.

    about wordpress theme, you can read here :

    Using Themes
    http://codex.wordpress.org/Stepping_Into_Template_Tags

    use this to learn more basic and general here : http://codex.wordpress.org/Main_Page

  5. alchymyth
    The Sweeper
    Posted 2 years ago #

    does this from the browser html help:
    <body class="home page page-id-8 page-template page-template-gumbet-php">

    could it be that a page template named gumbet.php (?) is creating the front page - which btw looks catastrophic in IE7, and bad in firefox (header blocks nearly the whole screen and does not scroll).

    more reading:
    http://codex.wordpress.org/Pages

  6. uwiuw
    Member
    Posted 2 years ago #

    @alchymyth:

    <body class="home page page-id-8 page-template page-template-gumbet-php">

    Usually this created by body_class() or post_class() function, is it ?

    a page template named gumbet.php (?)

    wow, is this can happen ?

  7. alchymyth
    The Sweeper
    Posted 2 years ago #

    @uwiuw
    yes -
    http://codex.wordpress.org/Template_Tags/body_class

    i made it a habit to look-up any function/template tag that i come across for the first time in wordpress - just to see what/if parameters get used, what the related functions or tags are, etc.

  8. talha8877
    Member
    Posted 2 years ago #

    I solved the problem by completely abandoning that template and creating a new one and using that for my static front page. It works now.

Topic Closed

This topic has been closed to new replies.

About this Topic