WordPress.org

Ready to get started?Download WordPress

Forums

title only for post in main page (2 posts)

  1. mm1985
    Member
    Posted 1 year ago #

    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'); ?>
  2. PinkishHue
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.