Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Ben Sibley

    (@bensibley)

    Thanks for using Tracks!

    Right now, your homepage is displaying a static page, but you can change it to display your blog instead from the Settings > Reading menu.

    For the guestbook, I see a plugin is causing a few errors on your post page. I would suggest contacting the plugin author and sharing the errors so they can debug it.

    Thread Starter doggypress

    (@doggypress)

    Hello Ben,

    i know that i use the static page. The problem i have is, that i what the static page to welcome the visitors, but i want the text on the left side and the picture ( small ) on the right side .. is that possible?

    Theme Author Ben Sibley

    (@bensibley)

    Okay I see, the site you linked to only has one post which is why it’s displayed that way.

    You could recreate this by putting a post in it’s own “homepage” category, and then only displaying posts in the homepage category on the front page of your site.

    To do this, first download an empty Tracks child theme. Then, create a new file called functions.php and paste in the following code:

    <?php
    function my_change_home_page_category( $query ) {
    
       if( $query->is_main_query() && is_home() ){
           $query->set('cat', 2); 
    
       }
    }
    add_action( 'pre_get_posts', 'my_change_home_page_category', 1 );

    The only thing you need to change in the above code is the “2”. This should be the ID of the “homepage” category you create. To find the category’s id, go to the edit category page and you’ll see the id in the URL.

    Once the child theme is activated on your site it should take affect.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘2 Problems’ is closed to new replies.