Support » Fixing WordPress » title only for post in main page

  • Hey,

    I have the following problem:

    I used a theme from newfocus and I want on the main page that latest articles only have the title without a excerpt and that the title has a smaller font. Now I read on this forum that I had to go to my index page and change the line: the_content to the_title.

    Now my index.php looks as follow:

    <?php get_template_part('content', 'before'); ?>
        <div class="content">
            <?php get_template_part('loop', 'homepage'); ?> 
        </div><!-- .content -->
    <?php get_template_part('content', 'after'); ?>
Viewing 1 replies (of 1 total)
  • You need to look in the file that contains the loop, it may be called loop.php or content.php or something like that.

    In there you should be able to remove ‘the_content’ so that only titles are displayed.

    You will need to edit the font size via your themes CSS.

Viewing 1 replies (of 1 total)
  • The topic ‘title only for post in main page’ is closed to new replies.